/* hsctrends.org: "The paper, marked".
   White paper, black print (Tinos; Arimo for small labels), one colour per subject,
   and the marker's red pen (Caveat, hand strokes) for annotation only: never for links, buttons or focus. */
@font-face { font-family: Tinos; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/tinos-latin-400.woff2") format("woff2") }
@font-face { font-family: Tinos; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/tinos-latin-400-italic.woff2") format("woff2") }
@font-face { font-family: Tinos; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/tinos-latin-700.woff2") format("woff2") }
@font-face { font-family: Arimo; font-weight: 400 700; font-style: normal; font-display: swap; src: url("/fonts/arimo-latin-var.woff2") format("woff2") }
@font-face { font-family: "Source Serif Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/source-serif-4-700-subset.woff2") format("woff2") }
@font-face { font-family: "Caveat Pen"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("/fonts/caveat-latin-var.woff2") format("woff2") }

:root {
  --ink: #141414; --quiet: #5f6368; --rule: #d4d6d9; --tint: #f3f4f5; --red: #c4122b;
  --subj: #141414; --subj-text: #141414;
  --serif: Tinos, "Liberation Serif", "Times New Roman", serif;
  --sans: Arimo, "Liberation Sans", Arial, sans-serif;
  --display: "Source Serif Display", Tinos, "Times New Roman", serif;
  --pen: "Caveat Pen", cursive;
}
.s-biology { --subj: #2f7d46; --subj-text: #2f7d46 }
.s-chemistry { --subj: #c8640f; --subj-text: #a0500c }
.s-physics { --subj: #5b3c9c; --subj-text: #5b3c9c }
.s-ees { --subj: #0f7a80; --subj-text: #0f7a80 }
.s-investigating-science { --subj: #8a7712; --subj-text: #75650f }

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100% }
body { margin: 0 auto; max-width: 60rem; padding: 0 1.25rem; font: 1.1875rem/1.5 var(--serif); color: var(--ink); background: #fff }
img, svg { display: block; max-width: 100% }
img { height: auto }
p, ul, ol { margin: 0 0 1rem }
a { color: inherit; text-decoration-thickness: .06em; text-underline-offset: .16em }
a:hover { text-decoration-thickness: .14em }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px }
.skip { position: absolute; left: -999rem; top: 0; background: var(--ink); color: #fff; padding: .5rem .9rem; font: 700 .9rem var(--sans); z-index: 5 }
.skip:focus { left: 0 }

/* ---- masthead: wordmark left, sections right, on a heavy rule in the subject colour ---- */
.mast { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .4rem 1.5rem;
  padding: 1.5rem 0 .55rem; border-bottom: 4px solid var(--subj) }
.wordmark, .fbrand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none }
.mark { width: 2.05rem; height: 2.05rem; flex: none }
.wm { font-family: var(--serif); letter-spacing: -.01em; font-size: 1.85rem; line-height: 1 }
.wm b { font-weight: 700 } .wm i { font-style: italic; font-weight: 400 }
.mast ul { display: flex; flex-wrap: wrap; gap: .1rem 1.3rem; list-style: none; margin: 0; padding: 0; font: .875rem/1.4 var(--sans) }
.mast nav a { display: inline-block; padding: .35rem 0; text-decoration: none }
.mast nav a:hover { text-decoration: underline }
.mast nav a[aria-current] { font-weight: 700; box-shadow: 0 2px 0 var(--ink) }

/* ---- cover block ---- */
.cover { padding: 1.7rem 0 1.3rem; border-bottom: 1px solid var(--ink); margin-bottom: 1.6rem }
.kicker { font: 700 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .5rem }
h1 { font: 700 clamp(1.9rem, 5.2vw, 2.75rem)/1.1 var(--display); letter-spacing: -.012em; margin: 0 0 .7rem; text-wrap: balance }
.lede { font-size: clamp(1.19rem, 2.2vw, 1.34rem); line-height: 1.45; max-width: 44rem; margin: 0 }
.bsub { font: .9375rem/1.5 var(--sans); color: var(--quiet); max-width: 46rem; margin: 0 }
.hero .subject { display: block; font: 700 clamp(3.4rem, 14vw, 6rem)/.95 var(--display); letter-spacing: -.025em; color: var(--subj); margin: 0 0 .5rem }
.hero.long .subject { font-size: clamp(2.35rem, 10.4vw, 5rem) }
.hero.xlong .subject { font-size: clamp(2.15rem, 8.4vw, 3.9rem); line-height: 1 }
.hero .tagline { display: block }

/* ---- headings ---- */
section, nav.others { margin-bottom: 2.4rem }
h2 { position: relative; font: 700 1.55rem/1.2 var(--serif); margin: 0 0 1rem; padding-bottom: .3rem; border-bottom: 2px solid var(--subj) }
h3 { font: 700 1.3rem/1.25 var(--serif); margin: 0 0 .15rem }
.meta { font: 400 .8125rem var(--sans); color: var(--quiet); letter-spacing: .02em; margin-left: .35rem; white-space: nowrap }
.doc-title { font-style: italic; margin-bottom: .7rem }
.text section > p, .text section > ul, .home section > p { max-width: 42rem }
.qn { display: inline-block; min-width: 1.7rem; font-weight: 700 }
.qn::after { content: "." }

/* ---- red pen: annotation only ---- */
.pen { font: 500 1.6rem/1 var(--pen); color: var(--red); white-space: nowrap; display: inline-block; transform: rotate(-2deg); margin-left: .5rem }
h2 .pen { position: absolute; right: .1rem; bottom: .25rem; transform-origin: right bottom; margin: 0 }
.ringed { position: relative; display: inline-block }
.pen-ring { position: absolute; left: -.6rem; top: -.5rem; width: calc(100% + 1.25rem); height: calc(100% + 1rem); max-width: none;
  fill: none; stroke: var(--red); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; overflow: visible }

/* ---- headline numbers: ruled fact boxes ---- */
.kpis { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--subj); border-bottom: 1px solid var(--ink) }
.kpi { padding: .85rem 0 .8rem .25rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 6.2rem 1fr; gap: .9rem; align-items: start }
.kpi:first-child { border-top: 0 }
.big { font: 700 2.25rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; justify-self: start }
.kl { font-size: 1.0625rem; line-height: 1.35 }
@media (min-width: 46em) {
  .kpis { grid-template-columns: repeat(4, 1fr) } .kpis.n3 { grid-template-columns: repeat(3, 1fr) }
  .kpi { display: block; padding: 1rem .9rem .9rem 1rem; border-top: 0; border-left: 1px solid var(--rule) }
  .kpi:first-child { border-left: 0; padding-left: .5rem }
  .kpi .big { display: inline-block; font-size: 2.6rem; margin-bottom: .4rem }
  .kpi .kl { display: block }
}

/* ---- home: the subjects, one ruled row each ---- */
.subjects { list-style: none; padding: 0; margin: 0 }
.subj { display: grid; gap: .3rem 1.5rem; padding: 1rem 0 1.15rem 1rem; border-left: .5rem solid var(--subj); border-bottom: 1px solid var(--rule); margin-bottom: .0rem }
.subj + .subj { margin-top: .5rem }
.subj h3 { font: 700 clamp(1.9rem, 6.5vw, 2.5rem)/1.02 var(--display); letter-spacing: -.02em; margin: 0 0 .2rem }
.subj h3 a { color: var(--subj); text-decoration: none }
.subj h3 a:hover { text-decoration: underline; text-decoration-thickness: .06em }
.subj .fact { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: baseline }
.subj .big { font-size: 1.7rem }
.subj .kl { font-size: 1rem }
.docs { margin: .35rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font: 700 .9375rem/1.4 var(--sans) }
.docs a { color: var(--subj-text); padding: .2rem 0 }
.docs .d { white-space: nowrap }
.docs .d span { font-weight: 400; color: var(--quiet); font-size: .8125rem; margin-left: .2rem }
@media (min-width: 46em) {
  .subj { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start }
  .subj h3 { grid-row: span 2 }
}

/* ---- lists ---- */
.two { display: grid; gap: 1.2rem 2.5rem; margin-bottom: 1.2rem }
@media (min-width: 46em) { .two { grid-template-columns: 1fr 1fr } }
.ticks, .crosses, .links { list-style: none; padding: 0 }
.ticks li, .crosses li { position: relative; padding-left: 1.75rem; margin-bottom: .35rem }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .42em; width: .78rem; height: .78rem; border: 1.5px solid var(--ink) }
.crosses li::before { content: "\00d7"; position: absolute; left: .1rem; top: -.02em; font: 700 1.25rem/1.3 var(--sans) }
.links li { margin-bottom: .3rem }
ol.act { list-style: none; padding: 0; counter-reset: act }
ol.act li { counter-increment: act; position: relative; padding-left: 1.75rem; margin-bottom: .3rem; font-weight: 700 }
ol.act li::before { content: counter(act) "."; position: absolute; left: .1rem }
.terms { font: .9375rem/1.5 var(--sans); color: var(--quiet) }

/* ---- subject page: a document, its first page and its download ---- */
.docrow { display: grid; gap: 1.1rem 2rem; padding-bottom: 1.8rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--rule) }
.docrow:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0 }
.prev { display: block; width: min(60vw, 300px); border: 1px solid var(--ink); align-self: start }
.prev img { width: 100% }
@media (min-width: 48em) { .docrow { grid-template-columns: 300px minmax(0, 1fr) } .prev { width: 300px } }
.docrow .kpis { grid-template-columns: 1fr 1fr; border-top-width: 1px; border-top-color: var(--ink) }
.docrow .kpi { display: block; padding: .6rem .7rem .6rem .1rem; border-left: 0; border-top: 1px solid var(--rule) }
.docrow .kpi:nth-child(-n+2) { border-top: 0 }
.docrow .kpi:nth-child(even) { border-left: 1px solid var(--rule); padding-left: .8rem }
.docrow .kpi .big { display: block; font-size: 1.6rem; margin-bottom: .25rem }
.docrow .kpi .kl { font-size: .9375rem; display: block }
.dl { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1rem; margin-top: .3rem; padding: .8rem 1.1rem;
  background: var(--subj-text); color: #fff; text-decoration: none; border: 2px solid var(--subj-text) }
.dl-t { font: 700 1.0625rem/1.3 var(--sans) }
.dl-t::before { content: "\2193\00a0" }
.dl-m { font: .8125rem/1.3 var(--sans) }
.dl:hover { background: #fff; color: var(--subj-text) }

.others ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem .7rem }
.others a { display: block; padding: .5rem .85rem .5rem .75rem; border: 1px solid var(--ink); border-left: .5rem solid var(--subj);
  font: 700 1.05rem/1.25 var(--display); text-decoration: none }
.others a:hover { text-decoration: underline }

/* ---- tables ---- */
.tablewrap { overflow-x: auto; margin: 0 0 1.1rem }
table { border-collapse: collapse; width: 100%; max-width: 44rem; font-size: 1.0625rem }
caption { text-align: left; font-weight: 700; padding-bottom: .4rem }
th, td { text-align: right; padding: .42rem .5rem; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums lining-nums }
th:first-child { text-align: left; padding-left: .7rem }
thead th { font: 700 .78rem/1.3 var(--sans); color: var(--quiet); border-bottom: 2px solid var(--ink); vertical-align: bottom }
tbody th { font-weight: 400; border-left: .35rem solid var(--subj) }
td.avg { font-weight: 700 }

/* ---- footer: the colophon ---- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; border-top: 1px solid var(--ink); margin-top: 3rem; padding: .9rem 0 2.2rem;
  font: .8125rem/1.5 var(--sans); color: var(--quiet) }
.foot p { margin: 0 }
.fbrand { color: var(--ink); gap: .3rem }
.fbrand .mark { width: 1.05rem; height: 1.05rem }
.fbrand .wm { font-size: 1.1rem }

@media (max-width: 30em) {
  body { padding: 0 1rem; font-size: 1.125rem }
  h2 .pen { position: static; display: block; margin: .25rem 0 0; transform-origin: left bottom }
  th, td { padding: .4rem .2rem; font-size: .92rem }
  thead th { font-size: .7rem }
  th:first-child { padding-left: .45rem }
}
@media print { .mast nav, .skip, .others { display: none } .dl { background: none; color: var(--ink) } }
