@font-face {
  font-family: Outfit;
  src: url("assets/Outfit.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nagi;
  src: url("assets/nagi.woff") format("woff"), url("assets/nagi.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.nagi { font-family: Nagi, Outfit, serif; font-style: normal; letter-spacing: 0.12em; }

:root {
  --cream: #f4efe6;
  --cream-2: #e8e1d4;
  --brown: #3a302a;
  --ink: #2c2622;
  --muted: color-mix(in srgb, var(--brown) 52%, var(--cream));
  --line: color-mix(in srgb, var(--brown) 14%, transparent);
  --pad: clamp(1.25rem, 4.2vw, 3.75rem);
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Outfit, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--brown);
  min-height: 100%;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
:focus-visible { outline: 1px solid var(--brown); outline-offset: 3px; }
.text-pretty { text-wrap: pretty; }

.sunline { display: block; fill: currentColor; }

/* ——— HEADER ——— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid transparent;
}
.top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 var(--pad);
  gap: 1rem;
}
.top nav {
  display: flex;
  gap: clamp(1.1rem, 2.4vw, 2.1rem);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.top nav a { padding: 0.55rem 0; }
.top nav a[aria-current="page"] { opacity: 0.45; }
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  color: var(--brown);
}
.lockup .sunline { width: 54px; height: auto; }
.lockup .word {
  font-size: 0.58rem;
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  font-weight: 400;
}
.tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.85rem;
}
.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--brown);
}
.icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.burger { display: none; }
.cart-count {
  position: absolute;
  margin: -18px 0 0 10px;
  font-size: 0.55rem;
  letter-spacing: 0;
  min-width: 14px;
}

/* ——— HERO ——— */
.hero {
  position: relative;
  min-height: min(72vh, 760px);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -1;
}
.hero {
  min-height: min(82vh, 860px);
}
.hero-copy {
  padding: 5rem var(--pad);
  max-width: 28rem;
}
.hero .sub {
  font-size: 0.95rem;
  letter-spacing: 0.035em;
  line-height: 1.55;
  max-width: 32ch;
  opacity: 0.9;
  margin: -0.35rem 0 2rem;
  text-wrap: pretty;
}
.hero h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  margin-bottom: 1.05rem;
}
.hero .line {
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 2.1rem;
}
.ghost {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 0.82rem 1.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}
.ghost:hover { background: color-mix(in srgb, var(--cream) 12%, transparent); }
.rail {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  max-width: 9.5rem;
}
.rail .stem {
  width: 1px;
  height: 7.5rem;
  background: color-mix(in srgb, var(--cream) 55%, transparent);
}

.essay {
  padding: clamp(4.2rem, 9vh, 7.2rem) var(--pad);
}
.essay .inner {
  max-width: 920px;
  margin: 0 auto;
}
.essay h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.2;
  max-width: 18ch;
  margin-bottom: 1.6rem;
  text-wrap: pretty;
}
.essay p {
  max-width: 42ch;
  line-height: 1.65;
  letter-spacing: 0.02em;
  margin-bottom: 1.15rem;
  text-wrap: pretty;
}
.essay p:last-of-type { margin-bottom: 0; }
.essay .quiet {
  display: block;
  margin-top: 2.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.55;
}
.essay.ink {
  background: #3a302a;
  color: #f4efe6;
}
.essay .kicker { margin-bottom: 1rem; opacity: 0.55; }
.essay .cta-row { margin-top: 1.8rem; }
.essay .ghost { color: inherit; }

.close {
  background: var(--cream);
  color: var(--brown);
  min-height: auto;
  padding: 4.5rem var(--pad) 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
}
.close img { display: none; }
.close h2 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
}
.close .word {
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}
.close p {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  opacity: 0.82;
}

/* ——— PRODUCTS ——— */
.arrivals {
  padding: 3.4rem var(--pad) 4.2rem;
}
.arrivals-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.6rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.arrivals-head h2,
.kicker {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 400;
}
.arrivals-head a {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.55;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  max-width: var(--max);
  margin: 0 auto;
}
.card .swatch {
  aspect-ratio: 1;
  background: var(--cream-2);
  margin-bottom: 0.85rem;
}
.card .name {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.card .meta {
  margin-top: 0.22rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.card:hover .swatch { filter: brightness(0.96); }

/* ——— SPLIT ——— */
.split {
  display: grid;
  grid-template-columns: 1fr;
}
.split .brand-panel {
  background: var(--brown);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem var(--pad);
  gap: 1.5rem;
  min-height: min(38vh, 380px);
}
.split .photo { display: none; }
.split .brand-panel .sunline { width: 92px; }
.split .brand-panel .word {
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  margin-top: -0.4rem;
}
.split .brand-panel p {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.85;
  opacity: 0.78;
  max-width: 28ch;
}
.split .photo { min-height: 280px; }
.split .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— FOOTER ——— */
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.55rem var(--pad) 1.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 1.35rem; }
.foot-right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.mail {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--brown);
  min-width: min(240px, 42vw);
  padding-bottom: 0.25rem;
  gap: 0.6rem;
}
.mail input {
  flex: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.6rem;
  padding: 0.35rem 0;
  min-width: 0;
}
.mail input::placeholder { color: var(--muted); letter-spacing: 0.22em; }
.mail button { letter-spacing: 0.2em; padding: 0.2rem; }
.social { display: flex; gap: 0.7rem; }
.social a { width: 32px; height: 32px; display: grid; place-items: center; opacity: 0.7; }
.social svg { width: 15px; height: 15px; fill: currentColor; }

/* ——— INNER PAGES ——— */
.page {
  padding: 3.2rem var(--pad) 5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.page h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0.4rem 0 1.6rem;
}
.lede {
  font-size: clamp(1.7rem, 4.2vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.18;
  max-width: 14ch;
  margin-bottom: 3rem;
}
.pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem 4rem;
}
.pairs span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.pairs p, .prose p {
  line-height: 1.7;
  max-width: 38ch;
  letter-spacing: 0.03em;
}
.prose { display: grid; gap: 2.2rem; max-width: 42rem; }
.prose h2 {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 0.55rem;
}

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - 72px);
}
.product .stage {
  background: var(--brown);
  color: var(--cream);
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: var(--pad);
}
.product .stage .sunline { width: min(220px, 56vw); }
.product .info {
  padding: clamp(2rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.05rem;
}
.product .info h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0;
}
.product ul { list-style: none; line-height: 1.9; letter-spacing: 0.04em; }
.solid {
  align-self: flex-start;
  margin-top: 0.6rem;
  background: var(--brown);
  color: var(--cream);
  padding: 0.95rem 1.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.solid:hover { opacity: 0.82; }
.note { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; max-width: 36ch; }

/* ——— OVERLAYS ——— */
.scrim {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--brown) 28%, transparent);
  z-index: 50;
  display: none;
}
.scrim.on { display: block; }
.drawer, .search {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 100%);
  background: var(--cream);
  z-index: 60;
  padding: 1.4rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.search { left: 0; right: auto; transform: translateX(-100%); }
.drawer.on, .search.on { transform: none; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.empty { color: var(--muted); line-height: 1.6; max-width: 28ch; }
.search input {
  border-bottom: 1px solid var(--brown);
  padding: 0.7rem 0;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--brown);
  color: var(--cream);
  padding: 0.7rem 1.1rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 70;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.toast.on { transform: translateX(-50%) translateY(0); }

@media (hover: hover) {
  a:hover { opacity: 0.55; }
  .ghost:hover, .solid:hover, .icon:hover { opacity: 1; }
}

.left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split, .product, .pairs { grid-template-columns: 1fr; }
  .rail { display: none; }
  .hero {
    min-height: 72svh;
    align-items: flex-end;
  }
  .hero-copy {
    padding: 0 var(--pad) 2.6rem;
    max-width: 100%;
  }
  .hero .sub { max-width: 28ch; }
  .essay {
    padding: 3.4rem var(--pad) 3.6rem;
  }
  .essay h2 {
    max-width: none;
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 1.35rem;
  }
  .essay p {
    max-width: none;
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }
  .essay .quiet { margin-top: 2rem; }
  .split .photo { display: none; }
  .burger { display: grid; }
  .top nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 72px;
    background: var(--cream);
    flex-direction: column;
    padding: 0.4rem var(--pad) 1.1rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }
  .top nav.open { display: flex; }
  .foot { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .search, .toast { transition: none; }
}
