/* NotHotdog site. One light, paper-and-ink theme; no framework, no web fonts (CSP is 'self' only).
   Never use inline style="" in the views: the CSP drops them. Colored links repeat :link/:visited. */

:root {
    --paper: #f5eedd;
    --paper-deep: #ece2c9;
    --ink: #1c1712;
    --ink-soft: #5a5044;
    --ketchup: #c0392b;
    --mustard: #e3b23c;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a:link, a:visited { color: var(--ketchup); }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

.nh-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.nh-skip {
    position: absolute; left: -9999px; top: 8px;
    background: var(--ink); padding: 8px 14px;
}
.nh-skip:link, .nh-skip:visited { color: var(--paper); }
.nh-skip:focus { left: 8px; z-index: 10; }

/* Header */
.nh-header { border-bottom: 2px solid var(--ink); }
.nh-header-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.nh-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nh-brand:link, .nh-brand:visited { color: var(--ink); }
.nh-brand span { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.nh-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nh-nav a { text-decoration: none; font-size: 0.95rem; }
.nh-nav a:link, .nh-nav a:visited { color: var(--ink); }
.nh-nav a:hover { color: var(--ketchup); text-decoration: underline; text-underline-offset: 4px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 28px; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 1em; }

.nh-label {
    font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--ink-soft); margin: 0 0 16px;
}

/* Hero */
.nh-hero { padding: 64px 0 72px; }
.nh-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.nh-hero h1 { margin-bottom: 24px; }
.nh-lede { font-size: 1.2rem; color: var(--ink); max-width: 34em; }
.nh-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.nh-soon {
    display: inline-block; background: var(--mustard); border: 2px solid var(--ink);
    padding: 10px 18px; font-weight: 600; font-size: 0.98rem;
}
.nh-textlink { text-underline-offset: 4px; }

.nh-shot { margin: 0; }
.nh-shot img { border: 2px solid var(--ink); border-radius: 12px; box-shadow: 7px 7px 0 var(--ink); }
.nh-shot figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 18px; }

/* Sections */
.nh-section { padding: 72px 0; border-top: 2px solid var(--ink); }
.nh-section-alt { background: var(--paper-deep); }

.nh-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 46em; }
.nh-steps li { counter-increment: step; position: relative; padding: 0 0 28px 64px; }
.nh-steps li::before {
    content: counter(step); position: absolute; left: 0; top: -4px;
    font-family: var(--serif); font-size: 2.9rem; font-weight: 700; line-height: 1; color: var(--ketchup);
}
.nh-steps li:last-child { padding-bottom: 0; }
.nh-steps p { margin: 0; }

.nh-defs { margin: 0; max-width: 46em; border-top: 1px solid var(--ink); }
.nh-defs > div {
    display: grid; grid-template-columns: 9.5rem 1fr; gap: 24px;
    padding: 18px 0; border-bottom: 1px solid var(--ink);
}
.nh-defs dt { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.nh-defs dd { margin: 0; }

.nh-note { max-width: 46em; margin-top: 28px; color: var(--ink-soft); }

.nh-two { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.nh-two h2 { margin-bottom: 0; }

.nh-facts { list-style: none; margin: 0 0 1.2em; padding: 0; }
.nh-facts li { position: relative; padding: 0 0 14px 28px; }
.nh-facts li::before { content: "\2014"; position: absolute; left: 0; color: var(--ketchup); font-weight: 700; }

/* Legal / support pages */
.nh-legal { border-top: 0; padding-top: 56px; }
.nh-prose { max-width: 760px; }
.nh-prose h1 { margin-bottom: 12px; }
.nh-prose h2 { font-size: 1.55rem; margin: 40px 0 10px; }
.nh-prose ul { padding-left: 1.2em; }
.nh-prose li { margin-bottom: 0.4em; }
.nh-prose code {
    font-family: var(--mono); font-size: 0.88em; background: var(--paper-deep);
    padding: 2px 6px; border: 1px solid var(--ink-soft);
}
.nh-updated { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 28px; }

.nh-faq { border-top: 1px solid var(--ink); }
.nh-faq details { border-bottom: 1px solid var(--ink); padding: 16px 0; }
.nh-faq summary { cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.nh-faq details p { margin: 12px 0 0; max-width: 60ch; }

/* Footer */
.nh-footer { border-top: 2px solid var(--ink); padding: 28px 0 40px; font-size: 0.9rem; color: var(--ink-soft); }
.nh-footer-row { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.nh-footer p { margin: 0; }
.nh-footer a:link, .nh-footer a:visited { color: var(--ink); }
.nh-footer a:hover { color: var(--ketchup); }

/* Small screens */
@media (max-width: 860px) {
    .nh-hero { padding: 40px 0 56px; }
    .nh-hero-grid, .nh-two { grid-template-columns: 1fr; gap: 36px; }
    .nh-section { padding: 52px 0; }
    .nh-defs > div { grid-template-columns: 1fr; gap: 4px; }
    .nh-steps li { padding-left: 52px; }
    .nh-shot img { box-shadow: 5px 5px 0 var(--ink); }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
