@import url("/fonts/fonts.css");

/* Tokens: see DESIGN.md */
:root {
  --porcelain: #F7F5EF;
  --clay: #D7C9B8;
  --clay-soft: #E6DED3;
  --terracotta: #B06A4A;
  --terracotta-ink: #8F5236;
  --sage: #6B6F63;
  --black: #1E1E1E;
  --line: rgba(30, 30, 30, .12);
  --success: #4F6B4A;
  --error: #A23B2A;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --section: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--porcelain); color: var(--black); font: 300 16px/1.65 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.lead { font-size: 17px; max-width: 34em; }
.muted { color: var(--sage); }
.small { font-size: 13px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.label { font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sage); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--black); color: var(--porcelain); padding: 8px 12px; z-index: 30; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* Announcement bar */
.announce { background: var(--black); color: var(--clay); font: 400 12px/1.4 var(--sans); letter-spacing: .04em; text-align: center; padding: 10px 0; }
.announce a { color: var(--porcelain); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 84px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 36px; margin-left: auto; }
.nav a, .basket-link, .site-footer nav a, .link-btn, .pill, .stock { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--terracotta-ink); }
.menu { display: none; }
.basket-link { margin-left: 36px; text-decoration: none; color: var(--terracotta-ink); white-space: nowrap; padding: 8px 0; }
.basket-link:hover { color: var(--black); }

/* Buttons */
.btn { display: inline-block; padding: 16px 28px; border: 1px solid var(--black); font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-solid { background: var(--black); color: var(--porcelain); }
.btn-solid:hover { background: var(--terracotta-ink); border-color: var(--terracotta-ink); }
.btn-ghost { background: transparent; color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--porcelain); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--black); border-color: var(--black); }
.btn-block { display: block; width: 100%; }
.link-btn { background: none; border: 0; padding: 0 0 4px; cursor: pointer; color: inherit; border-bottom: 1px solid var(--terracotta); }
.link-btn:hover { color: var(--terracotta-ink); }
.link-btn[disabled] { display: none; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--sage); margin-bottom: 20px; }
.crumbs a { color: var(--sage); }
.crumbs a:hover { color: var(--black); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.hero h1 { margin: 20px 0 24px; }
.hero h1 em { color: var(--terracotta); }
.hero-art { background: var(--clay); aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.hero-art svg, .hero-art > img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .stamp { position: absolute; right: 22px; bottom: 22px; width: 96px; height: auto; opacity: .9; }

/* Trust bar */
.trust-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 4px; }
.trust li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.trust strong { font: 400 17px/1.3 var(--serif); }
.trust span { font-size: 13px; color: var(--sage); }

/* Sections */
section { padding: var(--section) 0; }
.hero, .product-page { padding: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }
.section-head p { max-width: 380px; margin: 0; }
.more { text-align: center; margin-top: 56px; }
.empty { padding: 40px 0; color: var(--sage); }

/* Drops */
.drop-meta { display: flex; align-items: center; gap: 14px; }
.countdown { font: 400 26px/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--terracotta-ink); }
.pill { padding: 9px 14px; border: 1px solid currentColor; }
.pill-live { color: var(--terracotta-ink); }
.pill-sold { color: var(--sage); }
.shop .drop { padding: 64px 0 88px; }
.shop .drop + .drop { border-top: 1px solid var(--line); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.piece .art { background: var(--clay); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.piece:nth-child(even) .art { background: var(--clay-soft); }
.piece .art svg { width: 62%; height: 62%; }
.piece .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.piece:hover .art img { transform: scale(1.03); }
.piece-link { display: block; }
.piece .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.piece h3 { font-size: 21px; }
.piece h3 a { text-decoration: none; }
.piece h3 a:hover { color: var(--terracotta-ink); }
.piece .price { font: 400 15px var(--sans); }
.piece p { color: var(--sage); font-size: 14px; margin: 6px 0 12px; }
.stock-open { color: var(--terracotta-ink); }
.stock-sold, .stock-soon { color: var(--sage); }
.piece.is-sold .art { opacity: .55; }

/* Process */
.process { background: var(--clay); }
.process .label, .process .section-head p { color: var(--black); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { border-top: 1px solid var(--black); padding-top: 24px; }
.step .num { font: italic 400 34px/1 var(--serif); color: var(--terracotta-ink); }
.step h3 { margin: 18px 0 10px; }
.step p { margin: 0; }

/* Quote */
.quote { background: var(--black); color: var(--porcelain); text-align: center; padding: 120px 0; }
.quote blockquote { margin: 0; font: italic 400 clamp(28px, 4vw, 46px)/1.3 var(--serif); }
.quote .label { color: var(--clay); margin-top: 28px; }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about .art { background: var(--sage); aspect-ratio: 1; display: grid; place-items: center; }
.about .art img { width: 46%; }
.about h2 { margin: 14px 0 24px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.facts strong { display: block; font: 400 24px/1.2 var(--serif); }
.facts span { font-size: 13px; color: var(--sage); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; }
.faq h2 { margin: 14px 0 20px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 400 19px/1.35 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font: 300 22px var(--sans); color: var(--terracotta-ink); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 22px; max-width: 60ch; }

/* Sign-up band */
.cta-band { background: var(--clay); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.cta-band h2 { margin: 14px 0 16px; }
.cta-band .label, .cta-band .muted { color: var(--black); }
.signup .label { display: block; margin-bottom: 12px; color: inherit; }
.signup-row { display: flex; }
.signup input[type=email] { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--black); border-right: 0; background: var(--porcelain); color: var(--black); font: 400 16px var(--sans); border-radius: 0; }
.signup .btn { height: 52px; }
.signup p { margin: 12px 0 0; }
.signup-msg { font-weight: 500; color: var(--error); }
.signup-msg.is-ok { color: var(--success); }
.hp { position: absolute; left: -9999px; }

/* Page hero (shop, success, 404) */
.page-hero { padding: 56px 0 48px; }
.page-hero h1 { margin: 0 0 20px; max-width: 760px; }
.page-hero.center { text-align: center; padding: 96px 0 120px; }
.page-hero.center h1, .page-hero.center p { margin-left: auto; margin-right: auto; }
.page-hero.center .actions { justify-content: center; }
.page-hero .badge { margin: 0 auto 32px; }

/* Product page */
.product-page .wrap { padding-top: 40px; padding-bottom: 88px; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.gallery { position: sticky; top: 24px; }
.art-lg { background: var(--clay); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; }
.art-lg svg { width: 60%; height: 60%; }
.art-lg img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); background: var(--clay); cursor: pointer; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin: 14px 0 14px; font-size: clamp(36px, 4.4vw, 52px); }
.price-lg { font: 400 22px var(--sans); margin-bottom: 14px; }
.product-info .stock { display: inline-block; margin-bottom: 24px; }
.buy { display: flex; gap: 12px; margin: 32px 0; }
.buy .btn { flex: 1; }
.buy-note { margin: 32px 0; }
.buy-note .countdown { font-size: 22px; }
.qty { width: 72px; border: 1px solid var(--black); background: transparent; font: 400 16px var(--sans); text-align: center; border-radius: 0; }
.assure { padding: 24px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--sage); }
.assure li { padding: 4px 0 4px 18px; position: relative; }
.assure li::before { content: "·"; color: var(--terracotta); position: absolute; left: 2px; }
.related { border-top: 1px solid var(--line); }
.sticky-buy { display: none; }

/* Basket drawer */
.scrim { position: fixed; inset: 0; background: rgba(30, 30, 30, .35); z-index: 20; }
.basket { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--porcelain); z-index: 21; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(30, 30, 30, .12); }
.basket[hidden], .scrim[hidden] { display: none; }
.basket-head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); }
.basket-head h2 { font-size: 26px; }
.basket-ship { padding: 0 24px; }
.basket-ship:not(:empty) { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.basket-ship p { margin: 0 0 8px; }
.bar { height: 4px; background: var(--clay); }
.bar span { display: block; height: 100%; background: var(--terracotta); transition: width .3s; }
.basket-lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.art-sm { width: 72px; height: 72px; background: var(--clay); display: grid; place-items: center; overflow: hidden; }
.art-sm svg { width: 70%; height: 70%; }
.art-sm img { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: flex; flex-direction: column; gap: 2px; }
.line-info a { text-decoration: none; }
.line-info strong { font: 400 17px var(--serif); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; width: max-content; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 16px; color: inherit; }
.stepper button[disabled] { opacity: .3; cursor: not-allowed; }
.stepper span { min-width: 24px; text-align: center; font-size: 14px; }
.basket-foot { padding: 24px; border-top: 1px solid var(--line); }
.basket-foot .total { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 8px; }
.basket-foot .small { margin: 8px 0; }
.basket-msg { color: var(--error); font-size: 14px; margin: 8px 0; }
.basket-msg:empty { display: none; }
body.no-scroll { overflow: hidden; }

/* Legal */
.legal { padding: 56px 0 104px; }
.legal h1 { margin: 0 0 24px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.legal .note { background: var(--clay); padding: 12px 16px; font-size: 14px; }

/* Footer */
.site-footer { background: var(--black); color: var(--clay); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .9fr 1.5fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(215, 201, 184, .2); }
.footer-grid img { height: 54px; width: auto; margin-bottom: 20px; }
.footer-about { font-size: 14px; max-width: 280px; }
.site-footer nav { display: flex; flex-direction: column; gap: 14px; }
.site-footer nav .label { color: var(--clay); opacity: .7; margin-bottom: 4px; }
.site-footer nav a { text-decoration: none; text-transform: none; letter-spacing: 0; font: 400 14px var(--sans); }
.site-footer a:hover { color: var(--porcelain); }
.footer-signup .signup input[type=email] { background: transparent; color: var(--porcelain); border-color: var(--clay); }
.footer-signup .signup .btn { background: var(--porcelain); color: var(--black); border-color: var(--porcelain); }
.footer-signup .signup .btn:hover { background: var(--clay); }
.footer-signup .small { color: var(--clay); opacity: .8; }
.footer-signup .signup-msg { color: #E8A58A; }
.footer-signup .signup-msg.is-ok { color: var(--clay); }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }

/* Tablet */
@media (max-width: 960px) {
  :root { --section: 80px; }
  .hero .wrap, .about .wrap, .faq-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head { flex-direction: column; align-items: start; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-signup { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 720px) {
  .site-header .wrap { height: 68px; }
  .logo img { height: 36px; }
  .nav { display: none; }
  .menu { display: block; position: relative; margin-left: auto; }
  .menu summary { list-style: none; cursor: pointer; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 14px 0; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .nav { display: flex; flex-direction: column; gap: 6px; position: absolute; right: -90px; top: 48px; background: var(--porcelain); border: 1px solid var(--line); padding: 16px 28px; z-index: 15; min-width: 200px; }
  .menu[open] .nav a { padding: 12px 0; }
  .basket-link { margin-left: 20px; }
  .grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts strong { font-size: 19px; }
  .countdown { font-size: 22px; }
  .signup-row { flex-direction: column; gap: 10px; }
  .signup input[type=email] { border-right: 1px solid var(--black); }
  .footer-signup .signup input[type=email] { border-right-color: var(--clay); }
  .has-sticky { padding-bottom: 76px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--porcelain); border-top: 1px solid var(--line); padding: 12px 16px; gap: 12px; align-items: center; justify-content: space-between; transform: translateY(100%); transition: transform .25s; }
  .sticky-buy.is-visible { transform: none; }
  .sticky-buy div { display: flex; flex-direction: column; }
  .sticky-buy strong { font: 400 16px var(--serif); }
  .sticky-buy span { font-size: 14px; }
  .sticky-buy .btn { padding: 14px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .trust { grid-template-columns: 1fr; }
  .trust li, .trust li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .trust li:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
