:root {
  color-scheme: light;
  --linen: #f6f1e7;
  --paper: #fffdf8;
  --ink: #1f1b18;
  --muted: #6f6257;
  --rule: #e6dfd3;
  --rust: #8e4527;
  --copper: #a35b34;
  --copper-light: #ebb17d;
  --navy: #111c2b;
  --green: #1f3a34;
  --gutter: clamp(18px, 3.06vw, 44px);
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 16px system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
[hidden] { display: none !important; }
.site-header {
  display: grid; grid-template-columns: 1fr minmax(230px, 440px) 1fr;
  align-items: center; gap: 20px; padding: 16px var(--gutter); background: var(--navy); color: var(--linen);
}
.brand p { font: 22px var(--serif); letter-spacing: .01em; }
.brand span { display: block; margin-top: 2px; color: var(--copper-light); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.search {
  display: flex; align-items: center; gap: 9px; min-width: 0; height: 40px;
  padding: 0 14px; background: white; color: var(--muted); border: 1px solid #dfd7ca; border-radius: 999px;
}
.search:focus-within { outline: 2px solid var(--rust); outline-offset: 2px; }
.search svg { flex: none; }
.search input { width: 100%; min-width: 0; outline: none; border: 0; background: transparent; }
.selections-button, .mobile-review button, .primary-button {
  border: 0; border-radius: 999px; background: var(--copper); color: white;
  padding: 10px 18px; font-size: 14px; font-weight: 650;
}
.selections-button { justify-self: end; white-space: nowrap; }
.selections-button span { display: inline-block; margin-left: 6px; padding: 1px 8px; background: var(--paper); color: var(--rust); border-radius: 999px; font-size: 12px; }
.site-header :focus-visible, .site-header .search:focus-within,
.hero :focus-visible, .mobile-review :focus-visible, .forest-band:focus-visible { outline-color: var(--copper-light); }
.hero {
  display: flex; align-items: center; min-height: 520px; color: var(--linen);
  background: linear-gradient(90deg, #0d141ff2, #0d141fba 36%, #0d141f00 72%),
    var(--navy) url('/art/hero-room.webp') center 35% / cover no-repeat;
}
.hero-copy { width: min(100%, 560px); padding: 56px var(--gutter); }
.hero .eyebrow { color: var(--copper-light); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.hero h1 { font: 54px/1.08 var(--serif); margin: 14px 0 16px; }
.hero p { font-size: 17px; line-height: 1.6; }
.primary-button { display: inline-block; min-height: 44px; padding: 12px 22px; text-decoration: none; }
.hero .primary-button { margin-top: 24px; }
.series-band { scroll-margin-top: 12px; }
.series { max-width: 1280px; margin-inline: auto; padding: 30px var(--gutter) 40px; }
.series-head { border-bottom: 1px solid #d9cfbd; padding-bottom: 13px; margin-bottom: 22px; }
.series-head h2 { font: 32px/1.2 var(--serif); }
.series-head p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 6px; }
.series-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.forest-band { background: var(--green); }
.forest-band .series-head { color: var(--linen); border-color: #6e867b; }
.forest-band .series-head p { color: #e7e2d6; }
.site-footer { background: var(--navy); color: #e1d6c3; text-align: center; padding: 24px var(--gutter); font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 20px var(--gutter) 0; max-width: 1280px; margin-inline: auto; }
.style-pills, .filter-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pill, .filter-controls select {
  padding: 7px 13px; border: 1px solid #dfd7ca; border-radius: 999px;
  background: var(--paper); color: var(--green); font-size: 13px; white-space: nowrap;
}
.style-pills .pill { padding-inline: 16px; font-weight: 650; text-decoration: none; }
.pill[aria-pressed="true"] { color: white; border-color: var(--green); background: var(--green); }
.filter-controls select {
  appearance: none; max-width: 100%; font-size: 16px; padding-right: 28px;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%234b423b' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center / 10px no-repeat;
}
.catalog-message { max-width: 1280px; margin: 20px auto 32px; padding-inline: var(--gutter); color: var(--muted); }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px #281e0f19; }
.card.selected { border-color: var(--green); box-shadow: 0 6px 20px #2e473b1a; }
.photo { position: relative; height: 238px; background: #f4f0e8; }
.photo.square { height: auto; aspect-ratio: 1; }
.photo [data-action="detail"] { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; }
.photo [data-action="detail"]:focus-visible { outline-offset: -4px; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.square img { object-fit: contain; }
.heart, .room-toggle { position: absolute; top: 10px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: #fffffff2; color: var(--muted); font-size: 19px; }
.heart { right: 10px; }
.room-toggle { left: 10px; display: grid; place-items: center; }
.heart[aria-pressed="true"], .room-toggle[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.kicker { color: var(--rust); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.pick-note { font-size: 11px; font-weight: 650; color: var(--green); }
.item-title { font: 19px/1.3 var(--serif); margin-bottom: 5px; }
.item-title button { border: 0; padding: 0; background: transparent; text-align: left; }
.item-title button:hover { text-decoration: underline; text-underline-offset: 3px; }
.latin-name { margin: 0 0 7px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.item-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f0eae0; }
.item-price { font-size: 17px; font-weight: 650; }
.select-piece { min-height: 36px; padding: 7px 16px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); background: var(--paper); font-size: 13px; font-weight: 650; }
.select-piece[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
.mobile-review { display: none; }
dialog { border: 1px solid var(--rule); color: var(--ink); padding: 0; background: var(--paper); }
dialog::backdrop { background: #111c2bb3; }
.close { border: 1px solid var(--rule); border-radius: 50%; background: white; width: 42px; height: 42px; flex: none; padding: 0; font-size: 25px; line-height: 1; }
.detail { width: min(680px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border-radius: 16px; overflow: auto; }
.detail-close { position: sticky; float: right; top: 10px; margin: 10px 10px -52px 0; z-index: 1; }
.detail-photo { display: block; width: 100%; max-height: 52dvh; object-fit: contain; background: #f1ece2; touch-action: pan-y pinch-zoom; }
.detail-copy { padding: 22px; display: grid; gap: 10px; justify-items: start; }
.detail-copy h2, .drawer h2 { font: 24px var(--serif); }
.detail-copy p { color: var(--muted); }
.detail-copy a { color: var(--green); text-underline-offset: 3px; }
.detail-thumbs { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.detail-thumbs button { min-width: 0; padding: 4px; font-size: 12px; background: white; border: 1px solid var(--rule); border-radius: 5px; }
.detail-thumbs button[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.detail-thumbs img { display: block; width: 100%; height: 54px; object-fit: contain; }
.detail-thumbs span { display: block; padding: 4px 0; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(540px, 100%); height: 100%; height: 100dvh; max-width: none; max-height: none; border-width: 0 0 0 1px; box-shadow: -10px 0 50px #1f1b182f; }
#selection-form { display: flex; flex-direction: column; min-height: 100%; }
.drawer-header { display: flex; align-items: center; gap: 10px; padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 1; }
.drawer-header div { flex: 1; }
.drawer-header p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.estimate { white-space: nowrap; border: 1px solid var(--rule); border-radius: 999px; padding: 7px 10px; background: white; font-size: 13px; font-weight: 700; }
.drawer-items { display: grid; gap: 10px; padding: 14px 16px; }
.pick { padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: white; }
.pick-main { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.pick-main > img { width: 72px; height: 62px; object-fit: cover; border-radius: 6px; }
.pick-heading, .pick-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.pick-heading { justify-content: space-between; }
.pick-heading h3 { font: 700 15px var(--serif); }
.pick-meta { margin: 3px 0 6px; color: var(--muted); font-size: 12px; }
.remove { border: 0; padding: 4px 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 8px; }
.stepper button { width: 33px; height: 34px; border: 0; border-radius: 7px; background: var(--linen); }
.stepper span { width: 30px; text-align: center; font-size: 13px; }
.flag { min-height: 34px; border: 1px solid var(--rule); border-radius: 999px; background: white; font-size: 12px; padding: 3px 8px; color: var(--muted); }
.flag[data-value="top"][aria-pressed="true"] { background: #f6e5d4; border-color: var(--copper); color: var(--rust); }
.flag[data-value="maybe"][aria-pressed="true"] { background: #e5eee7; border-color: var(--green); color: var(--green); }
.format-picker { max-width: 100%; min-height: 44px; margin-bottom: 6px; font-size: 16px; }
.pick label, .drawer-footer label { display: block; font-size: 13px; font-weight: 650; margin: 10px 0 5px; }
textarea { display: block; width: 100%; padding: 8px 10px; font-size: 16px; border: 1px solid #dfd7ca; border-radius: 8px; background: var(--paper); resize: vertical; }
.drawer-footer { margin-top: auto; padding: 0 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.send { background: var(--copper); color: white; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 12px; padding: 8px; border: 1px solid; border-radius: 10px; font-size: 14px; font-weight: 750; }
.send-status:not(:empty) { margin-top: 9px; color: var(--green); font-size: 14px; }
.send-status.error { color: var(--rust); }
.photo .room-photo { position: absolute; inset: 0; opacity: 0; object-fit: cover; pointer-events: none; }
.photo.showing-room .room-photo { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .room-photo { opacity: 1; }
  .room-toggle { display: none; }
}
@media (any-pointer: coarse) {
  .room-toggle { display: grid; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .room-photo { transition: opacity 280ms ease; }
  .card.arriving:not(:focus-within) { animation: arrive 380ms ease-out; }
  @keyframes arrive {
    from { opacity: .65; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.thanks {
  width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  border-radius: 16px; overflow: auto; text-align: center;
}
.thanks-copy { padding: 22px var(--gutter); }
.thanks h2 { font: clamp(30px, 5vw, 46px)/1.1 var(--serif); }
.thanks p { color: var(--muted); margin-top: 9px; line-height: 1.5; }
.selection-wall {
  display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap;
  gap: 22px clamp(12px, 3vw, 28px); padding: 26px 12px;
  background: linear-gradient(#eee3cf, #dfcdb2);
}
.selection-wall figure { width: clamp(100px, 25%, 150px); margin: 0; }
.selection-wall img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: contain;
  padding: 4px; background: var(--paper); box-shadow: 3px 6px 10px #38271240;
}
.selection-wall figcaption { margin-top: 9px; font: 16px/1.25 var(--serif); }
.selection-wall figcaption span { display: block; margin-top: 3px; font: 12px/1.3 system-ui, sans-serif; }
@media (min-width: 761px) {
  #selection-form { height: 100%; }
  .drawer-header, .drawer-footer { flex: none; }
  .drawer-items { overflow: auto; min-height: 0; }
  .drawer-footer textarea { max-height: 30dvh; }
}
@media (max-width: 760px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; padding: 12px var(--gutter); gap: 10px; }
  .search { grid-row: 2; grid-column: 1 / -1; }
  .brand p { font-size: clamp(17px, 4.5vw, 22px); }
  .brand span { font-size: 9px; letter-spacing: .1em; }
  .selections-button { padding: 9px 10px; font-size: 12px; }
  .selections-button span { margin-left: 2px; padding-inline: 5px; }
  .hero {
    align-items: end; min-height: clamp(490px, 130vw, 610px);
    background: linear-gradient(180deg, #0d141f08 20%, #0d141fc9 53%, #0d141ff5 84%),
      var(--navy) url('/art/hero-room-phone.webp') center top / cover no-repeat;
  }
  .hero-copy { padding: 184px var(--gutter) 28px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 15px; }
  .series { padding-block: 24px 30px; }
  .series-head { margin-bottom: 16px; }
  .series-head h2 { font-size: 26px; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .style-pills { flex-wrap: nowrap; overflow-x: auto; padding: 4px 3px 7px; }
  .filter-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-controls select { width: 100%; }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .photo { height: auto; aspect-ratio: 1.25; }
  .heart { top: 6px; right: 6px; }
  .room-toggle { top: 6px; left: 6px; }
  .card { border-radius: 10px; }
  .card-content { padding: 9px; }
  .item-title { font-size: 15px; }
  .item-sub { font-size: 11px; margin-bottom: 8px; }
  .card-footer { display: grid; padding-top: 7px; gap: 5px; }
  .select-piece { padding-inline: 6px; min-height: 40px; width: 100%; }
  .item-price { font-size: 14px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .mobile-review { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: fixed; inset: auto 0 0; background: var(--navy); color: white; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); font-size: 14px; font-weight: 650; z-index: 2; box-shadow: 0 -5px 15px #1f1b181a; }
  .mobile-review button { padding: 11px 14px; white-space: nowrap; }
  .drawer { width: 100%; border: 0; }
  .drawer-header { padding-inline: 12px; }
  .drawer h2 { font-size: 20px; }
  .estimate { font-size: 12px; padding-inline: 7px; }
  .pick-main { grid-template-columns: 54px minmax(0, 1fr); gap: 9px; }
  .pick-main > img { width: 54px; height: 54px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
