/* Layout: wide editorial grid, white paper, coloured product covers carry the colour */
:root {
  --paper: #ffffff;
  --ink: #161614;
  --muted: #74706a;
  --line: rgba(22, 22, 20, 0.12);
  --surface: #f2efea;
  --on-ink: #ffffff;
  --sans: "Geist", "Switzer", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 40px;
  --max: 1440px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.muted { color: var(--muted); }

/* Header */
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; flex-wrap: wrap; }
.brand { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.nav a:hover, .text-link:hover { color: var(--muted); }
.nav a[aria-current="page"] { color: var(--muted); }

/* Intro */
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-block: 48px 0; }
.intro-head { display: flex; flex-direction: column; gap: 20px; min-width: 0; flex: 1; }
.display { font-weight: 500; font-size: clamp(38px, 5.4vw, 96px); line-height: 1; letter-spacing: -0.035em; max-width: 14ch; }
.lead { width: 340px; flex-shrink: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Category pills */
.bar { display: flex; flex-direction: column; gap: 20px; padding-block: 48px 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px; background: var(--surface); font-weight: 500; font-size: 14px; transition: background .15s; }
.pill:hover { background: #e7e3dc; }
.pill[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.pill[aria-current="page"] .pill-meta { color: rgba(255,255,255,.6); }
.pill-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.pill-meta.soon { font-size: 10px; letter-spacing: .06em; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 48px 0; }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 320px; padding: 22px; border-radius: 6px; overflow: hidden; background: var(--c); color: var(--ci); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .mono { opacity: .7; position: relative; }
.cover-name { position: relative; font-family: var(--serif); font-size: 48px; line-height: 1; letter-spacing: -0.01em; transition: transform .35s ease; }
.card:hover .cover-name { transform: translateY(-4px); }
.sold-badge { position: absolute; top: 18px; right: 18px; z-index: 1; background: var(--ink); color: var(--on-ink); padding: 6px 10px; border-radius: 100px; }
.card-info { display: flex; justify-content: space-between; gap: 12px; }
.card-title { font-weight: 500; }
.card-niche { font-size: 14px; color: var(--muted); }
.card-price { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Empty state */
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; padding: 40px; border-radius: 8px; background: var(--surface); }
.empty h2 { font-weight: 500; font-size: 24px; letter-spacing: -0.02em; }

/* Dark panel */
.panel { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px; margin-top: 96px; padding: 56px; border-radius: 8px; background: var(--ink); color: var(--on-ink); }
.panel-text { display: flex; flex-direction: column; gap: 16px; max-width: 640px; min-width: 0; }
.panel h2 { font-weight: 500; font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; }
.panel p { opacity: .7; font-size: 15px; line-height: 1.5; }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 15px 22px; border-radius: 100px; font-weight: 500; font-size: 15px; border: 0; cursor: pointer; transition: opacity .15s; }
.btn:hover { opacity: .86; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-soft { background: var(--surface); color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); cursor: default; }
.btn-block { width: 100%; }

/* Product page */
.back { display: inline-block; font-size: 14px; padding-block: 32px 0; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding-block: 32px 0; }
.media { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.media .cover { height: 560px; padding: 36px; border-radius: 8px; }
.media .cover-name { font-size: clamp(56px, 7vw, 120px); line-height: .95; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 6px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.side h1 { font-weight: 500; font-size: 48px; line-height: 1; letter-spacing: -0.035em; }
.price-lg { font-weight: 500; font-size: 22px; font-variant-numeric: tabular-nums; }
.summary { font-size: 15px; line-height: 1.55; color: var(--muted); }
.specs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; text-align: right; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; margin-top: 56px; border-top: 1px solid var(--line); font-size: 15px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 56px; }
.section-head h2 { font-weight: 500; font-size: 32px; letter-spacing: -0.03em; }
.section-head + .grid { padding-block-start: 24px; }

/* Custom work */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 56px 0; }
.plan { display: flex; flex-direction: column; gap: 28px; padding: 40px; border-radius: 8px; background: var(--surface); min-width: 0; }
.plan.dark { background: var(--ink); color: var(--on-ink); }
.plan .mono { opacity: .7; }
.plan-price { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.plan-price strong { font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan-price span { opacity: .6; line-height: 1.6; }
.plan-desc { opacity: .7; font-size: 15px; line-height: 1.5; }
.plan ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.plan li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan.dark li { border-top-color: rgba(255,255,255,.14); }
.plan li::before { content: "✓"; opacity: .6; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 24px 0; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.step h3 { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Footer */
.site-footer { margin-top: 120px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; padding-block: 40px 32px; }
.footer-line { font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.01em; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }

/* 1920+ */
@media (min-width: 1920px) {
  :root { --gutter: 64px; --max: 1920px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
  .cover { height: 380px; }
  .media .cover { height: 820px; }
  .lead { width: 400px; font-size: 17px; }
  .plan { padding: 56px; }
  .plan-price strong { font-size: 72px; }
}
/* Tablet */
@media (max-width: 1199px) {
  :root { --gutter: 32px; }
  .intro { flex-direction: column; align-items: flex-start; gap: 20px; }
  .lead { width: auto; max-width: 480px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .cover { height: 300px; }
  .product { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side { position: static; }
  .media .cover { height: 460px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 44px; }
}
/* Phone */
@media (max-width: 809px) {
  :root { --gutter: 20px; }
  .nav { gap: 18px; }
  .intro { padding-block: 28px 0; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cover { height: 280px; }
  .cover-name { font-size: 44px; }
  .media .cover { height: 340px; padding: 24px; }
  .gallery { gap: 10px; }
  .side h1 { font-size: 38px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .plan { padding: 28px 24px; }
  .plan-price strong { font-size: 44px; }
  .panel { padding: 32px 24px; margin-top: 64px; }
  .panel h2 { font-size: 30px; }
  .site-footer { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
