@font-face { font-family: Inter; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/archivo-latin-900-normal.woff2) format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --ink: #14110f; --ink-2: #2a2420; --muted: #6b625b; --line: #e7dfd6; --bg: #f6f2ec; --card: #fff;
  --red: #d4161c; --red-soft: #fde8e8; --ok: #15803d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--ink); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 900 21px/1 Archivo, Inter, sans-serif; letter-spacing: -0.025em; text-decoration: none; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand .dot { color: #ff5a5f; }
.by { font-size: 13px; color: rgba(255, 255, 255, 0.65); text-align: right; }

.hero { background: var(--ink); color: #fff; padding: 36px 0 96px; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.kicker.light { color: #ff8a8a; }
.hero h1 { color: #fff; font: 900 clamp(34px, 7vw, 58px)/1.05 Archivo, Inter, sans-serif; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: #ff5a5f; }
.lead { margin: 18px 0 0; max-width: 620px; font-size: 18px; color: rgba(255, 255, 255, 0.78); }

.calc-wrap { margin-top: -64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 30px rgba(20, 17, 15, 0.08); }
.calc { padding: 22px; }
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc h2 { font-size: 22px; font-weight: 800; }
.units { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; }
.units input { position: absolute; opacity: 0; pointer-events: none; }
.units span { display: block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.units input:checked + span { background: var(--ink); color: #fff; }
.units input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.field { display: block; min-width: 0; font-weight: 600; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.input { display: flex; align-items: center; margin-top: 6px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 17, 15, 0.07); }
.input input { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; padding: 14px 16px; font: 600 20px/1 Inter, sans-serif; color: var(--ink); outline: none; }
.input .u { padding-right: 16px; font-weight: 600; color: var(--muted); }
.field small { display: block; margin-top: 6px; font-weight: 400; font-size: 13px; color: var(--muted); }
.err { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--red-soft); color: #9f1239; font-size: 14px; }
.result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.res-row { display: grid; gap: 2px; margin-bottom: 12px; }
.res-row .lbl { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.res-row strong { font: 900 24px/1.2 Archivo, Inter, sans-serif; color: var(--ink); }
.res-row .vs { font-size: 14px; color: var(--muted); }
.curve { display: block; width: 100%; height: auto; margin: 8px 0 4px; overflow: visible; }
.c-fill { fill: var(--red-soft); }
.c-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.c-axis { stroke: var(--line); stroke-width: 2; }
.c-tick { font: 600 19px Inter, sans-serif; fill: var(--muted); text-anchor: middle; }
.c-cap { font: 400 17px Inter, sans-serif; fill: var(--muted); text-anchor: middle; }
.c-you { stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.c-you-t { font: 800 20px Inter, sans-serif; fill: var(--red); text-anchor: middle; }
.note { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.privacy { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.facts { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.fact .num { display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 14px; background: var(--red-soft); color: var(--red); font: 900 22px/1 Archivo, Inter, sans-serif; }
.fact h3 { margin-top: 14px; font-size: 19px; font-weight: 800; }
.fact p { margin: 8px 0 0; font-size: 15px; }

.cta { margin: 28px 0 40px; padding: 26px 22px; border-radius: 24px; background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.cta h2 { color: #fff; font: 900 clamp(24px, 4.5vw, 34px)/1.15 Archivo, Inter, sans-serif; letter-spacing: -0.01em; }
.cta p { margin: 12px 0 0; max-width: 640px; }
.cta strong { color: #fff; }
.btn { display: inline-block; margin-top: 20px; padding: 15px 26px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; text-decoration: none; }
.btn:hover { background: #b51217; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.code { font-size: 14px; color: rgba(255, 255, 255, 0.7); }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 10px; max-width: 760px; }
.foot strong { color: var(--ink-2); }
.foot .links a { color: var(--ink-2); }

@media (min-width: 720px) {
  .hero { padding: 56px 0 110px; }
  .calc { padding: 30px 32px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .cta { padding: 38px 40px; }
}
@media (max-width: 520px) { .by { display: none; } }

/* ─── Multi-page: navigation, guides, articles ─── */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; }
.skip:focus { left: 12px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.75); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.fact a, .note a { color: var(--red); font-weight: 600; }

.teaser { display: grid; gap: 6px; margin-top: 28px; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.teaser:hover { border-color: var(--ink); }
.teaser .kicker { margin: 0; }
.teaser strong { font: 900 22px/1.2 Archivo, Inter, sans-serif; color: var(--ink); }
.teaser .go { font-weight: 800; color: var(--red); }

.guides { margin-top: 40px; }
.guides h2, .related h2 { font: 900 28px/1.15 Archivo, Inter, sans-serif; }
.guides .sub { margin: 6px 0 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.card-link { display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.card-link:hover { border-color: var(--ink); }
.card-link strong { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.card-link span { font-size: 14px; color: var(--muted); }
.related { margin: 8px auto 40px; }

/* article pages */
.page-head { background: var(--ink); color: #fff; padding: 30px 0 34px; }
.crumbs { margin: 0 0 12px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.crumbs a { color: rgba(255, 255, 255, 0.8); }
.page-head h1 { color: #fff; font: 900 clamp(30px, 6vw, 48px)/1.08 Archivo, Inter, sans-serif; letter-spacing: -0.02em; max-width: 820px; }
.page-head .lead { margin-top: 14px; }
.meta { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.article { max-width: 760px; margin: 0 auto; padding: 26px 16px 8px; font-size: 17px; line-height: 1.7; }
.article h2 { margin: 34px 0 10px; font: 900 26px/1.2 Archivo, Inter, sans-serif; letter-spacing: -0.01em; }
.article h3 { margin: 24px 0 8px; font-size: 19px; font-weight: 800; }
.article p, .article ul, .article ol { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li + li { margin-top: 6px; }
.article a { color: var(--red); font-weight: 600; }
.article sup a { font-weight: 700; text-decoration: none; padding: 0 1px; }
.keyfacts { margin: 4px 0 22px; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.keyfacts h2 { margin: 0 0 8px; font: 800 14px/1.3 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.keyfacts ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article th, .article td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.article tr:last-child td { border-bottom: 0; }
.article th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.callout { margin: 18px 0; padding: 16px 18px; border-radius: 16px; background: var(--red-soft); color: #5b1013; font-size: 16px; }
.callout strong { color: #5b1013; }
.sources { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); }
.sources h2 { margin: 0 0 10px; font: 800 18px/1.3 Inter, sans-serif; color: var(--ink); }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: 8px; word-break: break-word; }
.sources a { color: var(--muted); font-weight: 400; }
.article .cta { margin: 30px 0 10px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; }
.foot-nav a { color: var(--ink-2); font-weight: 600; }

/* condom finder */
.finder .fields { grid-template-columns: minmax(0, 1fr); }
.size-out { display: grid; gap: 4px; }
.size-out strong { font: 900 30px/1.1 Archivo, Inter, sans-serif; color: var(--ink); }
.size-out .vs { font-size: 15px; color: var(--ink-2); }
.bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.band { padding: 10px 8px; border-radius: 12px; background: var(--bg); text-align: center; font-size: 13px; color: var(--muted); }
.band b { display: block; font-size: 15px; color: var(--ink); }
.band.on { background: var(--ink); color: rgba(255, 255, 255, 0.75); }
.band.on b { color: #fff; }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .related .cards { grid-template-columns: repeat(3, 1fr); }
  .page-head { padding: 44px 0 46px; }
  .article { padding-top: 34px; }
}
@media (max-width: 420px) { .bands { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .top-in { flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; } .nav { width: 100%; margin: 0 -12px; } }
/* the shop box inside guides: article link and heading styles must not leak into it (white button text) */
.article .cta .btn { color: #fff; font-weight: 800; }
.article .cta h2 { margin: 0; color: #fff; }
.article .cta .kicker { margin-bottom: 10px; }

.article .cta p { margin: 12px 0 0; }
