/* =========================================================================
   ALL SATURDAYS — style.css
   Palette and type are drawn from the brand book:
   Natural paper ground, ink + navy, olive as the working accent,
   salmon reserved for the smallest moments.
   ========================================================================= */

:root {
  --paper:      #F6F2E9;
  --paper-deep: #EFE9DC;
  --card:       #FBF8F1;
  --ink:        #16181D;
  --ink-soft:   #4A4C52;
  --navy:       #1B2A41;
  --olive:      #75806B;
  --olive-deep: #5E6956;
  --stone:      #A79F94;
  --salmon:     #DD8F76;
  --ash:        #B7C9D4;
  --hairline:   rgba(22, 24, 29, 0.16);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- type utilities ---------- */

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--olive-deep);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.quote-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img { width: 46px; height: auto; }

.brand-word {
  font-weight: 700;
  letter-spacing: 0.26em;
  font-size: 0.82rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--olive);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--pad) 1.4rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* photo hero variant (home page) */
.hero-photo { color: #F7F4EC; }
.hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-photo .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-photo .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(27,42,65,0.62), rgba(22,24,29,0.48) 55%, rgba(22,24,29,0.72)),
    radial-gradient(120% 80% at 50% 100%, rgba(22,24,29,0.35), transparent 60%);
}
.hero-photo .eyebrow { color: var(--ash); }
.hero-photo p.lede { color: rgba(247,244,236,0.85); }
.hero-photo .btn-solid { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero-photo .btn-solid:hover { background: var(--salmon); border-color: var(--salmon); }
.hero-photo .btn-ghost { border-color: rgba(247,244,236,0.7); color: var(--paper); }
.hero-photo .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.hero-photo .sling path { stroke: var(--salmon); }

.hero .eyebrow { display: block; margin-bottom: 1.4rem; }

.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  max-width: 18ch;
  margin-inline: auto;
  text-wrap: balance;
}

.hero .underline-word { position: relative; white-space: nowrap; }

/* the signature: a hammock-sling stroke drawn under the key phrase */
.sling {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.34em;
  height: 0.5em;
  width: 104%;
  overflow: visible;
}
.sling path {
  fill: none;
  stroke: var(--olive);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw 1.1s ease-out 0.5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sling path { stroke-dashoffset: 0; animation: none; }
}
@media (max-width: 420px) {
  .hero .underline-word { white-space: normal; }
  .sling { display: none; }
}

.hero p.lede {
  max-width: 46ch;
  margin: 1.8rem auto 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font: 600 0.8rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--navy); border-color: var(--navy); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-olive { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--paper); }
.btn-olive:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-deep { background: var(--paper-deep); }

.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head .eyebrow { display: block; margin-bottom: 0.8rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { margin-top: 0.9rem; color: var(--ink-soft); }

.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ---------- product grid ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.filter-btn {
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.6rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(22, 24, 29, 0.35);
}

.product-media {
  aspect-ratio: 4 / 3.4;
  position: relative;
  background: var(--paper-deep);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }

.product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.product-placeholder img { width: 34%; height: auto; opacity: 0.9; }

.product-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

.product-series {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--olive-deep);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.product-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.45rem;
  font-size: 1rem;
}

.swatch-row { display: flex; gap: 0.45rem; margin-top: 1rem; flex-wrap: wrap; }
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(22,24,29,0.22);
  display: inline-block;
}

.product-actions { margin-top: auto; padding-top: 1.3rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.product-actions .btn { padding: 0.7rem 1.2rem; font-size: 0.72rem; }

/* ---------- product detail dialog ---------- */

dialog.product-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: min(880px, 92vw);
  width: 100%;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(22,24,29,0.5);
}
dialog.product-dialog::backdrop { background: rgba(22,24,29,0.55); backdrop-filter: blur(3px); }

.dialog-grid { display: grid; grid-template-columns: 1fr 1.15fr; }
@media (max-width: 720px) { .dialog-grid { grid-template-columns: 1fr; } }

.dialog-media { background: var(--paper-deep); min-height: 280px; position: relative; }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.dialog-body { padding: clamp(1.5rem, 3.5vw, 2.4rem); }

.dialog-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.spec-table { margin-top: 1.4rem; border-top: 1px solid var(--hairline); }
.spec-table div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem;
}
.spec-table dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  padding-top: 0.15rem;
}
.spec-table dd { color: var(--ink-soft); }

.dialog-colors { margin-top: 1.2rem; }
.dialog-colors .eyebrow { display: block; margin-bottom: 0.5rem; }
.color-names { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-soft); }
.color-names span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- story blocks ---------- */

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.35;
  border-left: 4px solid var(--olive);
  padding-left: clamp(1.2rem, 3vw, 2rem);
  max-width: 26ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.standard-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
}
.standard-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.standard-card p { font-size: 0.95rem; color: var(--ink-soft); }
.standard-card .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--olive-deep);
  display: block;
  margin-bottom: 0.7rem;
}

.palette-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 0.8rem; margin-top: 1.8rem; }
.palette-chip { border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; background: var(--card); }
.palette-chip .chip { height: 62px; }
.palette-chip figcaption {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  padding: 0.45rem 0.3rem;
  color: var(--ink-soft);
}

/* ---------- the club ---------- */

.club {
  background: var(--navy);
  color: var(--paper);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.club .eyebrow { color: var(--ash); }
.club h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: 0.8rem; }
.club p { color: rgba(247,244,236,0.78); max-width: 48ch; margin: 1rem auto 0; }

.club-form {
  margin: 2rem auto 0;
  display: flex;
  gap: 0.7rem;
  max-width: 480px;
  flex-wrap: wrap;
  justify-content: center;
}
.club-form input[type="email"] {
  flex: 1 1 260px;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(247,244,236,0.35);
  background: rgba(247,244,236,0.08);
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
}
.club-form input::placeholder { color: rgba(247,244,236,0.55); }
.club-form .btn { border-color: var(--paper); background: var(--paper); color: var(--navy); }
.club-form .btn:hover { background: var(--salmon); border-color: var(--salmon); color: var(--ink); }

.form-note { font-size: 0.8rem; margin-top: 0.9rem; color: rgba(247,244,236,0.55); }
.form-success { margin-top: 1.2rem; font-weight: 600; color: var(--ash); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin-top: 1.6rem; }
.contact-list li { padding-block: 0.9rem; border-bottom: 1px solid var(--hairline); }
.contact-list .eyebrow { display: block; margin-bottom: 0.25rem; }
.contact-list a { font-family: var(--font-display); font-size: 1.3rem; text-decoration: none; }
.contact-list a:hover { color: var(--olive-deep); }

.contact-form { display: grid; gap: 1rem; }
.contact-form label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.35rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--card);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--olive-deep); outline: none; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .form-note { color: var(--ink-soft); }
.contact-form .form-success { color: var(--olive-deep); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(247,244,236,0.75);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: 3.2rem 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand img { width: 52px; }
.footer-brand span { letter-spacing: 0.26em; font-weight: 700; font-size: 0.8rem; color: var(--paper); }

.footer-nav { display: flex; gap: 1.6rem; list-style: none; flex-wrap: wrap; }
.footer-nav a {
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--paper); }

.footer-meta {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(247,244,236,0.18);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.footer-meta .tag { font-family: var(--font-display); font-style: italic; letter-spacing: 0; font-size: 0.95rem; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
