/* ============================================
   WORTH THE MONEY — site styles
   Feeling: one saturated color field, giant
   lowercase type, squiggles, art-editorial
   image grids. Details live in the clickthrough.
   ============================================ */

:root {
  /* the field — switch this one variable to recolor the whole site. */
  --field: #0d1bf2;        /* electric blue — the only color; rest is b/w/grey */
  --field-ink: #ffffff;    /* text on the field */
  --footer-bg: #1a1a1a;    /* near-black grey footer (softer than pure black) */
  --white: #ffffff;
  --ink: #111111;
  --gray: #6b6b6b;
  --hairline: rgba(255, 255, 255, 0.35);

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Bricolage Grotesque", system-ui, sans-serif;

  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--field);
  color: var(--field-ink);
  line-height: 1.55;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em;
  text-decoration: none; text-transform: lowercase;
}
.nav__links { list-style: none; display: flex; gap: 28px; }
.nav__links a {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  text-transform: lowercase;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav__links a:hover { border-bottom-color: currentColor; }

/* ---------- hero ---------- */
.hero { padding: 9vh 0 5vh; text-align: center; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12.5vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}
/* #3 headline entrance — each line rises up from behind a mask on load */
.hero h1 .rl { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js .hero h1 .rl > span {
  display: block; transform: translateY(110%);
  animation: rl-rise 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.js .hero h1 .rl:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rl-rise { to { transform: translateY(0); } }
.hero__sub {
  margin: 26px auto 0; max-width: 520px;
  font-size: 1.1rem; font-weight: 500; opacity: 0.92;
}

/* ---------- squiggle divider ---------- */
.squiggle { display: block; width: 100%; height: 34px; margin: 34px 0 0; }
.squiggle path {
  fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round;
}
/* #1 self-drawing squiggle — sketches itself on load (path length ~1304u) */
.js .squiggle path {
  stroke-dasharray: 1310; stroke-dashoffset: 1310;
  animation: squiggle-draw 1.7s ease forwards;
}
@keyframes squiggle-draw { to { stroke-dashoffset: 0; } }

/* ---------- editorial image grid (on the field) ---------- */
.art-section { padding: 80px 0 40px; }
.art-section__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em; text-transform: lowercase;
  margin-bottom: 44px;
}
.art-grid {
  display: grid; gap: 44px 28px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.art-item { text-decoration: none; display: block; }
.art-item__photo {
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.94);
  display: grid; place-items: center;
  grid-template: 100% / 100%; /* definite cell so the img's height:100% applies */
  color: #9a9a9a; font-size: 0.8rem; font-weight: 600;
  overflow: hidden;
  transition: transform 0.2s ease;
}
/* product photos fill the 4:5 frame edge to edge */
.art-item__photo img {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
  object-fit: cover; transition: transform 0.55s ease;
}
/* #4 richer hover — card lifts, photo slowly zooms in its frame, title underlines */
.art-item:hover .art-item__photo { transform: translateY(-5px); }
.art-item:hover .art-item__photo img { transform: scale(1.06); }
.art-item__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; letter-spacing: -0.01em; text-transform: lowercase;
  margin-top: 12px; text-align: center;
  transition: color 0.2s ease;
}
.art-item:hover .art-item__title { text-decoration: underline; text-underline-offset: 4px; }

/* #2 scroll reveal — cards fade + rise as they enter view (JS toggles .in) */
.js .art-item {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.js .art-item.in { opacity: 1; transform: none; }
.js .art-grid .art-item:nth-child(2) { transition-delay: 0.08s; }
.js .art-grid .art-item:nth-child(3) { transition-delay: 0.16s; }
.js .art-grid .art-item:nth-child(4) { transition-delay: 0.24s; }

/* ---------- big category index ---------- */
.cat-index { padding: 70px 0 90px; }
.cat-index a {
  display: flex; align-items: baseline; justify-content: space-between;
  text-decoration: none;
  border-top: 1px solid var(--hairline);
  padding: 20px 4px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 3.4rem);
  letter-spacing: -0.035em; text-transform: lowercase;
  transition: padding-left 0.18s ease;
}
.cat-index a:last-child { border-bottom: 1px solid var(--hairline); }
.cat-index a:hover { padding-left: 22px; }
.cat-index a small {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0;
  opacity: 0.7;
}

/* ---------- white reading pages (the clickthrough) ---------- */
.page-white { background: var(--white); color: var(--ink); }
.page-white .nav { border-bottom: 1px solid #e8e8e8; }
.page-white .hero h1 { color: var(--ink); }

.review-hero { padding: 7vh 0 4vh; text-align: center; }
.review-hero .kicker {
  display: block; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 16px;
}
.review-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.04em; line-height: 1; text-transform: lowercase;
  max-width: 900px; margin: 0 auto;
}

.verdict-line {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
  margin: 40px auto 0; padding: 22px 0;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  max-width: 720px;
}
.verdict-line div { text-align: center; }
.verdict-line strong {
  display: block; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 2px;
}
.verdict-line span { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-transform: lowercase; }

.prose { max-width: 660px; margin: 0 auto; padding: 56px 28px 90px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; letter-spacing: -0.02em; text-transform: lowercase;
  margin: 40px 0 12px;
}
.prose p { margin-bottom: 16px; color: #333; }
.prose .placeholder-photo {
  aspect-ratio: 16 / 10;
  background: #ececec;
  display: grid; place-items: center; color: #9a9a9a;
  font-weight: 600; font-size: 0.85rem; margin: 32px 0;
}
/* product photo on the review page — same 4:5 frame as its card, centered */
.prose .review-photo {
  display: block; width: 100%; max-width: 460px;
  aspect-ratio: 4 / 5; object-fit: cover;
  margin: 8px auto 36px;
}
/* a wide review-page photo (e.g. a row of rings), cropped with crop.swift's 3:2 shape */
.prose .review-photo--wide { max-width: 100%; aspect-ratio: 3 / 2; }
.prose a { font-weight: 700; }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start;
  padding: 56px 28px 90px; max-width: var(--maxw); margin: 0 auto;
}
/* main portrait, then a smaller secondary photo underneath */
.about-photos { display: grid; gap: 18px; justify-items: start; }
.about-photo { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #ececec; }
.about-photo--small { width: 62%; aspect-ratio: auto; height: auto; }
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  /* keep the portrait from ballooning full-width on phones */
  .about-photos { max-width: 260px; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--footer-bg); color: var(--white);
  padding: 56px 0 40px; text-align: center;
}
.footer__word {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -0.03em;
  text-transform: lowercase; margin-bottom: 8px;
}
.footer__tag { opacity: 0.65; margin-bottom: 32px; }
.family {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 36px; padding-top: 28px;
  font-size: 0.9rem;
}
.family__label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.55; display: block; margin-bottom: 12px;
}
.family a { margin: 0 14px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--field); }
.family a:hover { opacity: 0.8; }

/* ---------- utilities ---------- */
.center { text-align: center; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav { padding: 18px 20px; }
  .nav__links { gap: 20px; }

  /* goods: two cards per row instead of one full-screen card at a time */
  .art-section { padding: 44px 0 20px; }
  .art-section__title { margin-bottom: 22px; }
  .art-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .art-item__title { font-size: 0.85rem; line-height: 1.25; margin-top: 8px; }

  .cat-index { padding: 48px 0 64px; }
  .cat-index a { padding: 16px 4px; }

  /* review pages: pull the photo up, keep price + timeline side by side */
  .review-hero { padding: 36px 0 8px; }
  .verdict-line { margin-top: 24px; padding: 14px 0; gap: 10px 28px; }
  .verdict-line span { font-size: 1rem; }
  .prose { padding: 28px 20px 64px; }
  .prose .review-photo { margin: 0 auto 28px; }
  .prose h2 { margin-top: 0; }

  /* about: photos use the full width */
  .about-grid { padding: 36px 20px 64px; gap: 32px; }
  .about-photos { max-width: none; }

  /* footer: one link per line */
  .family a { display: block; width: fit-content; margin: 10px auto 0; }
}

/* touch screens: no sticky hover lift/zoom/underline after a tap */
@media (hover: none) {
  .art-item:hover .art-item__photo,
  .art-item:hover .art-item__photo img { transform: none; }
  .art-item:hover .art-item__title { text-decoration: none; }
  .cat-index a:hover { padding-left: 4px; }
}

/* ---------- accessibility ---------- */
/* visible keyboard focus on both the field and the white reading pages */
a:focus-visible, button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* respect reduced-motion: still the marquee, drop smooth scroll & hover shifts */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art-item:hover .art-item__photo { transform: none; }
  /* land every entrance animation in its final state, no motion */
  .js .squiggle path { animation: none; stroke-dashoffset: 0; }
  .js .hero h1 .rl > span { animation: none; transform: none; }
  .js .art-item { opacity: 1; transform: none; transition: none; }
}
