/* ATTICUS HAYES — house stylesheet */
:root {
  --ink: #111110;
  --bone: #efeae1;
  --ivory: #f6f3ec;
  --stone: #8f8a80;
  --hair: rgba(17, 17, 16, 0.14);
  --font-display: "Bodoni Moda", "Bodoni 72", "Didot", "Times New Roman", serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sig: "Monsieur La Doulaise", "Pinyon Script", "Snell Roundhand", cursive;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.dark { background: var(--ink); color: var(--bone); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -0.005em; }
.eyebrow { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.serif { font-family: var(--font-display); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Signature logo */
.sig {
  font-family: var(--font-sig);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transform: rotate(-2.5deg);
  display: inline-block;
}
.sig--xl { font-size: clamp(88px, 15vw, 220px); }
.sig--footer { font-size: clamp(72px, 12vw, 180px); opacity: .95; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 84px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
  transition: background .4s var(--ease), color .4s var(--ease);
}
body.dark .site-header { background: color-mix(in srgb, var(--ink) 80%, transparent); border-color: rgba(239,234,225,.14); }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a, .site-header .util a, .site-header .util button, .site-header .burger {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { transform: scaleX(1); }
.site-header .brand { justify-self: center; }
.site-header .util { display: flex; gap: 28px; justify-self: end; align-items: center; }
.site-header .burger { display: none; }
@media (max-width: 860px) {
  .site-header { grid-template-columns: auto 1fr auto; height: 68px; }
  .site-header nav { display: none; }
  .site-header .burger { display: block; }
  .site-header .sig { font-size: 34px; }
  .site-header .util a.hide-sm { display: none; }
}

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--ivory); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: var(--gutter);
  transform: translateY(-100%); transition: transform .6s var(--ease); }
.menu.open { transform: translateY(0); }
.menu a { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.menu .close { position: absolute; top: 24px; right: var(--gutter); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #cfc9c0; color: var(--ink); }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .92; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(239,234,225,.35) 0%, rgba(239,234,225,0) 40%); }
.hero .copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 7vh, 90px); display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.hero .copy h1 { font-size: clamp(48px, 8vw, 128px); letter-spacing: -0.01em; }
.hero .copy .eyebrow { color: var(--ink); opacity: .65; margin-bottom: 14px; }
.hero .cta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px; white-space: nowrap; }
@media (max-width: 720px) { .hero .copy { flex-direction: column; align-items: start; gap: 22px; } }

/* Statement */
.statement { padding: clamp(80px, 14vh, 180px) var(--gutter); max-width: 980px; margin: 0 auto; text-align: center; }
.statement p { font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); line-height: 1.3; margin: 22px 0 0; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 4px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid, .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; display: block; }
.card .frame { aspect-ratio: 4 / 5; overflow: hidden; background: #e6e1d7; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .8s var(--ease); }
.card:hover img { transform: scale(1.03); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 6px 34px; }
.card .meta .name { font-family: var(--font-body); font-size: 12px; letter-spacing: .04em; line-height: 1.4; }
.card .meta .price { font-size: 12px; letter-spacing: .02em; color: var(--stone); white-space: nowrap; }
.card .num { position: absolute; top: 14px; left: 16px; font-size: 10px; letter-spacing: .16em; color: var(--stone); mix-blend-mode: multiply; }

/* Section headings */
.section-head { display: flex; justify-content: space-between; align-items: end; padding: 0 calc(var(--gutter) - 4px) 22px; gap: 20px; }
.section-head h2 { font-size: clamp(30px, 4vw, 52px); }
.section-head a { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 5px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.split .frame { overflow: hidden; background: #e6e1d7; }
.split .frame img { width: 100%; height: 100%; object-fit: cover; }
.split .text { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 8vw, 120px); }
.split .text h2 { font-size: clamp(36px, 4.6vw, 68px); margin: 18px 0 26px; }
.split .text p { max-width: 44ch; font-size: 14px; line-height: 1.8; }
.split .text .cta { margin-top: 30px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px; align-self: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .frame { aspect-ratio: 4/5; } }

/* Collection page */
.page-head { padding: clamp(60px, 10vh, 120px) var(--gutter) 40px; display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(48px, 8vw, 120px); letter-spacing: -0.01em; }
.filters { display: flex; gap: 26px; flex-wrap: wrap; }
.filters button { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); padding-bottom: 5px; border-bottom: 1px solid transparent; }
.filters button[aria-pressed="true"] { color: var(--ink); border-color: currentColor; }

/* Product page */
.product { display: grid; grid-template-columns: 1.15fr .85fr; }
.product .gallery { display: grid; gap: 4px; padding: 4px; }
.product .gallery .frame { aspect-ratio: 4 / 5; overflow: hidden; background: #e6e1d7; }
.product .gallery img { width: 100%; height: 100%; object-fit: cover; }
.product .info { position: sticky; top: 84px; align-self: start; padding: clamp(40px, 6vw, 96px); }
.product .info h1 { font-size: clamp(34px, 3.6vw, 54px); margin: 14px 0 10px; }
.product .info .price { font-size: 13px; letter-spacing: .14em; color: var(--stone); }
.product .info .desc { margin: 30px 0; max-width: 46ch; font-size: 14px; line-height: 1.8; }
.sizes { display: flex; gap: 8px; margin: 10px 0 26px; }
.sizes button { width: 46px; height: 46px; border: 1px solid var(--hair); font-size: 11px; letter-spacing: .1em; transition: all .3s var(--ease); }
.sizes button:hover { border-color: var(--ink); }
.sizes button[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn { display: inline-flex; justify-content: center; align-items: center; width: 100%; height: 56px;
  background: var(--ink); color: var(--bone); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  transition: opacity .3s var(--ease); }
.btn:hover { opacity: .85; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.acc { border-top: 1px solid var(--hair); margin-top: 30px; }
.acc details { border-bottom: 1px solid var(--hair); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 18px 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 16px; line-height: 1; font-weight: 300; }
.acc details[open] summary::after { content: "–"; }
.acc details p { margin: 0 0 20px; color: #444; max-width: 48ch; line-height: 1.8; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product .info { position: static; } }

/* Bag drawer */
.drawer-veil { position: fixed; inset: 0; background: rgba(17,17,16,.35); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--ivory); color: var(--ink); z-index: 71;
  transform: translateX(100%); transition: transform .6s var(--ease); display: flex; flex-direction: column; padding: 28px var(--gutter); }
body.bag-open .drawer { transform: none; }
body.bag-open .drawer-veil { opacity: 1; pointer-events: auto; }
.drawer .head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.drawer .lines { flex: 1; overflow: auto; padding: 10px 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.line .thumb { aspect-ratio: 4/5; background: #e6e1d7; overflow: hidden; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .name { font-size: 12.5px; letter-spacing: .03em; line-height: 1.4; }
.line .sub { font-size: 11px; color: var(--stone); letter-spacing: .08em; margin-top: 4px; }
.line .rm { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-top: 10px; }
.line .amt { font-size: 12px; letter-spacing: .1em; }
.drawer .foot { padding-top: 18px; border-top: 1px solid var(--hair); }
.drawer .total { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.drawer .empty { padding: 60px 0; text-align: center; color: var(--stone); font-family: var(--font-display); font-size: 22px; }

/* Forms */
.form { max-width: 560px; }
.field { display: grid; gap: 6px; margin-bottom: 22px; }
.field label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.field input, .field select, .field textarea { font: inherit; letter-spacing: .04em; background: transparent; border: 0; border-bottom: 1px solid var(--hair); padding: 10px 0; outline: 0; border-radius: 0; color: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { min-height: 100px; resize: vertical; }
.note { color: var(--stone); font-size: 12px; margin-top: 18px; max-width: 46ch; line-height: 1.7; }

/* Prose */
.prose { max-width: 62ch; }
.prose p { font-size: 15px; line-height: 1.85; margin: 0 0 1.4em; }
.prose h2 { font-size: 34px; margin: 48px 0 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); padding: clamp(60px, 10vh, 120px) var(--gutter); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col .frame { aspect-ratio: 4/5; overflow: hidden; background: #e6e1d7; position: sticky; top: 100px; }
.two-col .frame img { width: 100%; height: 100%; object-fit: cover; }

/* Newsletter band */
.band { padding: clamp(70px, 12vh, 140px) var(--gutter); text-align: center; border-top: 1px solid var(--hair); }
.band h2 { font-size: clamp(34px, 4.6vw, 64px); margin: 14px 0 26px; }
.band form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; border-bottom: 1px solid var(--ink); }
.band input { flex: 1; font: inherit; background: transparent; border: 0; padding: 12px 0; outline: 0; letter-spacing: .04em; color: inherit; }
.band button { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 0 0 0 20px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--bone); padding: clamp(60px, 10vh, 120px) var(--gutter) 40px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 60px; }
.site-footer .cols h4 { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; color: rgba(239,234,225,.55); font-weight: 400; }
.site-footer .cols a { display: block; padding: 5px 0; font-size: 13px; opacity: .9; }
.site-footer .cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .sigline { display: flex; justify-content: space-between; align-items: end; border-top: 1px solid rgba(239,234,225,.14); padding-top: 40px; gap: 20px; flex-wrap: wrap; }
.site-footer .fine { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(239,234,225,.5); line-height: 2; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bone); padding: 14px 22px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: all .5s var(--ease); z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
