/* SafeguardPulse — editorial newspaper theme (BEM) */
:root {
    --paper: #FAF6EE;
    --paper-deep: #F1EADB;
    --ink: #1D2B2F;
    --ink-soft: #4C5B5F;
    --teal: #0F4C5C;
    --teal-light: #DCE8E9;
    --terracotta: #C8553D;
    --terracotta-dark: #A8432E;
    --rule: #D6CCBA;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --measure: 40rem;
}

*, *::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.7;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

/* ---------- Masthead ---------- */
.masthead {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
    border-bottom: 4px double var(--teal);
}
.masthead__rule {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.masthead__title {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.4rem, 8vw, 4.75rem);
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--teal);
    text-decoration: none;
}
.masthead__title:hover { color: var(--teal); }
.masthead__tagline {
    margin: .5rem 0 1rem;
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-soft);
}
.masthead__nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .25rem 1.75rem;
    padding: .6rem 0;
    border-top: 1px solid var(--rule);
}
.masthead__link {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
}
.masthead__link--active { color: var(--terracotta); }

/* ---------- Sheet ---------- */
.sheet {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

/* ---------- Story ---------- */
.story { max-width: 48rem; margin: 0 auto; }
.story__label {
    display: inline-block;
    margin: 0 0 1.25rem;
    padding: .2rem .65rem;
    border: 1px solid var(--ink-soft);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.story__kicker {
    margin: 0;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--terracotta);
}
.story__headline {
    margin: .4rem 0 1rem;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -.015em;
    color: var(--ink);
}
.story__deck {
    margin: 0 0 1.25rem;
    font-family: var(--serif);
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
.story__byline {
    margin: 0 0 2rem;
    padding: .7rem 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-size: .85rem;
    color: var(--ink-soft);
}
.story__figure { margin: 0 0 2.5rem; }
.story__art {
    display: block;
    width: 100%;
    height: auto;
    background: var(--paper-deep);
    padding: clamp(.5rem, 2vw, 1.25rem);
    border: 1px solid var(--rule);
}
.story__caption {
    margin-top: .6rem;
    font-size: .85rem;
    font-style: italic;
    color: var(--ink-soft);
}
.story__body { max-width: var(--measure); margin: 0 auto; }
.story__body p { margin: 0 0 1.25rem; }
.story__lede { font-size: 1.15rem; }
.story__lede--drop::first-letter {
    float: left;
    margin: .3rem .6rem 0 0;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 4.6rem;
    line-height: .8;
    color: var(--teal);
}
.story__subhead {
    margin: 2.5rem 0 .75rem;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.2;
    color: var(--teal);
}
.story__list { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.story__item { margin-bottom: .6rem; }
.story__item::marker { color: var(--terracotta); }
.story__pullquote {
    margin: 2.25rem 0;
    padding: 1.5rem 0;
    border-top: 3px solid var(--terracotta);
    border-bottom: 1px solid var(--rule);
}
.story__pullquote-text {
    margin: 0 !important;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.45rem, 3.5vw, 1.9rem);
    line-height: 1.3;
    color: var(--teal);
}
.story__cta-row { text-align: center; margin: 2rem 0 !important; }

/* ---------- Checklist (numbered) ---------- */
.checklist {
    list-style: none;
    counter-reset: spot;
    margin: 0 0 1.5rem;
    padding: 0;
}
.checklist__item {
    counter-increment: spot;
    position: relative;
    margin-bottom: 1rem;
    padding: 0 0 1rem 3.4rem;
    border-bottom: 1px dotted var(--rule);
}
.checklist__item::before {
    content: counter(spot);
    position: absolute;
    left: 0;
    top: .1rem;
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal);
    color: var(--paper);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}
.checklist__title { display: block; font-weight: 600; color: var(--ink); }

/* ---------- Spotlight (product box) ---------- */
.spotlight {
    margin: 2.5rem 0;
    padding: 1.75rem 1.5rem;
    background: var(--teal);
    color: var(--paper);
    border-radius: 4px;
}
.spotlight__eyebrow {
    margin: 0 0 .25rem !important;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #F2B8A8;
}
.spotlight__title {
    margin: 0 0 .75rem;
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.1;
}
.spotlight__text { margin-bottom: 1rem !important; }
.spotlight__points { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.spotlight__point { margin-bottom: .35rem; }
.spotlight__point::marker { color: #F2B8A8; }
.spotlight__fine {
    margin: 1rem 0 0 !important;
    font-size: .78rem;
    opacity: .8;
}

/* ---------- CTA ---------- */
.cta {
    display: inline-block;
    padding: .9rem 1.6rem;
    border-radius: 3px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .02em;
    text-decoration: none;
    transition: background-color .15s ease, transform .15s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta--primary { background: var(--terracotta); color: #fff; }
.cta--primary:hover { background: var(--terracotta-dark); color: #fff; }
.cta--secondary {
    background: transparent;
    color: var(--terracotta);
    border: 2px solid var(--terracotta);
}
.cta--secondary:hover { background: var(--terracotta); color: #fff; }

/* ---------- Disclosure ---------- */
.disclosure {
    max-width: var(--measure);
    margin: 3rem auto 0;
    padding: 1.25rem 1.4rem;
    background: var(--paper-deep);
    border-left: 4px solid var(--teal);
    font-size: .9rem;
}
.disclosure__title {
    margin: 0 0 .5rem;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--teal);
}
.disclosure__text { margin: 0; color: var(--ink-soft); }

/* ---------- Doc (inner pages) ---------- */
.doc { max-width: var(--measure); margin: 0 auto; }
.doc__kicker {
    margin: 0;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--terracotta);
}
.doc__title {
    margin: .4rem 0 .5rem;
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    color: var(--ink);
}
.doc__updated { margin: 0 0 1.5rem; font-size: .85rem; color: var(--ink-soft); }
.doc__body { padding-top: 1rem; border-top: 1px solid var(--rule); }
.doc__body p { margin: 0 0 1.1rem; }
.doc__heading {
    margin: 2rem 0 .5rem;
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--teal);
}
.doc--missing { text-align: center; padding: 3rem 0; }

/* ---------- Notice ---------- */
.notice { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: 3px; }
.notice--success { background: var(--teal-light); border-left: 4px solid var(--teal); }
.notice--error { background: #F7E1DA; border-left: 4px solid var(--terracotta); }
.notice__title { margin: 0; font-weight: 600; }
.notice__text { margin: .25rem 0 0; }
.notice__list { margin: 0; padding-left: 1.1rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: .35rem; margin-top: 1.5rem; }
.form__label { margin-top: .75rem; font-size: .85rem; font-weight: 600; }
.form__input {
    width: 100%;
    padding: .75rem .85rem;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.form__input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form__input--area { resize: vertical; min-height: 10rem; }
.form__submit {
    justify-self: start;
    margin-top: 1rem;
    padding: .85rem 1.6rem;
    border: 0;
    border-radius: 3px;
    background: var(--teal);
    color: var(--paper);
    font: 600 1rem var(--sans);
    cursor: pointer;
}
.form__submit:hover { background: var(--terracotta); }
.form__note { font-size: .8rem; color: var(--ink-soft); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Colophon ---------- */
.colophon {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 2.5rem;
    border-top: 4px double var(--teal);
    text-align: center;
    font-size: .85rem;
    color: var(--ink-soft);
}
.colophon__nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem 1.5rem;
    margin-bottom: 1rem;
}
.colophon__link { color: var(--ink); text-decoration: none; }
.colophon__link:hover { color: var(--terracotta); text-decoration: underline; }
.colophon__note { max-width: 36rem; margin: 0 auto .75rem; }
.colophon__copy { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .masthead__rule { flex-direction: column; gap: .1rem; align-items: center; }
    .masthead__nav { gap: .25rem 1.1rem; }
    .story__deck { font-size: 1.1rem; }
    .story__lede--drop::first-letter { font-size: 3.6rem; }
    .spotlight { padding: 1.4rem 1.1rem; }
    .cta { display: block; text-align: center; }
}
