/* ============================================================
   D3A — site styles
   FONT: Neue Haas Grotesk Text Pro, served by Adobe Fonts
   (web project "D3A", loaded in each page's <head>).
   Helvetica is the fallback if Adobe Fonts doesn't load.
   ============================================================ */

:root {
  --font-sans: "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --black: #000;
  --white: #fff;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.25);
  --muted: rgba(0, 0, 0, 0.7);
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--white); }
.site-header.is-overlay { position: absolute; inset: 0 0 auto 0; background: transparent; }

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem var(--gutter);
}
.site-nav .left { display: flex; align-items: center; gap: 1.25rem; }
.site-nav .right { display: flex; justify-content: flex-end; }

.brand-link { display: block; margin-inline: auto; }
.brand-logo {
  width: 4rem; height: 4rem; object-fit: contain;
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand-link:hover .brand-logo { transform: scale(1.035); }

.nav-link, .eyebrow {
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-link { position: relative; z-index: 1; padding-block: 0.75rem; }

.nav-link::after, .footer-link::after {
  position: absolute; right: 0; bottom: 0.5rem; left: 0;
  height: 1px; background: currentColor; content: "";
  transform: scaleX(0); transform-origin: right;
  transition: transform 300ms ease;
}
.footer-link::after { bottom: 0; }
.nav-link:hover::after, .nav-link:focus-visible::after,
.footer-link:hover::after, .footer-link:focus-visible::after {
  transform: scaleX(1); transform-origin: left;
}

/* ---------- Home hero ---------- */
.hero { position: relative; height: 76svh; min-height: 34rem; overflow: hidden; }
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 12% bottom;
}
.hero::after {
  position: absolute; inset: 0; content: ""; pointer-events: none;
  background: linear-gradient(to bottom, rgb(255 255 255 / 16%), transparent 22%);
}

/* ---------- Two-column pages (About, Shop) ---------- */
.split { display: grid; background: var(--white); }

.about-image-wrap { position: relative; min-height: 30rem; overflow: hidden; }
.about-image-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 30% center;
}
.about-text { display: flex; align-items: center; padding: 4rem 1.5rem; }
.about-text > div { width: 100%; max-width: 42rem; }
.about-heading {
  font-size: clamp(1.25rem, 1.35vw, 1.5rem);
  font-weight: 400; letter-spacing: -0.025em; line-height: 1.15;
}
.about-copy {
  margin-top: 2rem; max-width: 38rem;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  font-weight: 400; letter-spacing: -0.015em; line-height: 1.55;
  text-wrap: pretty;
}

.inline-brand-logo {
  display: inline-block; width: 1.15em; height: 1.15em;
  margin-inline: 0.06em; object-fit: contain; vertical-align: -0.24em;
}

.product-gallery img { width: 100%; height: auto; }
.product-info { padding: 3rem 1.5rem; }
.product-panel { margin-inline: auto; max-width: 36rem; }
.product-title {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 1rem; font-weight: 400; line-height: 1.5;
}
.product-price { margin-top: 1rem; font-size: 0.875rem; }
.swatch-row { margin-top: 2.5rem; display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; }
.swatch {
  display: block; width: 1.25rem; height: 1.25rem; background: var(--black);
  outline: 1px solid var(--black); outline-offset: 2px;
}
.buy-button {
  display: block; width: 100%; margin-top: 3rem;
  border: 1px solid var(--black); background: var(--white); color: var(--black);
  padding: 0.95rem 1.25rem; font-size: 0.875rem; text-align: center;
  transition: background-color 220ms ease, color 220ms ease;
}
.buy-button:hover, .buy-button:focus-visible { background: var(--black); color: var(--white); }
.product-desc { margin-top: 3rem; font-size: 0.875rem; line-height: 1.5rem; }

.disclosure { margin-top: 1.75rem; }
.disclosure summary {
  display: block; cursor: pointer; list-style: none;
  padding: 1.25rem 0; font-size: 0.875rem;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary span { position: relative; padding-bottom: 0.3rem; }
.disclosure summary span::after {
  position: absolute; right: 0; bottom: 0; left: 0;
  height: 1px; background: currentColor; content: "";
  transform: scaleX(0); transform-origin: right;
  transition: transform 300ms ease;
}
.disclosure summary:hover span::after,
.disclosure summary:focus-visible span::after {
  transform: scaleX(1); transform-origin: left;
}
.disclosure summary:focus-visible { outline: none; }
.disclosure p { max-width: 32rem; padding-bottom: 1.5rem; font-size: 0.875rem; line-height: 1.5rem; color: var(--muted); }

.text-link { border-bottom: 1px solid currentColor; padding-bottom: 0.05em; }

/* ---------- Text pages (Contact, Shipping, Legal) ---------- */
.text-page { padding: 5rem 1.5rem; }
.text-page .inner { margin-inline: auto; max-width: 96rem; }
.text-page .measure { max-width: 64rem; }
.page-title { font-size: 1rem; font-weight: 400; letter-spacing: -0.01em; }
.page-body { margin-top: 3.5rem; font-size: 0.8125rem; line-height: 1.5rem; }

/* ---------- Contact form ---------- */
.contact-form { margin-top: 3rem; max-width: 64rem; }
.field + .field { margin-top: 2.5rem; }
.field label { display: block; font-size: 0.8125rem; }
.field input, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong);
  background: transparent; border-radius: 0; padding: 0.75rem 0.25rem;
  font: inherit; font-size: 1rem; /* 16px stops iPhone zoom-on-focus */
  outline: none; transition: border-color 150ms ease; -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea {
  width: 100%; min-height: 12rem; margin-top: 0.75rem; resize: vertical;
  border: 1px solid var(--line-strong); border-radius: 0; background: transparent;
  padding: 0.75rem; font: inherit; font-size: 1rem; outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(0, 0, 0, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); }
.submit-button {
  display: block; width: 100%; max-width: 42rem; margin-top: 3rem;
  border: 0; background: var(--black); color: var(--white);
  padding: 1rem 1.5rem; font-size: 0.8125rem; transition: background-color 150ms ease;
}
.submit-button:hover, .submit-button:focus-visible { background: rgba(0, 0, 0, 0.8); }
.form-status { margin-top: 1.25rem; font-size: 0.75rem; color: rgba(0, 0, 0, 0.6); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { margin-inline: auto; max-width: 96rem; padding: 3.5rem 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.footer-link { position: relative; padding-bottom: 0.3rem; font-size: 0.875rem; line-height: 1.35; }
.newsletter-label { font-size: 0.875rem; }
.newsletter-form { margin-top: 1rem; display: flex; border-bottom: 1px solid var(--line-strong); }
.newsletter-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.75rem 0;
  font: inherit; font-size: 1rem; outline: none; border-radius: 0;
}
.newsletter-form input::placeholder { color: rgba(0, 0, 0, 0.45); }
.newsletter-form button { border: 0; background: none; padding: 0 0.75rem; font-size: 1.25rem; font-weight: 300; }
.newsletter-thanks { margin-top: 1.5rem; border-top: 1px solid var(--line-strong); padding-top: 1rem; font-size: 0.75rem; }
.copyright {
  margin-top: 3.5rem; display: flex; align-items: center; justify-content: center;
  gap: 0.375rem; font-size: 0.875rem;
}
.copyright img { width: 1rem; height: 1rem; object-fit: contain; }

/* ---------- Tablet (640px+) ---------- */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .site-nav { padding-block: 2rem; }
  .site-nav .left { gap: 2.5rem; }
  .brand-logo { width: 5rem; height: 5rem; }
  .nav-link { font-size: 0.68rem; letter-spacing: 0.2em; padding-block: 0.5rem; }
  .nav-link::after { bottom: 0.25rem; }
  .hero { height: 100vh; height: 100svh; min-height: 40rem; }
  .hero img { object-position: center bottom; }
  .about-text { padding: 6rem 3rem; }
  .about-copy { margin-top: 2.5rem; }
  .product-info { padding: 4rem 3rem; }
  .text-page { padding: 7rem 2.5rem; }
  .page-title { font-size: 1.125rem; }
  .page-body { font-size: 0.875rem; line-height: 1.75rem; }
  .footer-inner { padding: 4rem 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .copyright { margin-top: 4rem; }
}

/* ---------- Desktop (1024px+) ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 3rem; }
  .split { grid-template-columns: 1fr 1fr; }
  .about-image-wrap { min-height: 0; aspect-ratio: 4 / 3; }
  .about-image-wrap img { object-position: 8% center; }
  .about-text { padding: 4rem; }
  .product-info { padding: 5rem 4rem; }
  .product-panel { position: sticky; top: 2.5rem; }
  .text-page { padding: 9rem 3.5rem; }
  .footer-inner { padding: 4.5rem 3.5rem; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; }
}

@media (min-width: 1280px) {
  .about-text { padding-inline: 6rem; }
  .product-info { padding-inline: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
