/* SafeCampus: a campus-safety magazine.
   The nameplate and condensed headlines carry the personality. Each section has
   one color, used only for its kicker labels and its section header. */

:root {
  --paper: #ffffff;
  --canvas: #eef2f1;
  --ink: #0f1d24;
  --muted: #4f5f68;
  --rule: #d4dcd9;
  --green: #0b7f48;      /* brand: links, nameplate rule, buttons */
  --green-dark: #086438;
  --amber: #f2a900;      /* newsletter button, series labels */

  --head: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --text: 700px;
  --gutter: clamp(16px, 4vw, 36px);
}

.kicker--culture, .nav--culture, .section-block--culture, .sectionhead--culture { --s: #7a3ea8; }
.kicker--preparedness, .nav--preparedness, .section-block--preparedness, .sectionhead--preparedness { --s: #c4122f; }
.kicker--prevention, .nav--prevention, .section-block--prevention, .sectionhead--prevention { --s: #0067a5; }
.kicker--safeguarding, .nav--safeguarding, .section-block--safeguarding, .sectionhead--safeguarding { --s: #a85400; }

/* ------------------------------------------------------------- base -- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--head); font-stretch: 78%; font-variation-settings: "wdth" 78; font-weight: 800;
  line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 0.4em; text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; font-family: var(--head); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { max-width: calc(var(--text) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: calc(1080px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.button {
  display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  padding: 0.85em 1.4em; background: var(--green); color: #fff; text-decoration: none; border-radius: 2px;
}
.button:hover { background: var(--green-dark); color: #fff; }
.button--light { background: var(--amber); color: var(--ink); }
.button--light:hover { background: #ffc233; color: var(--ink); }

/* ---------------------------------------------------------- masthead -- */

.mast__bar { background: var(--ink); color: #c9d4d8; font-family: var(--head); font-size: 0.875rem; }
.mast__barrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.mast__date { margin: 0; }
.mast__links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.mast__links a { color: #fff; text-decoration: none; font-weight: 600; }
.mast__links a:hover, .mast__links a[aria-current] { text-decoration: underline; text-underline-offset: 0.3em; }
.mast__links .mast__cta { background: var(--amber); color: var(--ink); padding: 0.35em 0.8em; border-radius: 2px; }
.mast__links .mast__cta:hover { background: #ffc233; text-decoration: none; }

.mast__plate {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: clamp(18px, 3vw, 30px); padding-bottom: clamp(16px, 2.4vw, 26px);
}

.nameplate {
  font-family: var(--head); font-stretch: 68%; font-variation-settings: "wdth" 68; font-weight: 900;
  font-size: clamp(3.6rem, 12vw, 8.6rem); line-height: 0.82; letter-spacing: -0.025em;
  color: var(--ink); text-decoration: none;
}
.nameplate span { font-weight: 500; }
.nameplate:hover { color: var(--ink); }
.nameplate--small { font-size: 2.6rem; display: inline-block; margin-bottom: 12px; }

.mast__tag {
  margin: 0 0 0.6em; max-width: 22em; font-family: var(--body); font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.35; color: var(--muted); text-align: right;
}

.sections { border-top: 5px solid var(--green); border-bottom: 1px solid var(--rule); }
.sections ul { list-style: none; margin: 0 auto; display: flex; gap: 6px 30px; overflow-x: auto; scrollbar-width: none; }
.sections ul::-webkit-scrollbar { display: none; }
.sections a {
  display: block; white-space: nowrap; padding: 13px 0 10px;
  font-family: var(--head); font-weight: 700; font-size: 1.02rem;
  color: var(--ink); text-decoration: none; border-bottom: 4px solid transparent;
}
.sections a:hover { border-bottom-color: var(--s, var(--ink)); }
.sections a[aria-current] { border-bottom-color: var(--s, var(--ink)); color: var(--s, var(--ink)); }
.nav__series { margin-left: auto; }
.nav__series a { color: var(--muted); font-weight: 600; }

/* ----------------------------------------------------- shared pieces -- */

.kicker {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: 0.86rem;
  color: var(--s, var(--green)); text-decoration: none; margin-bottom: 6px;
}
.kicker:hover { color: var(--s, var(--green)); text-decoration: underline; }

.byline { margin: 0; font-family: var(--head); font-size: 0.86rem; color: var(--muted); }

.block { padding-top: clamp(40px, 6vw, 72px); }
.block:last-child { padding-bottom: clamp(48px, 7vw, 88px); }
.block__grid { display: grid; gap: 40px 32px; }
.block__grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.block__head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px 24px; margin-bottom: 28px; }
.block__head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.block__head h2 a { color: inherit; text-decoration: none; }
.block__head p { margin: 0; color: var(--muted); font-size: 1rem; }
.block__more { font-family: var(--head); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.block__head--plain { display: block; border-top: 1px solid var(--ink); padding-top: 14px; }
.block__head--plain h2 { font-size: 1.8rem; }

/* ------------------------------------------------------------ stories -- */

.story { display: flex; flex-direction: column; gap: 14px; }
.story__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--canvas); }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__text { display: flex; flex-direction: column; gap: 8px; }
.story__text .kicker { margin-bottom: 0; }
.story__part { font-family: var(--head); font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.story__title { font-size: 1.55rem; margin: 0; line-height: 1.05; }
.story__title a { color: var(--ink); text-decoration: none; }
.story__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.story__dek { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }

.story--sm .story__title { font-size: 1.3rem; }
.story--lg .story__title { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.story--feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 48px; }
.story--feature .story__title { font-size: clamp(2rem, 4vw, 3rem); }
.story--feature .story__dek { font-size: 1.1rem; }

/* ------------------------------------------------------------- front -- */

.front {
  display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 44px;
  padding-top: clamp(24px, 4vw, 44px);
}

.lead__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--canvas); margin-bottom: 20px; }
.lead__media img { width: 100%; height: 100%; object-fit: cover; }
.lead__title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 0.95; margin: 4px 0 16px; }
.lead__title a { color: var(--ink); text-decoration: none; }
.lead__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.1em; }
.lead__dek { font-size: 1.25rem; line-height: 1.5; margin: 0 0 14px; max-width: 40em; }

.rail-head { font-size: 1.6rem; margin: 0 0 8px; padding-bottom: 10px; border-bottom: 4px solid var(--ink); }
.latest__list { list-style: none; margin: 0; padding: 0; }
.latest__list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.latest__list .kicker { margin: 0; font-size: 0.8rem; }
.latest__title { font-family: var(--head); font-stretch: 85%; font-variation-settings: "wdth" 85; font-weight: 700; font-size: 1.2rem; line-height: 1.15; color: var(--ink); text-decoration: none; }
.latest__title:hover { text-decoration: underline; color: var(--ink); }
.latest__date { font-family: var(--head); font-size: 0.8rem; color: var(--muted); }

/* ------------------------------------------------------- section blocks -- */

.section-block .block__head { border-top: 6px solid var(--s); padding-top: 14px; }
.section-block .block__head h2 { color: var(--s); }
.section-block__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; }
.section-block__grid > .story--lg { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.section-block__rest { display: flex; flex-direction: column; }
.section-block__rest .story { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.section-block__rest .story:first-child { padding-top: 0; }

/* ------------------------------------------------------------- series -- */

.series { background: var(--ink); color: #fff; margin-top: clamp(48px, 7vw, 88px); }
.series__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding-block: clamp(44px, 6vw, 72px); align-items: start; }
.series__label { margin: 0 0 8px; font-family: var(--head); font-weight: 700; color: var(--amber); }
.series__title { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 0.92; margin-bottom: 16px; }
.series__title a { color: #fff; text-decoration: none; }
.series__title a:hover { text-decoration: underline; }
.series__desc { color: #c9d4d8; font-size: 1.12rem; margin: 0 0 24px; max-width: 32em; }
.series__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.series__list a { display: grid; grid-template-columns: 2.6rem 1fr; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); color: #fff; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
.series__list a:hover span:last-child { text-decoration: underline; }
.series__num { font-stretch: 70%; font-variation-settings: "wdth" 70; font-weight: 900; font-size: 1.9rem; line-height: 1; color: var(--amber); }
.series--page { margin-top: 0; padding-block: clamp(40px, 6vw, 72px); }

.serieslist { list-style: none; margin: 0; padding: 0; }
.serieslist__item { display: grid; grid-template-columns: 4rem 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.serieslist__num { font-family: var(--head); font-stretch: 68%; font-variation-settings: "wdth" 68; font-weight: 900; font-size: 3.4rem; line-height: 0.9; color: var(--green); }
.serieslist h2 { font-size: 1.8rem; margin-bottom: 8px; }
.serieslist h2 a { color: var(--ink); text-decoration: none; }
.serieslist h2 a:hover { text-decoration: underline; }
.serieslist p { margin: 0 0 8px; color: var(--muted); }

/* ------------------------------------------------------ section fronts -- */

.sectionhead { background: var(--s, var(--canvas)); color: var(--ink); padding-block: clamp(36px, 6vw, 64px); }
.sectionhead[class*="sectionhead--"] { color: #fff; }
.sectionhead h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 0.9; margin-bottom: 14px; }
.sectionhead__desc { margin: 0 0 8px; max-width: 36em; font-size: 1.15rem; }
.sectionhead__crumb { margin: 0 0 8px; font-family: var(--head); font-weight: 700; }
.sectionhead__crumb a, .sectionhead[class*="sectionhead--"] a { color: #fff; }
.sectionhead .button { margin-top: 16px; }
.sectionhead[class*="sectionhead--"] .button { background: #fff; color: var(--ink); }

.subnav { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.subnav a { display: inline-block; padding: 0.4em 0.9em; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.subnav a:hover, .subnav a[aria-current] { background: #fff; color: var(--s) !important; }

.empty { font-size: 1.1rem; }

/* ------------------------------------------------------------ article -- */

.article__head { padding-top: clamp(36px, 6vw, 64px); text-align: center; }
.article__head h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 0.95; margin: 6px 0 18px; }
.article__dek { font-size: 1.3rem; font-style: italic; color: var(--muted); margin: 0 0 16px; }
.article--page .article__head { text-align: left; }

.article__hero { width: fit-content; max-width: 100%; margin: 32px auto 0; }
.article__hero img { width: auto; max-width: 100%; max-height: 640px; margin-inline: auto; }
.credit { margin-top: 8px; font-family: var(--head); font-size: 0.8rem; color: var(--muted); text-align: right; }
.credit a { color: var(--muted); }
.article__hero--small img { width: auto; margin-inline: auto; }

.article__body { padding-top: 36px; padding-bottom: clamp(32px, 5vw, 56px); }

.prose { font-size: 1.18rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.05em; }
.prose p, .prose ul, .prose ol, .prose figure, .prose blockquote, .prose table { margin-bottom: 0; }
.prose--dropcap > p:first-child::first-letter {
  float: left; font-family: var(--head); font-stretch: 68%; font-variation-settings: "wdth" 68; font-weight: 900;
  font-size: 4.6em; line-height: 0.78; margin: 0.06em 0.08em 0 0; color: var(--green);
}
.prose h2 { font-size: 2rem; margin-top: 1.7em; margin-bottom: 0; }
.prose h3 { font-size: 1.5rem; margin-top: 1.5em; margin-bottom: 0; }
.prose h4 { font-family: var(--head); font-size: 1.15rem; margin-top: 1.3em; margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--green); font-family: var(--head); font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 5px solid var(--green); font-size: 1.3rem; font-style: italic; line-height: 1.5; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-family: var(--head); font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.2em; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 1rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { font-family: var(--head); background: var(--canvas); }
.prose iframe { max-width: 100%; border: 0; }

.seriesbox { margin: 0 0 32px; padding: 18px 22px; background: var(--canvas); border-left: 6px solid var(--amber); font-family: var(--head); }
.seriesbox__label { margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.seriesbox__title { margin: 2px 0 10px; font-stretch: 80%; font-variation-settings: "wdth" 80; font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.seriesbox__title a { color: var(--ink); text-decoration: none; }
.seriesbox ol { list-style: none; margin: 0; padding: 0; font-size: 0.98rem; line-height: 1.4; }
.seriesbox li { display: grid; grid-template-columns: 2.6em 1fr; gap: 6px; }
.seriesbox__num { font-weight: 800; color: var(--muted); }
.seriesbox li + li { margin-top: 6px; }
.seriesbox li[aria-current] { font-weight: 700; }

.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--head); }
.article__tags > span { font-weight: 700; margin-right: 6px; }
.tagpill { padding: 0.3em 0.8em; background: var(--canvas); border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.tagpill:hover { background: var(--ink); color: #fff; }

/* -------------------------------------------------------- newsletter -- */

.signup { background: var(--green); color: #fff; margin-top: clamp(48px, 7vw, 88px); }
.signup__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: clamp(36px, 5vw, 56px); }
.signup h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.signup p { margin: 0; font-size: 1.08rem; color: #e3f2ea; }
.signup__form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup__form input[type="email"] { flex: 1 1 240px; }
.signup .button { background: var(--ink); }
.signup .button:hover { background: #000; }

.panel { background: var(--canvas); padding: clamp(24px, 4vw, 36px); }
.panel h2 { font-size: 2rem; }
.panel p { margin: 0 0 18px; }

/* --------------------------------------------------------- forms -- */

input[type="text"], input[type="email"], input[type="search"], textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff;
  padding: 0.8em 0.9em; border: 1.5px solid #9fb0b7; border-radius: 2px;
}
input:focus, textarea:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--ink); }
textarea { resize: vertical; min-height: 9em; }

.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--head); font-weight: 700; }
.req { font-weight: 500; color: var(--muted); }
.field--check { flex-direction: row; align-items: center; gap: 12px; }
.field--check input { width: 22px; height: 22px; accent-color: var(--green); }
.field--check label { font-weight: 600; }
.form .button { align-self: flex-start; }
.form__note { margin: 0; color: var(--muted); font-size: 0.95rem; }

.notice { padding: 16px 20px; margin-bottom: 24px; background: #fdecee; border-left: 6px solid #c4122f; font-family: var(--head); font-weight: 600; color: #5e0a17; }

.searchbox { display: flex; align-items: center; gap: 10px; max-width: 680px; margin-top: 8px; }
.searchbox input { flex: 1; min-width: 0; }
.search-status { font-family: var(--head); font-weight: 600; color: var(--muted); margin: 0 0 24px; }
.search-status:empty { display: none; }

/* ------------------------------------------------------------ footer -- */

.foot { background: var(--ink); color: #c9d4d8; margin-top: 0; padding-block: 48px 28px; font-size: 0.98rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot .nameplate { color: #fff; }
.foot p { margin: 0; }
.foot__head { font-family: var(--head); font-weight: 800; color: #fff; margin-bottom: 10px !important; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--head); }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot__copy { margin-top: 40px !important; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-family: var(--head); font-size: 0.85rem; }

/* main's last block shouldn't double up with a colored band */
main > .signup:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- smaller -- */

@media (max-width: 980px) {
  .front { grid-template-columns: 1fr; }
  .section-block__grid { grid-template-columns: 1fr; }
  .series__grid { grid-template-columns: 1fr; gap: 28px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .mast__date { display: none; }
  .mast__barrow { justify-content: flex-end; }
  .mast__links { gap: 16px; }
  .mast__tag { text-align: left; }
  .block__head { grid-template-columns: 1fr; }
  .section-block__grid > .story--lg, .story--feature { grid-template-columns: 1fr; }
  .signup__grid { grid-template-columns: 1fr; }
  .nav__series { margin-left: 0; }
  .prose { font-size: 1.1rem; }
  .serieslist__item { grid-template-columns: 2.8rem 1fr; gap: 12px; }
  .serieslist__num { font-size: 2.4rem; }
  .searchbox { flex-direction: column; align-items: stretch; }
  .foot__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .tagpill, .subnav a, .sections a { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}

@media print {
  .mast__bar, .sections, .signup, .foot, .block:not(.article) { display: none; }
}

.series__num--intro, .serieslist__num--intro { font-size: 1rem; font-stretch: 85%; font-variation-settings: "wdth" 85; font-weight: 800; padding-top: 0.3em; }
.serieslist__num--intro { font-size: 1.15rem; }
.kicker--technology, .nav--technology, .section-block--technology, .sectionhead--technology { --s: #2d5f6e; }
