@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #203f32;
  --green: #295540;
  --muted: #596b60;
  --rule: #dfe4da;
  --paper: #fafbf6;
  --soft: #eef2e8;
  --clay: #a74d35;
  color: var(--ink);
  background: var(--paper);
  font:
    100%/1.55 Inter,
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand,
.footbrand,
.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.054em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.18;
}
h3 {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
p {
  color: var(--muted);
}
svg {
  flex: none;
  vertical-align: middle;
}
.wrap {
  width: min(1184px, calc(100% - 8vw));
  margin-inline: auto;
}
.top {
  background: #fffefa;
  border-bottom: 1px solid var(--rule);
}
.bar {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 3.4rem;
}
.brand,
.footbrand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  letter-spacing: -0.06em;
}
.brand {
  font-weight: 600;
  font-size: 2.05rem;
}
.brand img {
  transform: rotate(-5deg);
}
nav {
  display: flex;
  gap: 0.4rem;
}
nav a,
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.57rem 0.9rem;
  border-radius: 0.5rem;
}
nav a[aria-current="page"] {
  background: #e8eee3;
}
.nav-account {
  background: white;
  border: 1px solid #ced7ca;
}
#account {
  margin-left: auto;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 1rem;
  background: white;
  padding: 0.5rem;
  z-index: 5;
}
main {
  min-height: 68vh;
  padding-block: 2.3rem 3rem;
}
.hero {
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  border-radius: 1.3rem;
  background: #e8eee1;
  border: 1px solid #dbe3d4;
  min-height: 350px;
}
.hero-copy {
  align-self: center;
  padding: 2.75rem clamp(1.5rem, 4.1vw, 3.75rem);
}
.hero h1 {
  margin: 1rem 0 0.95rem;
}
.hero h1 em {
  color: #517658;
  font-weight: normal;
}
.hero p {
  max-width: 40ch;
  font-size: 1.03rem;
  color: #435f4f;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #42614d;
}
.eyebrow:before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}
.hero-art {
  position: relative;
  min-height: 100%;
  background: #ebc09e;
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: 50% 53%;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.45rem;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.05rem;
  border-radius: 0.58rem;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 650;
  border: 1px solid #c7d1c3;
  background: #fffef9;
  color: var(--ink);
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.btn:hover,
.nav-account:hover {
  filter: brightness(0.95);
}
.text {
  border: 0;
  background: none;
  padding: 0.35rem;
  color: var(--green);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.section {
  margin-top: 2.25rem;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.card {
  background: #fffefa;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.45rem 1.55rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.card:hover {
  border-color: #b8c7b4;
  box-shadow: 0 4px 16px #263e2510;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  margin-bottom: 1.05rem;
}
.stamp {
  background: var(--tint);
  color: var(--tone);
  width: 49px;
  height: 53px;
  display: inline-grid;
  place-items: center;
  position: relative;
  transform: rotate(-5deg);
  border-radius: 4px;
  outline: 1px dashed var(--tone);
  outline-offset: -5px;
}
.sage {
  --tint: #dee9d8;
  --tone: #49724f;
}
.rose {
  --tint: #f6ded2;
  --tone: #a05d47;
}
.gold {
  --tint: #f5e9ca;
  --tone: #937331;
}
.card p {
  font-size: 0.94rem;
  line-height: 1.5;
  margin-top: 0.45rem;
}
.card-action {
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 650;
  margin-top: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.23em;
}
.hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  background: #eff3e9;
  border: 1px solid #dce5d6;
  border-radius: 0.8rem;
  padding: 1rem 1.3rem;
}
.hint strong {
  font-size: 0.97rem;
}
.hint p {
  font-size: 0.9rem;
}
.hint > .text {
  margin-left: auto;
  white-space: nowrap;
}
.footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.3rem 2rem;
  border-top: 1px solid var(--rule);
}
.footbrand {
  font-size: 1.25rem;
  margin-right: auto;
}
.footbrand img {
  opacity: 0.8;
}
.page-head {
  padding: 0.7rem 0 1.2rem;
}
.page-head .eyebrow {
  margin-bottom: 0.65rem;
}
.page-head h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}
.page-head p {
  margin-top: 0.65rem;
}
.stack {
  display: grid;
  gap: 1rem;
}
.panel {
  background: #fffefa;
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  padding: 1.45rem;
}
.panel p {
  margin-top: 0.4rem;
}
.panel h2 {
  font-size: 1.65rem;
}
.panel h3 {
  font-size: 1.35rem;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.row + .row,
.entry + .entry {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}
.row > div,
.card,
.entry {
  min-width: 0;
}
.subtle,
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.meta {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.subtle a,
.link {
  color: var(--green);
  text-decoration: underline;
}
.badge {
  font-size: 0.81rem;
  border: 1px solid #d2dfcc;
  background: #edf3e7;
  border-radius: 99px;
  padding: 0.18rem 0.6rem;
  font-weight: 600;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.exchange-cover {
  padding: 2rem;
  background: #e7eee0;
  border: 1px solid var(--rule);
  border-radius: 1rem;
}
.exchange-cover h1 {
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  margin: 0.7rem 0 1rem;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.15rem 0;
}
.tabs .btn {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
}
.tabs .on {
  background: var(--green);
  color: white;
}
.avatar {
  background: #e4ecdf;
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-weight: 650;
}
.person {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}
.preserve {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.entry {
  overflow-wrap: anywhere;
}
.gap {
  margin-top: 1rem;
}
.smallgap {
  margin-top: 0.5rem;
}
.quiet {
  padding: 1.5rem;
  background: var(--soft);
  border-radius: 0.8rem;
}
.empty {
  padding: 1.4rem;
  border: 1px dashed #cbd7c6;
  border-radius: 0.75rem;
}
.inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.danger {
  color: #923f32;
}
.error {
  color: #8f3023;
  background: #ffede6;
  border-radius: 0.4rem;
  padding: 0.7rem;
}
.error:empty {
  display: none;
}
dialog {
  width: min(470px, calc(100% - 2rem));
  max-height: 90dvh;
  padding: 0;
  border: 1px solid #d1d9cd;
  border-radius: 1rem;
  color: var(--ink);
  background: #fffefa;
  box-shadow: 0 16px 70px #172e2633;
}
dialog::backdrop {
  background: #172e2680;
}
#dialog-content {
  padding: 1.7rem;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.dialog-head h2 {
  font-size: 1.9rem;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  background: var(--soft);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
}
.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
label {
  font-size: 0.92rem;
  font-weight: 600;
  display: grid;
  gap: 0.35rem;
}
input,
textarea,
select {
  width: 100%;
  padding: 0.68rem 0.8rem;
  color: var(--ink);
  background: white;
  border: 1px solid #bfcbbd;
  border-radius: 0.45rem;
  line-height: 1.45;
  min-width: 0;
  font-size: 1rem;
}
textarea {
  min-height: 78px;
  resize: vertical;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #45604c 50%),
    linear-gradient(135deg, #45604c 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 52%,
    calc(100% - 11px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.code {
  padding: 0.75rem;
  background: #eef2ea;
  border-radius: 0.5rem;
  user-select: all;
  overflow-wrap: anywhere;
  font: 1rem/1.6 monospace;
}
.form .actions {
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.7rem 1.2rem;
  border-radius: 0.65rem;
  color: white;
  background: #243e30;
  z-index: 6;
  box-shadow: 0 4px 20px #20352e22;
}
#toast:empty {
  display: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bc6d35;
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
button,
a,
p,
h1,
h2,
h3,
strong {
  overflow-wrap: anywhere;
}
button svg {
  pointer-events: none;
}
@media (min-width: 1500px) {
  .hero {
    min-height: 385px;
  }
}
@media (max-width: 820px) {
  .bar {
    gap: 1rem;
  }
  .bar nav a {
    padding: 0.5rem 0.6rem;
  }
  .hero {
    grid-template-columns: 1.12fr 1fr;
  }
  .hero-copy {
    padding: 2rem;
  }
  .cards {
    gap: 0.7rem;
  }
  .card {
    padding: 1rem;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 3.4rem;
  }
  .card h3 {
    font-size: 1.45rem;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 2rem);
  }
  .bar {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 0.7rem;
  }
  .brand {
    font-size: 1.7rem;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  nav {
    order: 3;
    justify-content: space-between;
    width: 100%;
    padding: 0.6rem 0;
  }
  .bar nav a {
    flex: 1;
    justify-content: center;
    font-size: 0.84rem;
  }
  main {
    padding-block: 1.1rem 2rem;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 1.7rem 1.4rem;
  }
  .hero-art {
    height: 195px;
    min-height: 0;
  }
  .hero-art img {
    object-position: center 55%;
  }
  .hero h1 {
    font-size: 3.1rem;
    margin: 0.65rem 0;
  }
  .hero p {
    font-size: 1rem;
  }
  .section {
    margin-top: 1.65rem;
  }
  .cards,
  .cols {
    grid-template-columns: 1fr;
  }
  .card {
    display: grid;
    grid-template-columns: 53px 1fr;
    column-gap: 1rem;
    padding: 1.05rem;
  }
  .card-top {
    grid-column: 1;
    grid-row: 1/4;
    margin: 0;
    align-self: center;
  }
  .card h3,
  .card p,
  .card-action {
    grid-column: 2;
  }
  .card-action {
    margin-top: 0.5rem;
  }
  .hint {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hint > div {
    flex: 1;
    min-width: 160px;
  }
  .hint > .text {
    margin: 0;
  }
  .row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .panel,
  .exchange-cover {
    padding: 1.1rem;
  }
  .nav-account {
    padding: 0.4rem 0.65rem;
  }
  .footer {
    padding-bottom: 1rem;
  }
  .actions .btn {
    padding: 0.7rem 0.85rem;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .stamp {
    width: 43px;
    height: 48px;
  }
  .hero .actions {
    margin-top: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.wish-card:has(.wish-photo) {
  display: grid;
  grid-template-columns: minmax(100px, 26%) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.wish-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f4f3ed;
  border-radius: 0.65rem;
  border: 1px solid var(--rule);
}
.wish-price,
.panel p.wish-price {
  font-size: 1.05rem;
  color: var(--green);
  font-weight: 650;
  margin-top: 0.35rem;
}
.photo-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.photo-preview:empty,
.lookup-result:empty,
.import-status:empty {
  display: none;
}
.photo-preview img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  background: var(--soft);
  border-radius: 0.5rem;
}
.paste-option summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green);
}
.paste-option p {
  font-size: 0.92rem;
  margin: 0.65rem 0;
}
.import-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.75rem;
}
.import-row label {
  display: flex;
  align-items: baseline;
  overflow-wrap: anywhere;
}
.import-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin-right: 0.4rem;
  accent-color: var(--green);
}
.import-row p,
.import-row .subtle {
  grid-column: 1/-1;
  margin-left: 1.7rem;
}
.import-row .wish-price {
  margin: 0;
  font-size: 0.92rem;
}
@media (max-width: 520px) {
  .wish-card:has(.wish-photo) {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 0.75rem;
  }
  .wish-card .actions {
    gap: 0.35rem;
  }
}
