:root {
  --page: #FFFFFF;
  --tile: #F9F9F9;      /* matches the product photo backdrop */
  --stone: #F3F2EF;
  --ink: #1C1B19;
  --muted: #6E6B66;
  --line: #E8E6E1;
  --heart: #B3262D;
  --forest: #1E3D31;
  --forest-ink: #E9EFEA;

  --serif: "Young Serif", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --arabic: "Aref Ruqaa", serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand span { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav .nav-shop { color: var(--ink); border: 1px solid var(--ink); padding: 7px 16px; border-radius: 4px; }
.nav .nav-shop:hover { background: var(--ink); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 4px;
  font: 500 0.98rem/1 var(--sans); text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3A3835; }
.btn-quiet { color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-light { background: var(--forest-ink); color: var(--forest); }
.btn-light:hover { background: #fff; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(64px, 9vw, 128px);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04; letter-spacing: -0.02em;
  max-width: 11ch;
}
.lede { margin-top: 28px; max-width: 40ch; font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 593 / 640; object-fit: cover; }

/* One quiet load-in, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-photo { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-photo { animation-delay: 0.12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}

/* Sections */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); max-width: 46ch; }
.section-head a { color: var(--ink); text-underline-offset: 3px; }

/* Caps grid: 3 across, then 2 across — mirrors the lineup */
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.cap { grid-column: span 2; }
.cap:nth-child(n + 4) { grid-column: span 3; }
.cap-img { background: var(--tile); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.cap:nth-child(n + 4) .cap-img { aspect-ratio: 3 / 2; }
.cap-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.cap:hover .cap-img img { transform: scale(1.03); }
.cap-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 16px; }
.cap-meta h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.cap-meta p { color: var(--muted); font-size: 0.94rem; }
.swatches { display: flex; gap: 6px; padding-top: 4px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.caps-note { margin-top: 48px; color: var(--muted); }
.caps-note a { color: var(--ink); text-underline-offset: 3px; }

/* Story */
.story { background: var(--stone); padding: clamp(72px, 10vw, 136px) 0; }
.story-inner { display: grid; grid-template-columns: auto 1fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.story-word { font-family: var(--arabic); font-weight: 700; color: var(--heart); font-size: clamp(5rem, 11vw, 9rem); line-height: 1; justify-self: start; }
.story-copy h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 16ch; margin-bottom: 24px; }
.story-copy p { max-width: 44ch; color: #45423E; }
.story-copy p + p { margin-top: 16px; }
.story-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }

/* Beyond the cap */
.beyond { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.tile-light img { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.tile figcaption { padding-top: 16px; }
.tile h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.tile p { color: var(--muted); font-size: 0.94rem; }

/* Lookbook */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--tile); }

/* Footer */
.site-footer { background: var(--forest); color: var(--forest-ink); padding-top: clamp(64px, 8vw, 104px); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 64px; }
.footer-lead { display: flex; align-items: center; gap: 20px; }
.footer-lead img { width: 64px; height: 64px; border-radius: 50%; }
.footer-lead p { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.footer-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-link { color: var(--forest-ink); text-underline-offset: 4px; }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(233, 239, 234, 0.16);
  padding-top: 24px; padding-bottom: 32px;
  font-size: 0.88rem; color: rgba(233, 239, 234, 0.66);
}

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 520px; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .cap, .cap:nth-child(n + 4) { grid-column: span 1; }
  .cap:nth-child(n + 4) .cap-img { aspect-ratio: 1 / 1; }
  .cap:last-child { grid-column: span 2; }
  .cap:last-child .cap-img { aspect-ratio: 2 / 1; }
  .story-inner { grid-template-columns: 1fr; }
  .story-photo { max-width: 420px; }
  .beyond { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav { gap: 18px; }
  .nav a:not(.nav-shop) { display: none; }
  .caps { grid-template-columns: 1fr; }
  .cap, .cap:last-child { grid-column: span 1; }
  .cap .cap-img, .cap:nth-child(n + 4) .cap-img, .cap:last-child .cap-img { aspect-ratio: 1 / 1; }
  .section-head { margin-bottom: 32px; }
  .actions .btn { flex: 1 1 100%; }
}
