:root {
  --paper: #fbf7ee;
  --wall: #f5f2ec;
  --ink: #1a1a1a;
  --ink-soft: #5b5752;
  --line: #2b2b2b;
  --lilac: #c9b3f2;
  --lilac-deep: #5b3fa0;
  --display: "Libre Caslon Display", "Didot", Georgia, serif;
  --body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --hand: "Nanum Pen Script", "Segoe Print", cursive;
  --gutter: clamp(1.125rem, 4.5vw, 4.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; scrollbar-color: var(--ink) var(--paper); -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-weight: 300; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); caret-color: var(--lilac-deep); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol, dl { padding: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.012em; text-wrap: balance; }
[hidden] { display: none !important; }
::selection { background: var(--lilac); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--ink); color: #fff; padding: .6rem 1rem; font-weight: 500; }
.skip-link:focus { top: .75rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100%, 92rem); margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; }
.cur { font-family: var(--body); font-size: .72em; margin-right: .06em; }
.price { font-family: var(--display); line-height: 1; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .625rem 1.75rem; background: var(--ink); color: var(--paper); font-weight: 500; text-align: center; text-decoration: none; line-height: 1.2; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--lilac-deep); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.add-btn { min-height: 2.75rem; padding: .25rem 1rem; background: var(--ink); color: var(--paper); font-weight: 500; font-size: .9375rem; white-space: nowrap; transition: background-color .2s; }
.add-btn:hover { background: var(--lilac-deep); }

.header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.header--plain { position: static; }
.nav { display: flex; align-items: center; gap: clamp(.875rem, 2.2vw, 2.25rem); min-height: 4.75rem; padding-block: .25rem; }
.brand { margin-right: auto; }
.brand img { width: 3.375rem; height: auto; mix-blend-mode: multiply; }
.nav-list { display: flex; align-items: center; gap: clamp(.875rem, 2vw, 2rem); list-style: none; }
.nav-link { font-weight: 400; text-decoration: none; padding-block: .25rem; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav-link:hover { border-bottom-color: var(--ink); }
.cart-btn { min-height: 2.75rem; padding: .25rem 1.125rem; background: var(--ink); color: var(--paper); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .2s; }
.cart-btn:hover { background: var(--lilac-deep); }
.cart-btn.pop { animation: pop .5s var(--ease); }
@keyframes pop { 35% { transform: scale(1.07); background: var(--lilac-deep); } }
.nav-toggle, .nav-close { display: none; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; font-size: 1.25rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(3.25rem, 8vw, 9rem); max-width: 11em; }
.hero h1 em { font-style: italic; color: var(--lilac-deep); }
.hero-sub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 3rem; margin-top: 1.25rem; }
.hero-sub .lede { max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
/* The compare slider: the photo shows to the right of the cut, the sketch to the left */
.compare { position: relative; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); aspect-ratio: 3 / 2; overflow: hidden; background: var(--wall); border: 1px solid var(--line); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-sketch { clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.compare-line::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--ink); border-radius: 50%; font-size: 1.25rem; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(input:focus-visible) .compare-line::after { outline: 2px solid var(--lilac-deep); outline-offset: 3px; }
.hand { position: absolute; bottom: .75rem; padding: 0 .625rem; background: var(--paper); font-family: var(--hand); font-size: 1.75rem; line-height: 1.2; pointer-events: none; }
.hand--l { left: .75rem; }
.hand--r { right: .75rem; }

/* Collection */
.collection { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.collection-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.collection-head h2 { font-size: clamp(3rem, 7vw, 7.5rem); }
.collection-head p { color: var(--ink-soft); }
.rail-group + .rail-group { margin-top: clamp(3rem, 6vw, 5rem); }
.rail-group h3 { position: relative; margin-bottom: 1.5rem; padding-bottom: .5rem; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.05; border-bottom: 3px solid var(--ink); }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.look { display: flex; flex-direction: column; min-width: 0; }
.frame { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--wall); border: 1px solid var(--line); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease); }
.frame .sketch { background: var(--paper); }
.frame .real { opacity: 0; }
.look.is-real .real, .look.in-cart .real { opacity: 1; }
/* Hovering a photo shows its sketch again */
@media (hover: hover) { .look.is-real:hover .real { opacity: 0; transition-duration: .35s; } }
.no { position: absolute; z-index: 2; top: .375rem; right: .625rem; padding: .125rem .375rem .25rem; background: var(--paper); font-family: var(--hand); font-size: 1.5rem; line-height: 1; color: var(--ink-soft); }
.look-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .875rem; }
.look h4 { font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.15; text-wrap: balance; }
.look-price { font-family: var(--display); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.15; white-space: nowrap; }
.look-desc { margin-top: .25rem; font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .375rem .5rem; margin-top: auto; padding-top: .75rem; }
.stock { font-family: var(--hand); font-size: 1.375rem; line-height: 1; color: var(--ink-soft); }
.look.in-cart .frame { box-shadow: 0 0 0 3px var(--lilac); }
.stepper { display: inline-flex; align-items: center; background: var(--ink); color: var(--paper); }
.stepper button { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; }
.stepper button:hover:not([disabled]) { background: var(--lilac-deep); }
.stepper button[disabled] { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 1.25rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* About */
.about { padding-block: clamp(4rem, 8vw, 7rem); background: var(--ink); color: var(--paper); }
.about :focus-visible { outline-color: var(--lilac); }
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: center; }
.about-grid > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about h2 { font-size: clamp(2.75rem, 5.6vw, 6rem); }
.about .lede { margin-top: 1.125rem; }
.mission { margin-top: 1.25rem; font-family: var(--hand); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; color: var(--lilac); }
.values { margin-top: 1.5rem; border-top: 1px solid rgba(251, 247, 238, .4); }
.values > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .125rem 1rem; padding-block: .75rem; border-bottom: 1px solid rgba(251, 247, 238, .4); }
.values dt { font-family: var(--display); font-size: 1.375rem; line-height: 1.2; }
.values dd { margin: 0; color: #d9d4ca; }

/* Contact */
.contact { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); overflow: hidden; isolation: isolate; background: var(--wall); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 0; z-index: -1; }
.contact h2 { font-size: clamp(3rem, 8vw, 8.5rem); }
.contact-card { display: grid; grid-template-columns: repeat(2, minmax(0, 22rem)); gap: 1.25rem clamp(1.5rem, 3vw, 3rem); width: fit-content; max-width: 100%; margin-top: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.25rem, 2.4vw, 1.75rem); background: var(--paper); border: 1px solid var(--line); font-style: normal; }
.contact-card h3 { font-family: var(--hand); font-weight: 400; font-size: 1.625rem; line-height: 1; color: var(--lilac-deep); }
.contact-card a { overflow-wrap: anywhere; font-weight: 400; }

.policies { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.policy-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); list-style: none; }
.policy-list h2 { font-size: 2rem; }
.policy-list p { margin: .25rem 0 .5rem; font-size: .9688rem; color: var(--ink-soft); }
.policy-list a { font-weight: 500; }
.footer { padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; background: var(--ink); color: var(--paper); }
.footer :focus-visible { outline-color: var(--lilac); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.footer-line { font-family: var(--hand); font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; color: var(--lilac); max-width: 8em; }
.footer h2 { font-family: var(--body); font-size: .9375rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; margin-bottom: .375rem; }
.footer ul { list-style: none; display: grid; gap: .1rem; }
.footer li a { display: inline-block; padding-block: .2rem; font-size: .9688rem; text-decoration: none; overflow-wrap: anywhere; color: #d9d4ca; }
.footer li a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; margin-top: 2.5rem; font-size: .875rem; color: #b8b2a7; }

/* Cart */
.cart-overlay { position: fixed; inset: 0; z-index: 180; background: rgba(26, 26, 26, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; z-index: 190; width: min(100%, 28rem); display: flex; flex-direction: column; background: var(--paper); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; }
.cart-sidebar.open { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: .875rem 1.25rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 2rem; }
.cart-close { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; font-size: 1.25rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 0 1.25rem; }
.cart-item { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .875rem; padding-block: .875rem; border-bottom: 1px solid rgba(43, 43, 43, .2); }
.cart-item img { width: 4rem; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--line); }
.cart-item h3 { font-family: var(--display); font-weight: 400; font-size: 1.125rem; line-height: 1.2; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .125rem; }
.cart-item-sub { font-weight: 500; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; margin-left: -.75rem; }
.qty button { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; }
.qty button:hover:not([disabled]) { background: var(--wall); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 1.25rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-remove { min-height: 2.75rem; font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }
.cart-empty { padding-block: 3rem; text-align: center; }
.cart-empty p { font-family: var(--display); font-size: 1.875rem; margin-bottom: 1rem; }
.cart-foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .875rem; line-height: 1.25; font-size: .9375rem; }
.cart-total .price { font-size: 2.25rem; }
.cart-foot .btn { width: 100%; }
.cart-foot p { margin-top: .75rem; font-size: .875rem; text-align: center; color: var(--ink-soft); }

/* Order */
.order-page { padding-block: clamp(3rem, 6vw, 5rem); }
.order-intro h1 { font-size: clamp(3rem, 8vw, 8rem); }
.order-intro .lede { margin-top: .875rem; max-width: 32em; }
.order { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; margin-top: clamp(2rem, 4vw, 3rem); }
.order-form h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); margin-bottom: 1rem; }
.field { margin-bottom: 1.125rem; }
.field > label { display: block; font-weight: 500; margin-bottom: .25rem; }
.field label span { font-weight: 300; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 3.125rem; padding: .625rem .875rem; background: #fff; border: 1px solid var(--line); border-radius: 0; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lilac-deep); outline-offset: 1px; }
.field textarea { resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .75rem center / 1.25rem; }
.field-hint { margin-top: .25rem; font-size: .875rem; color: var(--ink-soft); }
.field-error { margin-top: .25rem; font-size: .875rem; font-weight: 500; color: #a3290f; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border: 2px solid #a3290f; }
.order-submit { width: 100%; }
.summary { position: sticky; top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); }
.summary h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); margin-bottom: .75rem; }
.summary table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.summary td { padding-block: .625rem; border-top: 1px solid rgba(43, 43, 43, .2); vertical-align: top; font-weight: 400; line-height: 1.3; }
.summary td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.summary td small { display: block; font-size: .875rem; color: var(--ink-soft); }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 2px solid var(--ink); line-height: 1.25; font-size: .9375rem; }
.summary-total .price { font-size: clamp(2.25rem, 3.6vw, 3rem); }
.summary-note { margin-top: .875rem; font-size: .9375rem; }
.sent { max-width: 46rem; }
.sent h2 { font-size: clamp(2.75rem, 6vw, 5.5rem); margin-bottom: .875rem; }
.sent-copy { margin-top: 1.25rem; }
.sent-copy pre { margin-top: .75rem; padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .875rem; background: #fff; border: 1px solid var(--line); }

.legal-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(3rem, 8vw, 7.5rem); }
.legal-body { padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem); }
.legal { max-width: 68ch; }
.legal h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin: 2rem 0 .5rem; }
.legal ul, .legal ol { padding-left: 1.25rem; display: grid; gap: .35rem; margin-block: .5rem; }
.legal p { margin-block: .5rem; }
.legal a { overflow-wrap: anywhere; }

@media (max-width: 1100px) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; margin-right: -.5rem; }
  .nav-list { position: fixed; inset: 0; z-index: 200; flex-direction: column; align-items: flex-start; justify-content: center; gap: .25rem; padding: 4.5rem var(--gutter) 2rem; background: var(--ink); color: var(--paper); transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; }
  .nav-list.open { transform: none; visibility: visible; }
  .nav-list .nav-link { font-family: var(--display); font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1.15; }
  .nav-list :focus-visible { outline-color: var(--lilac); }
  .nav-close { display: inline-flex; position: absolute; top: .875rem; right: var(--gutter); }
}
@media (max-width: 820px) {
  .collection-head, .about-grid, .order { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(3rem, 13vw, 6rem); }
  .compare { aspect-ratio: 4 / 3; }
  .policy-list { grid-template-columns: minmax(0, 1fr); }
  .contact-bg { object-position: 0 0; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-line { grid-column: 1 / -1; }
  .summary { position: static; order: -1; }
}
@media (max-width: 560px) {
  .contact-card, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; padding-inline: 1rem; }
  .look-top { flex-direction: column; gap: .125rem; }
  .add-btn { width: 100%; white-space: normal; }
  .stepper { width: 100%; justify-content: space-between; }
  .values > div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
