/* ---------- Tokens ---------- */
:root {
  /* Palette: colorhunt.co/palette/0b132b1c25413a506b5bc0be */
  --navy-900: #0b132b;   /* header, footer, hero */
  --navy-700: #1c2541;   /* story section, buttons */
  --slate:    #3a506b;   /* facts strip, muted text */
  --teal:     #5bc0be;   /* accent on dark: logo, highlights, hero button */

  --ink: var(--navy-900);
  --paper: #f5f7f9;      /* cool off-white page background */
  --card: #e9f1f3;       /* product card body, a whisper of teal */
  --teal-deep: #2a7f7d;  /* teal dark enough to read on light backgrounds */
  --on-dark: #ffffff;
  --text: var(--navy-900);
  --muted: var(--slate);
  --line: rgba(11, 19, 43, .14);

  --display: "Courier Prime", "Courier New", monospace;   /* typewriter: headings, labels, buttons */
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; /* clean reading text */

  --wrap: 1160px;
  --radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.eyebrow {
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75em;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding: .8em 1.4em;
  border: 1.5px solid var(--navy-700);
  border-radius: var(--radius);
  background: var(--navy-700);
  color: var(--on-dark);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--teal); border-color: var(--teal); color: var(--navy-900); }
.btn-light { background: var(--teal); border-color: var(--teal); color: var(--navy-900); }
.btn-light:hover, .btn-light:focus-visible { background: transparent; color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 19, 43, .94);
  backdrop-filter: blur(6px);
  color: var(--on-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--teal); }
.nav { display: flex; gap: clamp(12px, 3vw, 32px); }
.nav a { font-family: var(--display); text-decoration: none; font-size: .95rem; letter-spacing: .04em; }
.nav a:hover { color: var(--teal); }
@media (max-width: 520px) {
  .wordmark { font-size: 1.1rem; }
  .nav a:nth-child(2) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 60%;
  position: absolute; inset: 0;
}
.hero::after { /* soften the right side for the text */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,19,43,0) 35%, rgba(11,19,43,.55) 70%, rgba(11,19,43,.8));
}
.hero-inner {
  position: relative; z-index: 1;
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-start; justify-content: flex-end;
}
.hero-copy { max-width: 440px; padding: clamp(48px, 11vh, 120px) 0 64px; }
.hero .eyebrow { color: var(--teal); }
.hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .45em; }
.hero .lede { font-size: 1.05rem; margin-bottom: 1.75em; }

@media (max-width: 760px) {
  .hero-img { position: static; height: 56vw; min-height: 260px; object-position: 22% 70%; }
  .hero::after { display: none; }
  .hero-inner { min-height: 0; justify-content: flex-start; }
  .hero-copy { padding: 32px 0 48px; }
}

/* ---------- Facts strip ---------- */
.facts { background: var(--slate); color: var(--on-dark); }
.facts-list {
  list-style: none; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding-top: 24px; padding-bottom: 24px;
  text-align: center;
}
.facts-list strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.facts-list span { font-size: .85rem; color: #d3dde6; }
@media (max-width: 700px) { .facts-list { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } }

/* ---------- Shop ---------- */
.shop, .care { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.product-img { background: #fff; aspect-ratio: 4 / 5; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .product-img img { transform: scale(1.03); }
.product-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 22px 22px 24px;
  background: var(--card);
  border-top: 1px solid var(--line);
}
.product h3 { font-size: 1.35rem; margin-bottom: .35em; }
.notes { font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; }
.desc { font-size: .98rem; }
.product-foot {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.price { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.price small { font-weight: 400; font-size: .8rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 4px;
  grid-auto-rows: clamp(220px, 28vw, 420px);
  background: var(--ink);
}
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .gallery figure:first-child { grid-column: 1 / -1; }
}

/* ---------- Story ---------- */
.story { background: var(--navy-700); color: var(--on-dark); padding: clamp(56px, 9vw, 104px) 0; }
.story-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.story-img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story .eyebrow { color: var(--teal); }
@media (max-width: 760px) { .story-inner { grid-template-columns: 1fr; } }

/* ---------- Care ---------- */
.care-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}
.care-list li {
  counter-increment: step;
  border-top: 2px solid var(--teal);
  padding-top: 16px;
}
.care-list li::before {
  content: "0" counter(step);
  display: block; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--teal-deep); line-height: 1;
  margin-bottom: 10px;
}
.care-list strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
@media (max-width: 760px) { .care-list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 56px 0 32px; border-top: 4px solid var(--teal); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.wordmark-footer { font-size: 1.6rem; margin-bottom: .4em; }
.footer-head { font-size: 1.2rem; }
.site-footer a { color: var(--teal); }
.small { grid-column: 1 / -1; font-size: .8rem; margin: 16px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
