/* Dogs Explained - navy, coral paw, warm paper.
   Type: Barlow (drawn from California highway signs and vehicle markings), condensed for headings. */
:root {
  --asphalt: #141826;
  --asphalt-2: #2e3338;
  --paper: #f6f6f4;
  --ink: #1b1d1f;
  --ink-2: #4a5056;
  --rule: #d9dad6;
  --yellow: #ff914d;
  --yellow-ink: #2a1300;
  --dot-red: #ff914d;
  --sign: #1f6f78;
  --sign-2: #175860;
  --link: #005c3d;
  --measure: 66ch;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
img, iframe { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 2px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* masthead + tape */
.masthead { background: var(--asphalt); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { font: 800 1.75rem/1 var(--cond); color: var(--yellow); text-decoration: none; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.bar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.bar nav a { color: #fff; text-decoration: none; font: 600 1.05rem/1 var(--cond); letter-spacing: .02em; padding-block: 6px; border-bottom: 2px solid transparent; }
.bar nav a:hover, .bar nav a[aria-current="page"] { border-color: var(--yellow); color: #fff; }
.tape { height: 10px; background: radial-gradient(circle at 13px 5px, #141826 0 3px, transparent 3.5px) 0 0 / 26px 10px, #ff914d; }

/* hero */
.hero { background: var(--asphalt); color: #fff; padding: 56px 0 64px; }
.hero h1 { font: 800 clamp(2.6rem, 7vw, 4.6rem)/0.98 var(--cond); margin: 0 0 18px; max-width: 16ch; letter-spacing: -.005em; }
.hero p { color: #d7dade; max-width: 52ch; margin: 0 0 28px; font-size: 1.2rem; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; font: 700 1.15rem/1 var(--cond); letter-spacing: .02em; padding: 14px 20px; border-radius: 6px; text-decoration: none; border: 2px solid var(--yellow); }
.btn-y { background: var(--yellow); color: var(--yellow-ink); }
.btn-y:hover { background: #ffad7a; color: var(--yellow-ink); }
.btn-o { color: #fff; border-color: #6b737b; }
.btn-o:hover { border-color: #fff; color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
/* the newest explainer as an overhead guide sign */
.guide-sign { position: relative; display: grid; gap: 10px; background: var(--sign); color: #fff; text-decoration: none; border-radius: 14px; padding: 34px 28px 26px; box-shadow: inset 0 0 0 6px var(--sign), inset 0 0 0 9px #fff, 0 18px 0 -10px #1a1d20; }
.guide-sign .tab { position: absolute; top: -16px; right: 22px; background: var(--yellow); color: var(--yellow-ink); font: 800 1.05rem/1 var(--cond); padding: 8px 12px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--yellow), inset 0 0 0 3.5px var(--yellow-ink); }
.guide-sign .small { font: 600 1.05rem/1 var(--cond); color: #d6efe4; letter-spacing: .02em; }
.guide-sign .big { font: 800 clamp(1.8rem, 3.6vw, 2.5rem)/1.05 var(--cond); }
.guide-sign .arrow { justify-self: end; }
.guide-sign:hover { background: var(--sign-2); box-shadow: inset 0 0 0 6px var(--sign-2), inset 0 0 0 9px #fff, 0 18px 0 -10px #1a1d20; color: #fff; }
.guide-sign:hover .big { text-decoration: underline; text-underline-offset: 5px; }
.today { margin-top: 36px; padding-top: 20px; border-top: 1px solid #454c53; max-width: 60ch; }
.today small { color: #aab1b8; font-size: .95rem; }
.today a { color: #fff; font: 700 1.6rem/1.15 var(--cond); display: block; margin-top: 4px; text-decoration: none; }
.today a:hover { color: var(--yellow); }

/* sections */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
h2, .h2 { font: 800 clamp(1.8rem, 4vw, 2.4rem)/1.05 var(--cond); margin: 0 0 20px; }
h3 { font: 700 1.4rem/1.15 var(--cond); margin: 0 0 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* explainer rows (not cards) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.rows li:first-child { border-top: 3px solid var(--ink); }
.rows a.t { font: 700 1.55rem/1.12 var(--cond); color: var(--ink); text-decoration: none; }
.rows a.t:hover { color: var(--sign); text-decoration: underline; }
.rows p { margin: 4px 0 0; color: var(--ink-2); max-width: 62ch; font-size: 1.05rem; }
@media (max-width: 640px) { .rows li { grid-template-columns: 1fr; } }

/* highway-sign tag: green panel, white inset border, like the real thing */
.sign { display: inline-block; align-self: start; justify-self: start; background: var(--sign); color: #fff; font: 600 .95rem/1 var(--cond); letter-spacing: .03em; padding: 6px 9px; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 3.5px #fff; white-space: nowrap; }

/* article */
.art-head { background: var(--asphalt); color: #fff; padding: 40px 0 44px; }
.art-head h1 { font: 800 clamp(2.2rem, 6vw, 3.6rem)/1.02 var(--cond); margin: 14px 0 14px; max-width: 22ch; }
.art-head .dek { color: #d7dade; font-size: 1.2rem; max-width: 60ch; margin: 0; }
.art-head .meta { color: #aab1b8; font-size: .95rem; margin-top: 14px; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.9rem; margin: 44px 0 12px; }
.prose p, .prose li { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose strong { font-weight: 600; }
.art-body { padding: 40px 0 24px; }
.reel { margin: 0 0 32px; max-width: 340px; }
.reel iframe { width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 8px; background: #000; display: block; }
.reel figcaption { font-size: .95rem; color: var(--ink-2); margin-top: 6px; }

/* facts: a road sign */
.facts { background: var(--sign); color: #fff; border-radius: 10px; padding: 22px 24px; box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 6px #fff; max-width: var(--measure); margin: 40px 0; }
.facts h2 { color: #fff; font-size: 1.7rem; margin: 0 0 10px; }
.facts ul { margin: 0; padding-left: 1.2em; }
.facts li { margin-bottom: 8px; }

.faq { max-width: var(--measure); margin: 40px 0; }
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq details:first-of-type { border-top: 3px solid var(--ink); }
.faq summary { font: 700 1.3rem/1.2 var(--cond); cursor: pointer; }
.faq details p { margin: 10px 0 0; }

.gearbox { max-width: var(--measure); border: 2px solid var(--ink); border-radius: 10px; padding: 20px 22px; margin: 40px 0; background: #fff; }
.gearbox h2 { font-size: 1.7rem; margin-bottom: 6px; }
.gearbox ul { list-style: none; margin: 12px 0 0; padding: 0; }
.gearbox li { padding: 12px 0; border-top: 1px solid var(--rule); }
.gearbox li a { font: 700 1.25rem/1.2 var(--cond); }
.gearbox li p { margin: 2px 0 0; color: var(--ink-2); font-size: 1rem; }
.note { color: var(--ink-2); font-size: .95rem; }

.follow { background: var(--yellow); color: var(--yellow-ink); padding: 40px 0; }
.follow h2 { margin-bottom: 8px; }
.follow p { margin: 0 0 18px; max-width: 56ch; }
.follow .btn { border-color: var(--asphalt); background: var(--asphalt); color: #fff; }
.follow .btn:hover { background: #000; }

/* HOS tool */
.tool { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 820px) { .tool { grid-template-columns: 1fr; } }
.tool form { display: grid; gap: 16px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 20px; }
.tool label { display: grid; gap: 6px; font-weight: 600; }
.tool label span { font-weight: 400; color: var(--ink-2); font-size: .95rem; }
.tool input { font: 600 1.3rem/1 var(--body); padding: 10px 12px; border: 2px solid #9aa0a6; border-radius: 6px; width: 100%; background: var(--paper); color: var(--ink); }
.tool input:focus { border-color: var(--ink); }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 3px solid var(--ink); }
.readout div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.readout b { display: block; font: 800 2.6rem/1 var(--cond); }
.readout small { color: var(--ink-2); font-size: 1rem; }
.readout .stop b { color: var(--dot-red); }
.verdict { font: 700 1.5rem/1.2 var(--cond); margin: 18px 0 8px; }
.log { margin-top: 20px; }
.log svg { width: 100%; height: auto; display: block; }

/* list + pages */
.page-head { background: var(--asphalt); color: #fff; padding: 36px 0 40px; }
.page-head h1 { font: 800 clamp(2.2rem, 6vw, 3.4rem)/1 var(--cond); margin: 0 0 10px; }
.page-head p { color: #d7dade; margin: 0; max-width: 60ch; }

footer { background: var(--asphalt); color: #c4c9ce; padding: 36px 0 44px; font-size: .98rem; }
footer .cols { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 12px 0 18px; }
footer a { color: #fff; }
footer p { margin: 6px 0; max-width: 70ch; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rollin .6s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rollin { from { opacity: 0; transform: translateX(-24px); } }
}

/* beehiiv Friday email form inside the follow band */
.newsletter { margin-top: 28px; max-width: 640px; background: #fff; border-radius: 10px; padding: 8px; }
@media print { .newsletter { display: none; } }
