/* Noa Angervall — tokens (from the design system's tokens.json) */
:root, [data-theme="light"] {
  --surface: #f4f2ee;
  --surface-raised: #ebe8e2;
  --ink: #161616;
  --ink-muted: #5e5b56;
  --on-ink: #f4f2ee;
  --line: #cfcac2;
  --line-strong: #827d77;
  --silver: #a9acb0;
  --oxide: #3a3f44;
  --focus: #161616;
}
[data-theme="dark"] {
  --surface: #111111;
  --surface-raised: #1b1b1b;
  --ink: #eeebe6;
  --ink-muted: #a19d97;
  --on-ink: #111111;
  --line: #2e2e2e;
  --line-strong: #6a6661;
  --silver: #c4c7cb;
  --oxide: #5c636a;
  --focus: #eeebe6;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius-none: 0px;
  --radius-hair: 2px;
  --radius-round: 999px;
  --width-text: 36rem;
  --width-page: 1200px;
  --header-height: 56px;
  --font-serif: Fraunces, Georgia, "Times New Roman", serif;
  --font-sans: Jost, "Futura PT", Futura, "Helvetica Neue", Arial, sans-serif;
}


/* Noa Angervall — component styles. Prefix: na-. Values come from tokens (var(--…)). */

.na-root, .na-root * { box-sizing: border-box; }
.na-root { background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }

.na-label { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.na-wordmark { font-family: var(--font-serif); font-size: 16px; line-height: 20px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; }
.na-muted { color: var(--ink-muted); }

/* Focus */
.na-root a:focus-visible, .na-root button:focus-visible, .na-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-hair); }

/* Button */
.na-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-4) var(--space-6); border: 1px solid var(--ink); border-radius: var(--radius-none); background: var(--ink); color: var(--on-ink); font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.na-btn:hover { background: transparent; color: var(--ink); }
.na-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.na-btn--secondary:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Text link with arrow */
.na-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.na-link:hover { border-bottom-color: var(--ink); }

/* Header */
.na-header { position: sticky; top: 0; z-index: 10; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-4); background: var(--surface); border-bottom: 1px solid var(--line); }
.na-header a.na-label { color: var(--ink); text-decoration: none; padding: var(--space-3) 0; }
.na-header a.na-label:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.na-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; background: var(--surface-raised); overflow: hidden; }
.na-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.na-hero__text { position: relative; padding: var(--space-12) var(--space-4) var(--space-8); max-width: 40rem; }
.na-hero__eyebrow { color: var(--ink-muted); margin: 0 0 var(--space-3); }
.na-hero__title { font-family: var(--font-serif); font-weight: 300; font-size: 44px; line-height: 48px; letter-spacing: -.015em; margin: 0; }
.na-hero--onphoto { color: #f4f2ee; }
.na-hero--onphoto .na-hero__eyebrow { color: #e3dfd8; }
.na-hero--onphoto::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to top, rgba(17,17,17,.55), rgba(17,17,17,0)); pointer-events: none; }
.na-hero--onphoto .na-hero__text { z-index: 1; }

/* Placeholder photo */
.na-ph { display: flex; align-items: flex-end; justify-content: flex-start; padding: var(--space-3); background: var(--surface-raised); color: var(--ink-muted); width: 100%; height: 100%; }

/* Product card */
.na-card { display: flex; flex-direction: column; gap: var(--space-3); }
.na-card__media { position: relative; }
.na-card__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; background: var(--surface-raised); }
.na-card__track::-webkit-scrollbar { display: none; }
.na-card__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; }
.na-card__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.na-card__dots { position: absolute; left: 0; right: 0; bottom: var(--space-3); display: flex; justify-content: center; gap: var(--space-1); }
.na-card__dot { width: 6px; height: 6px; border-radius: var(--radius-round); background: var(--silver); border: 0; padding: 0; }
.na-card__dot[aria-current="true"] { background: var(--ink); }
.na-card__body { display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-4); row-gap: var(--space-1); }
.na-card__name { font-family: var(--font-serif); font-weight: 400; font-size: 21px; line-height: 26px; margin: 0; }
.na-card__meta { grid-column: 1; font-size: 14px; line-height: 22px; color: var(--ink-muted); margin: 0; }
.na-card__price { grid-column: 1; font-size: 14px; line-height: 22px; margin: 0; }
.na-card__cta { grid-column: 2; grid-row: 1 / span 3; align-self: center; }

/* Footer */
.na-footer { background: var(--oxide); color: var(--surface); padding: var(--space-16) var(--space-4) var(--space-8); }
.na-footer .na-wordmark { color: inherit; }
.na-footer a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.na-footer__list { list-style: none; margin: var(--space-8) 0; padding: 0; display: grid; gap: var(--space-3); font-size: 14px; line-height: 22px; }
.na-footer__small { font-size: 14px; line-height: 22px; opacity: .85; margin: 0; }
[data-theme="dark"] .na-footer, .na-footer[data-theme="dark"] { color: var(--ink); }

@media (min-width: 600px) {
  .na-header, .na-hero__text, .na-footer { padding-left: var(--space-6); padding-right: var(--space-6); }
}
@media (min-width: 900px) {
  .na-hero__title { font-size: 64px; line-height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .na-card__track { scroll-behavior: auto; }
  .na-btn { transition: none; }
}

/* ---------- Page ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img { max-width: 100%; }
.na-section { padding: var(--space-16) var(--space-4); border-top: 1px solid var(--line); }
.na-wrap { max-width: var(--width-page); margin: 0 auto; }
.na-title { font-family: var(--font-serif); font-weight: 300; font-size: 32px; line-height: 38px; margin: 0 0 var(--space-12); }
.na-intro { font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 30px; max-width: var(--width-text); margin: 0 0 var(--space-4); }
.na-copy { max-width: var(--width-text); margin: 0 0 var(--space-4); }
.na-grid { display: grid; gap: var(--space-12) var(--space-6); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.na-bespoke { background: var(--surface-raised); }
.na-bespoke .na-btn { margin-top: var(--space-4); }
.na-eyebrow { color: var(--ink-muted); margin: 0 0 var(--space-3); }

/* Photo slots: label shows until the image loads; a missing image removes itself */
.na-slot { position: relative; background: var(--surface-raised); }
.na-slot::before { content: attr(data-label); position: absolute; left: var(--space-3); bottom: var(--space-3); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.na-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.na-card__dots { bottom: var(--space-3); }
.na-hero::before { left: auto; right: var(--space-4); bottom: auto; top: var(--space-4); }

@media (min-width: 600px) {
  .na-section { padding-left: var(--space-6); padding-right: var(--space-6); }
  .na-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .na-section { padding-top: var(--space-24); padding-bottom: var(--space-24); }
  .na-grid { grid-template-columns: repeat(3, 1fr); }
  .na-title { font-size: 40px; line-height: 46px; }
}

/* Alignment fixes */
.na-hero__text { width: 100%; max-width: calc(var(--width-page) + 2 * var(--space-6)); margin: 0 auto; }
.na-hero__title { max-width: 40rem; }
.na-footer a.na-wordmark { border-bottom: 0; }

/* Brand lockup: mark + wordmark */
.na-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.na-brand img { height: 24px; width: auto; display: block; }
.na-footer a.na-brand { border-bottom: 0; }

/* Hero on dark: picture wrapper */
.na-hero__media { position: absolute; inset: 0; }
.na-hero__img { object-position: center 35%; }
/* Bespoke figure */
.na-bespoke__fig { margin: 0 0 var(--space-8); max-width: 34rem; }
.na-bespoke__fig img { display: block; width: 100%; height: auto; }
.na-bespoke__fig figcaption { font-size: 14px; line-height: 22px; margin-top: var(--space-2); }

[data-theme="dark"] .na-footer { background: var(--surface-raised); border-top: 1px solid var(--line); }

/* Product photo paging */
.na-card__track { background: var(--surface); }
.na-card__slide img { -webkit-user-drag: none; user-select: none; }
.na-card__dots { gap: 0; }
.na-card__dot { position: relative; width: 24px; height: 24px; background: transparent; border-radius: 0; cursor: pointer; }
.na-card__dot::before { content: ""; position: absolute; left: 9px; top: 9px; width: 6px; height: 6px; border-radius: var(--radius-round); background: var(--line-strong); transition: background-color .15s; }
.na-card__dot[aria-current="true"] { background: transparent; }
.na-card__dot[aria-current="true"]::before { background: var(--ink); }
.na-card__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: none; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-none); background: transparent; color: #f4f2ee; text-shadow: 0 0 6px rgba(0,0,0,.6); font: 400 22px/1 var(--font-sans); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, background-color .15s; }
.na-card__arrow--prev { left: var(--space-3); }
.na-card__arrow--next { right: var(--space-3); }
.na-card__arrow:hover { background: rgba(0,0,0,.45); }
.na-card__arrow.is-off { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
/* Desktop (mouse/trackpad): page with arrows and dots instead of swiping */
@media (hover: hover) and (pointer: fine) {
  .na-card__track { overflow: hidden; scroll-snap-type: none; }
  .na-card__arrow { display: inline-flex; }
  .na-card__media:hover .na-card__arrow, .na-card__arrow:focus-visible { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) { .na-card__arrow, .na-card__dot::before { transition: none; } }

/* Optical alignment: the mark's pointed base makes it look low beside the wordmark */
.na-brand svg, .na-brand img { position: relative; top: -3px; }

/* Fraunces: soft, slightly wonky forms everywhere the serif is used (ignored by Jost) */
.na-root { font-variation-settings: "SOFT" 100, "WONK" 1; }

/* Hero: desktop extras hidden on phones */
.na-hero__lede, .na-hero__cta { display: none; }
/* Hero, desktop: split layout. Text left on the dark ground, the same photo right, bleeding to the edge. */
@media (min-width: 900px) {
  .na-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: min(78vh, 760px); background: var(--surface); }
  .na-hero::before { display: none; }
  .na-hero__media { position: relative; inset: auto; grid-column: 2; grid-row: 1; min-height: 560px; }
  .na-hero--onphoto::after { display: none; }
  .na-hero--onphoto { color: var(--ink); }
  .na-hero--onphoto .na-hero__eyebrow { color: var(--ink-muted); }
  .na-hero__text { grid-column: 1; grid-row: 1; align-self: center; margin: 0; max-width: none; width: auto; padding: var(--space-16) var(--space-12) var(--space-16) max(var(--space-6), calc((100vw - var(--width-page)) / 2)); }
  .na-hero__lede { display: block; font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 30px; color: var(--ink-muted); margin: var(--space-4) 0 var(--space-8); max-width: 26rem; }
  .na-hero__cta { display: inline-flex; }
}
/* Four pieces: 2 columns on tablets and small laptops, 4 from 1100px */
@media (min-width: 900px) { .na-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .na-grid { grid-template-columns: repeat(4, 1fr); } }

/* Hero, desktop: fully black behind the text, matching the photo's dark background */
@media (min-width: 900px) { .na-hero { background: #000; } }

/* Footer: same colour as the header (dark theme) */
[data-theme="dark"] .na-footer { background: var(--surface); }
