/* Nice Choice — mobile-first stylesheet
   Fonts: Bricolage Grotesque (headings) · Outfit (body) · DM Mono (labels)
   Style system follows the Nice Choice "Fresh Utility" pin language:
   flat colors, generous whitespace, mono micro-labels, no photography. */

:root {
  --bg: #FAF7F1;
  --surface: #FFFFFF;
  --ink: #1E2A32;
  --ink-soft: #52616C;
  --line: #E5DFD3;
  --accent: #0E7568;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3F1EE;
  --note: #8A7B5C;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(30, 42, 50, 0.07);
  --font-head: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 8px;
  padding: 0.3rem 0.4rem;
  line-height: 1;
}

.brand-mark img {
  height: 1.05rem;
  width: auto;
  display: block;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1rem;
}

.site-nav { display: flex; gap: 1.1rem; }

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }

/* Hero */
.hero { padding-top: 2.4rem; padding-bottom: 0.6rem; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--note);
  margin: 0 0 0.6rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 0.7rem;
}

.hero-sub {
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0;
}

/* Section headings */
h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  margin: 2.2rem 0 1rem;
}

.heading-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68em;
  letter-spacing: 0.12em;
  color: var(--accent);
  vertical-align: 0.15em;
  margin-right: 0.35rem;
}

/* Cards (shared) */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Images: full pin always visible — natural 2:3 ratio, never cropped.
   width/height HTML attributes only serve as a ratio hint; height:auto
   overrides the attribute so no fixed height is ever applied. */
.card-media {
  display: block;
  width: 100%;
  height: auto;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--note);
  margin: 0;
}

.card-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.25;
  margin: 0;
}

.card-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.card-cta {
  display: inline-block;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-top: 0.3rem;
}

.card-cta:hover, .card-cta:focus-visible { background: #0A5C52; }

.affiliate-note {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--note);
  margin: 0.15rem 0 0;
}

/* Featured */
.featured-slot { margin-top: 0.2rem; }

.featured-card { border: 2px solid var(--accent); }

.featured-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  align-self: flex-start;
}

.featured-card .card-name { font-size: 1.3rem; }

/* Grid — mobile first: 1 column */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.loading-note { color: var(--ink-soft); }

.error-note {
  color: #8A2F2F;
  background: #FBEEEA;
  border: 1px solid #EBCFC6;
  border-radius: 10px;
  padding: 0.8rem 1rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #E9EDEF;
  margin-top: 1rem;
}

.footer-inner { padding-top: 1.6rem; padding-bottom: 1.8rem; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(233, 237, 239, 0.28);
  color: #E9EDEF;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.footer-social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  display: block;
}

.disclosure {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.6rem;
  color: #F4E9CE;
}

.footer-meta { font-size: 0.85rem; color: #AEBAC2; margin: 0; display: flex; gap: 0.6rem; flex-wrap: wrap; }

.footer-meta a { color: #E9EDEF; }

/* Privacy page */
.prose { max-width: 46rem; padding-bottom: 2.5rem; }
.prose h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 2rem 0 0.4rem; }
.prose h2 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; }
.prose p { color: var(--ink-soft); }
.prose .disclosure-inline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--ink);
}

/* ≥600px (tablet): 2 columns */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≥700px: featured becomes two columns — full image on the left (contained,
   never cropped), content starts at the top, button in natural flow. */
@media (min-width: 700px) {
  .featured-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .featured-card .card-media {
    width: 38%;
    max-width: 300px;
    height: auto;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
  .featured-card .card-body { padding: 1.4rem 1.5rem; }
}

/* ≥1100px (desktop): 3 columns — keeps pin text readable */
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Category structure (added 2026-07-28)
   Header nav with categories, breadcrumbs, category strips,
   category pages and product detail pages.
   ============================================================ */

/* Header nav — scrolls sideways on small screens instead of wrapping */
.header-inner { gap: 0.75rem; }

.site-nav {
  gap: 0.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a { white-space: nowrap; }

.site-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--note);
  padding-top: 1rem;
  padding-bottom: 0.2rem;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--accent); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--ink); }

/* Category chips */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.cat-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.cat-chips a:hover, .cat-chips a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-chips a span {
  font-size: 0.68rem;
  color: var(--note);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0 0.4rem;
}

/* Category strips on the home page */
.cat-strip { padding-bottom: 0.4rem; }

.strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.strip-head h2 { margin-bottom: 0.4rem; }

.strip-all {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.strip-all:hover, .strip-all:focus-visible { text-decoration: underline; }

.strip-intro {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0 0 1rem;
  max-width: 40rem;
}

/* Cards: name is now a link, plus a secondary details link */
.card-media-link { display: block; }

.card-name a {
  color: inherit;
  text-decoration: none;
}
.card-name a:hover, .card-name a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.card-details {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-decoration: none;
  text-align: center;
}
.card-details:hover, .card-details:focus-visible { color: var(--accent); text-decoration: underline; }

/* Category page + product page */
.all-picks { padding-top: 0.4rem; }

.other-cats { padding-bottom: 2rem; }

.product {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-top: 1.2rem;
  padding-bottom: 1rem;
}

.product-media {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-media img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--accent-soft);
}

.product-body h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

.product-desc {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0 0 1.1rem;
  max-width: 38rem;
}

.product-cta {
  display: inline-block;
  min-width: 14rem;
  margin-top: 0;
}

.product-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.1rem;
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.product-meta dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--note);
  align-self: center;
}

.product-meta dd { margin: 0; color: var(--ink-soft); }
.product-meta dd a { color: var(--accent); }

.product-note {
  font-size: 0.86rem;
  color: var(--note);
  margin: 1.1rem 0 0;
  max-width: 38rem;
}

/* ≥760px: product page becomes two columns */
@media (min-width: 760px) {
  .product {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
  .product-media { width: 40%; max-width: 340px; flex: none; }
  .product-body { flex: 1; padding-top: 0.4rem; }
}

/* Featured card: the image is now wrapped in a link — keep the two-column
   layout by sizing the link, not the image. */
@media (min-width: 700px) {
  .featured-card .card-media-link {
    width: 38%;
    max-width: 300px;
    flex: none;
    border-right: 1px solid var(--line);
  }
  .featured-card .card-media {
    width: 100%;
    border-bottom: none;
    border-right: none;
  }
}

/* Keep the Amazon button on the same baseline across a row of cards */
.card-body { flex: 1; }
.card-cta { margin-top: auto; }

/* Small screens: category nav gets its own full-width row under the logo */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; row-gap: 0.35rem; padding-bottom: 0.4rem; }
  .site-nav {
    order: 3;
    width: 100%;
    gap: 1rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--line);
  }
}

/* Product page — editorial blocks ("Our take") */
.product-notes {
  max-width: 46rem;
  margin: 0 auto;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.notes-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.2rem;
}

.note-block {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}

.note-block h2 {
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  margin: 0 0 0.45rem;
}

.note-block p {
  color: var(--ink-soft);
  margin: 0;
}

.notes-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--note);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin: 1.4rem 0 0.6rem;
}
