/* ==========================================================================
   Well Rounded Guy — design system
   Image-first & cinematic (Uncrate) × editorial depth (Acquired) × trust (Wirecutter)
   ========================================================================== */

/* ---- Reset-ish ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- Base ---------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--wrg-font-body);
  color: var(--wrg-ink);
  background: var(--wrg-paper);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--wrg-font-display);
  font-weight: 540;
  line-height: 1.06;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 2.5em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2em; }

/* Kicker / eyebrow — the mono uppercase label is core to the brand voice */
.wrg-kicker {
  font-family: var(--wrg-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wrg-brass);
  font-weight: 500;
}
.wrg-kicker a { color: inherit; }

.wrg-prose { max-width: var(--wrg-measure); }
.wrg-prose p { margin: 1.3em 0; }
.wrg-prose > p:first-of-type { font-size: 1.2rem; line-height: 1.6; color: var(--wrg-ink); } /* lede */
.wrg-prose a {
  color: var(--wrg-brass-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color .15s ease;
}
.wrg-prose a:hover { color: var(--wrg-ink); }
.wrg-prose img { border-radius: var(--wrg-radius); margin: 2rem 0; }
.wrg-prose figure { margin: 2.5rem 0; }
.wrg-prose figcaption { font-family: var(--wrg-font-mono); font-size: 0.72rem; letter-spacing: .04em; color: var(--wrg-ink-soft); margin-top: .6rem; text-align: center; }
.wrg-prose blockquote {
  border-left: 2px solid var(--wrg-brass);
  padding-left: 1.4rem;
  font-family: var(--wrg-font-display);
  font-size: 1.5rem;
  line-height: 1.32;
  color: var(--wrg-ink);
  margin: 2.5rem 0;
}

/* ---- Layout -------------------------------------------------------------- */
.wrg-container { width: min(76rem, 100% - calc(var(--wrg-gutter) * 2)); margin-inline: auto; }
.wrg-container--wide { width: min(90rem, 100% - calc(var(--wrg-gutter) * 2)); }
.wrg-article { width: min(var(--wrg-measure), 100% - calc(var(--wrg-gutter) * 2)); margin-inline: auto; }
.wrg-bleed { width: min(64rem, 100% - calc(var(--wrg-gutter) * 2)); margin-inline: auto; }

/* Luxe fallback used whenever a real photo is missing — never an empty box. */
.wrg-imgfill {
  background:
    radial-gradient(120% 120% at 28% 18%, #3a352b 0%, var(--wrg-near-black) 62%),
    repeating-linear-gradient(45deg, rgba(203,159,104,.08) 0 9px, transparent 9px 18px);
}

/* ---- Header / nav -------------------------------------------------------- */
.wrg-masthead {
  border-bottom: 1px solid var(--wrg-line);
  background: rgba(247,244,238,.82);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
}
.wrg-masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}
.wrg-logo {
  font-family: var(--wrg-font-display);
  font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em;
  color: var(--wrg-ink);
}
.wrg-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.wrg-nav a {
  font-weight: 500; color: var(--wrg-ink-soft);
  text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.74rem;
  transition: color .15s ease;
}
.wrg-nav a:hover { color: var(--wrg-brass); }

/* ---- Buttons / CTAs ------------------------------------------------------ */
.wrg-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--wrg-font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.78rem 1.3rem; border-radius: var(--wrg-radius);
  background: var(--wrg-ink); color: var(--wrg-paper);
  border: 1px solid var(--wrg-ink); cursor: pointer;
  transition: background .15s ease, transform .05s ease, color .15s ease;
}
.wrg-btn:hover { background: var(--wrg-charcoal); }
.wrg-btn:active { transform: translateY(1px); }
.wrg-btn--brass { background: var(--wrg-brass); border-color: var(--wrg-brass); color: #fff; }
.wrg-btn--brass:hover { background: var(--wrg-brass-deep); border-color: var(--wrg-brass-deep); }
.wrg-btn--ghost { background: transparent; color: var(--wrg-ink); }
.wrg-btn--ghost:hover { background: var(--wrg-ink); color: var(--wrg-paper); }
.wrg-btn--ondark { background: #fff; color: var(--wrg-ink); border-color: #fff; }
.wrg-btn--ondark:hover { background: var(--wrg-brass-lite); border-color: var(--wrg-brass-lite); color: var(--wrg-near-black); }

/* ==========================================================================
   CINEMATIC — the image-first signature components
   ========================================================================== */

/* Full-bleed immersive hero with overlaid type (front page lead + article header). */
.wrg-cinematic {
  position: relative;
  min-height: clamp(64vh, 72vh, 860px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--wrg-near-black);
  color: #fff;
  isolation: isolate;
}
.wrg-cinematic__media { position: absolute; inset: 0; z-index: -2; }
.wrg-cinematic__media img { width: 100%; height: 100%; object-fit: cover; }
.wrg-cinematic::after { /* legibility scrim */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(12,11,8,.94) 0%, rgba(12,11,8,.55) 32%, rgba(12,11,8,.12) 62%, rgba(12,11,8,.32) 100%);
}
/* Horizontal breathing room comes from the .wrg-container (centered, gutter on
   both sides). Do NOT set width:100% here — it cancels the container's margin
   and shoves the overlaid text against the left edge. */
.wrg-cinematic__inner { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.wrg-cinematic .wrg-kicker { color: var(--wrg-brass-lite); }
.wrg-cinematic__title {
  color: #fff; margin-top: .6rem;
  font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; max-width: 17ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.wrg-cinematic__title a { color: inherit; }
.wrg-cinematic__dek { color: rgba(255,255,255,.88); font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 46ch; margin-top: 1rem; }
.wrg-cinematic__meta { font-family: var(--wrg-font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 1.1rem; }
.wrg-cinematic--article { min-height: clamp(58vh, 68vh, 760px); }

/* Image-dominant overlay tile — the workhorse of the image-first grids. */
.wrg-tile {
  position: relative; display: flex; align-items: flex-end;
  aspect-ratio: 4 / 5; border-radius: var(--wrg-radius);
  overflow: hidden; color: #fff; isolation: isolate;
  background: var(--wrg-near-black);
}
.wrg-tile__media { position: absolute; inset: 0; z-index: -2; }
.wrg-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.wrg-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12,11,8,.9) 4%, rgba(12,11,8,.35) 42%, rgba(12,11,8,0) 72%);
}
.wrg-tile:hover .wrg-tile__media img { transform: scale(1.06); }
/* Flex column + order so the title always sits ABOVE the meta subtext,
   regardless of source order. */
.wrg-tile__body { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.6vw, 2.25rem); width: 100%; }
.wrg-tile__title {
  order: 1;
  font-family: var(--wrg-font-display); font-weight: 480;
  color: #fff; font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  line-height: 1.15; letter-spacing: -0.012em;
  text-shadow: 0 1px 18px rgba(0,0,0,.32);
}
.wrg-tile__title a { color: inherit; }
.wrg-tile__meta { /* subtext under the title */
  order: 2; margin-top: .6rem;
  font-family: var(--wrg-font-mono); font-size: .63rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.62);
}
/* Whole tile is clickable via the title link's stretched ::after overlay.
   The category link is layered above it so it stays independently clickable. */
.wrg-tile__link { color: inherit; }
.wrg-tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.wrg-tile__meta a { position: relative; z-index: 2; color: inherit; text-underline-offset: 2px; transition: color .15s ease; }
.wrg-tile__meta a:hover { color: #fff; text-decoration: underline; }
.wrg-tile--tall { aspect-ratio: 3 / 4; }
.wrg-tile--wide { aspect-ratio: 3 / 2; }

/* The large mosaic lead carries a bigger headline; smaller tiles stay modest. */
.wrg-mosaic__lead .wrg-tile__title { font-size: clamp(1.45rem, 2.2vw, 1.95rem); }
.wrg-mosaic__lead .wrg-tile__meta { color: var(--wrg-brass-lite); }

/* Editorial mosaic: one hero tile + a column of two, collapsing on mobile. */
.wrg-mosaic { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .wrg-mosaic { grid-template-columns: 1.45fr 1fr; grid-auto-rows: 1fr; }
  .wrg-mosaic__lead { grid-row: span 2; }
  .wrg-mosaic__lead.wrg-tile { aspect-ratio: auto; }
  .wrg-mosaic .wrg-tile:not(.wrg-mosaic__lead) { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Standard cards (light grids) — now more photographic
   ========================================================================== */
.wrg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.25rem; }
.wrg-card { display: flex; flex-direction: column; }
.wrg-card__media {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--wrg-radius);
  background: var(--wrg-near-black); position: relative;
}
.wrg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.wrg-card:hover .wrg-card__media img { transform: scale(1.04); }
.wrg-card__title { font-family: var(--wrg-font-display); font-size: 1.45rem; line-height: 1.1; margin-top: .9rem; }
.wrg-card__title a { transition: color .15s ease; }
.wrg-card__title a:hover { color: var(--wrg-brass-deep); }
.wrg-card__dek { color: var(--wrg-ink-soft); font-size: 0.98rem; margin-top: .45rem; }
.wrg-card__meta { font-family: var(--wrg-font-mono); font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wrg-ink-soft); margin-top: .65rem; }
.wrg-card__meta a { color: var(--wrg-brass-deep); transition: color .15s ease; }
.wrg-card__meta a:hover { color: var(--wrg-ink); text-decoration: underline; text-underline-offset: 2px; }

/* Section heading row */
.wrg-sectionhead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---- Hero (text-only fallback when no image) ----------------------------- */
.wrg-hero { padding-block: clamp(2rem, 6vw, 4.5rem); border-bottom: 1px solid var(--wrg-line); }
.wrg-hero__title { max-width: 18ch; }
.wrg-hero__dek { font-size: 1.25rem; color: var(--wrg-ink-soft); max-width: 48ch; margin-top: 1rem; }

/* ---- Dark section -------------------------------------------------------- */
.wrg-dark { background: var(--wrg-charcoal); color: var(--wrg-paper); }
.wrg-dark .wrg-kicker { color: var(--wrg-brass-lite); }
.wrg-dark a { color: var(--wrg-brass-lite); }
.wrg-dark h2 { color: var(--wrg-paper); }

/* ==========================================================================
   Monetization components
   ========================================================================== */

/* ---- Affiliate product card --------------------------------------------- */
.wrg-product {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.4rem;
  background: var(--wrg-paper-pure);
  border: 1px solid var(--wrg-line); border-radius: var(--wrg-radius);
  padding: 1.4rem; margin: 2.25rem 0; box-shadow: var(--wrg-shadow);
}
.wrg-product__media { background: var(--wrg-paper); border-radius: var(--wrg-radius); overflow: hidden; }
.wrg-product__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.wrg-product__badge {
  font-family: var(--wrg-font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--wrg-brass); margin-bottom: .35rem;
}
.wrg-product__title { font-family: var(--wrg-font-display); font-size: 1.35rem; line-height: 1.12; }
.wrg-product__verdict { color: var(--wrg-ink-soft); font-size: 0.98rem; margin: .45rem 0 .85rem; }
.wrg-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wrg-product__price { font-weight: 600; font-size: 1.1rem; }
@media (max-width: 560px) {
  .wrg-product { grid-template-columns: 1fr; }
  .wrg-product__media img { aspect-ratio: 16/9; }
}

/* ---- Comparison table ---------------------------------------------------- */
.wrg-compare { width: 100%; border-collapse: collapse; margin: 2.25rem 0; font-size: 0.96rem; }
.wrg-compare th, .wrg-compare td { text-align: left; padding: 0.85rem 0.95rem; border-bottom: 1px solid var(--wrg-line); }
.wrg-compare thead th {
  font-family: var(--wrg-font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--wrg-ink-soft);
}
.wrg-compare tbody tr:hover { background: rgba(154,123,79,.06); }

/* ---- FTC disclosure ------------------------------------------------------ */
.wrg-disclosure {
  font-size: 0.82rem; color: var(--wrg-ink-soft); background: rgba(154,123,79,.08);
  border-left: 2px solid var(--wrg-brass); padding: .65rem .95rem; border-radius: 0 var(--wrg-radius) var(--wrg-radius) 0;
  margin: 1.5rem 0; font-style: italic;
}

/* ---- Ad slots ------------------------------------------------------------ */
.wrg-ad {
  margin: 2.75rem auto; text-align: center; min-height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.wrg-ad::before {
  content: "Advertisement"; font-family: var(--wrg-font-mono);
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wrg-ink-soft); opacity: .55; margin-bottom: .45rem;
}
.wrg-ad--sidebar { position: sticky; top: 92px; }

/* ---- Footer -------------------------------------------------------------- */
.wrg-footer { background: var(--wrg-charcoal); color: #b8b2a4; padding-block: 3.5rem; margin-top: 0; }
.wrg-footer a { color: #d8d2c4; }
.wrg-footer a:hover { color: #fff; }

/* ---- Pagination ---------------------------------------------------------- */
.wrg-pagelinks, .pagination, .nav-links { display: flex; gap: .6rem; flex-wrap: wrap; font-family: var(--wrg-font-mono); font-size: .8rem; }
.nav-links a, .nav-links span { padding: .5rem .85rem; border: 1px solid var(--wrg-line); border-radius: var(--wrg-radius); }
.nav-links a:hover { background: var(--wrg-ink); color: var(--wrg-paper); border-color: var(--wrg-ink); }
.nav-links .current { background: var(--wrg-ink); color: var(--wrg-paper); border-color: var(--wrg-ink); }

/* ---- Utilities ----------------------------------------------------------- */
.wrg-stack > * + * { margin-top: var(--wrg-flow, 1rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

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