/* Toolbox Talk Ohio: a small regional trade paper's safety pages. White page, dark ink, one warm accent. */
:root {
  --ink: #1b2229;
  --text: #262d33;
  --muted: #545d66;
  --rule: #d6d9dc;
  --tint: #f4f2ee;
  --accent: #a63c0c;
  --accent-tint: #fbf2ea;
  --link: #1d58a0;
  --bar-mark: #f2c230;
  --slot: #d9d5cc;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Funnel Sans", "Segoe UI", system-ui, sans-serif;
  --wide: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1.125rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; color: var(--ink); letter-spacing: .005em; }
h2 { font-size: clamp(1.6rem, 4vw, 1.95rem); margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.35rem; margin: 1.5rem 0 .35rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }

.skipto { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 9; }
.skipto:focus { left: 1rem; }

/* masthead */
.masthead { border-top: 5px solid var(--ink); }
.masthead-row { max-width: var(--wide); margin: 0 auto; padding: 1.1rem 16px .9rem; }
.nameplate { margin: 0; font: 700 clamp(2.1rem, 6vw, 2.9rem)/1 var(--head); letter-spacing: .01em; }
.nameplate a { color: var(--ink); text-decoration: none; }
.nameplate a span { color: var(--accent); }
.tagline { display: block; margin-top: .35rem; font: 400 .98rem/1.35 var(--body); color: var(--muted); letter-spacing: 0; }
.sectionbar { background: var(--ink); }
.sectionbar ul { max-width: var(--wide); margin: 0 auto; padding: 0 10px; list-style: none; display: flex; flex-wrap: wrap; }
.sectionbar li { margin: 0; }
.sectionbar a { display: block; padding: .62rem .6rem .5rem; color: #eef1f4; text-decoration: none; font: 600 .95rem/1.2 var(--body);
  border-bottom: 3px solid transparent; }
.sectionbar a:hover { color: #fff; border-bottom-color: #6b7681; }
.sectionbar a[aria-current="page"] { color: #fff; border-bottom-color: var(--bar-mark); }

main { display: block; max-width: var(--wide); margin: 0 auto; padding: 0 16px 3rem; }

/* shared pieces */
.sectionlabel { margin: 0 0 .3rem; font: 600 .9rem/1.3 var(--body); color: var(--accent); }
.standfirst { font-size: 1.22rem; line-height: 1.55; color: #343c43; margin: .2rem 0 .8rem; }
.byline { font-size: .9rem; color: var(--muted); margin: 0; }
.photo-slot { display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--slot); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .9rem; }
.crumbs a { color: var(--muted); }

/* front page */
.frontgrid { display: grid; gap: 2.4rem; padding-top: 1.6rem; }
@media (min-width: 900px) { .frontgrid { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; } }
.leadstory-figure { margin: 0 0 1rem; }
.leadstory-head { font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.02; margin: 0 0 .6rem; }
.leadstory-head a { color: var(--ink); text-decoration: none; }
.leadstory-head a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.monthnotes { margin-top: 2.6rem; border-top: 3px solid var(--ink); }
.monthnotes h2 { margin-top: .7rem; }
.monthnotes-cols { display: grid; gap: .4rem 2rem; }
@media (min-width: 760px) { .monthnotes-cols { grid-template-columns: repeat(3, 1fr); } }
.monthnotes h3 { margin-top: .6rem; font-size: 1.3rem; }
.monthnotes p { font-size: 1rem; }

.storylist { margin-top: 2.4rem; border-top: 3px solid var(--ink); }
.storylist > h2 { margin-top: .7rem; }
.storyrows { list-style: none; padding: 0; margin: 0; }
.storyrow { display: grid; grid-template-columns: 32% 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.storyrow:first-child { padding-top: .4rem; }
@media (min-width: 760px) { .storyrow { grid-template-columns: 240px 1fr; gap: 1.4rem; } }
.storyrow--text { grid-template-columns: 1fr; }
.storyrow-pic img, .storyrow-pic .photo-slot { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.storyrow h3 { margin: 0 0 .3rem; font-size: clamp(1.3rem, 3.4vw, 1.55rem); }
.storyrow h3 a { color: var(--ink); text-decoration: none; }
.storyrow h3 a:hover { text-decoration: underline; }
.storyrow p { font-size: 1rem; margin-bottom: .35rem; color: #3a4249; }
.storyrow .sectionlabel { color: var(--accent); margin-bottom: .2rem; }
.storyrow time { font-size: .86rem; color: var(--muted); }
@media (max-width: 520px) { .storyrow-text > p:not(.sectionlabel) { display: none; } }
.morelink { margin-top: .8rem; font-weight: 600; }

.aboutnote { background: var(--tint); padding: 1.2rem 1.4rem; margin-top: 3rem; }
.aboutnote h2 { margin: 0 0 .4rem; font-size: 1.5rem; }
.aboutnote p { margin: 0; max-width: 80ch; }

/* side rail */
.railbox { border-top: 3px solid var(--ink); padding-top: .2rem; margin-bottom: 2rem; font-size: .98rem; }
.railbox h2 { font-size: 1.35rem; margin: .5rem 0 .7rem; }
.numberlist { margin: 0; }
.numberlist div { padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.numberlist dt { font: 700 1.6rem/1.05 var(--head); color: var(--accent); }
.numberlist dd { margin: .15rem 0 0; font-size: .95rem; line-height: 1.5; }
.jumplist { padding-left: 1.2rem; margin: 0; }
.jumplist li { margin-bottom: .4rem; }
.raillist { list-style: none; padding: 0; margin: 0; }
.raillist li { margin: 0; border-bottom: 1px solid var(--rule); }
.raillist a { display: grid; grid-template-columns: 88px 1fr; gap: .8rem; align-items: center; padding: .6rem 0;
  color: var(--ink); text-decoration: none; font: 600 1.02rem/1.3 var(--body); }
.raillist a:hover span { text-decoration: underline; }
.railthumb { width: 88px; aspect-ratio: 3 / 2; object-fit: cover; }

/* article pages */
.storyhead { padding: 1.6rem 0 1.2rem; max-width: 820px; }
.storyhead h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); line-height: 1.02; margin: .1rem 0 .7rem; }
.storygrid { display: grid; gap: 2.4rem; }
@media (min-width: 900px) {
  .storygrid { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
  .rail .railbox:first-child { margin-top: 0; }
}
.leadphoto { margin: 0 0 1.8rem; }
.leadphoto figcaption { font-size: .9rem; color: var(--muted); padding-top: .5rem; border-bottom: 1px solid var(--rule); padding-bottom: .6rem; }
.storybody { max-width: 70ch; }
.storybody > h2:first-child { margin-top: 0; }

.keypoint { border-left: 5px solid var(--accent); background: var(--accent-tint); padding: .9rem 1.1rem; margin: 1.6rem 0; }
.keypoint p { margin: 0; }
ol.steps { padding-left: 1.4rem; margin: 1rem 0 1.4rem; }
ol.steps li { margin-bottom: .75rem; padding-left: .2rem; }

.colorkey { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.colorkey li { display: flex; gap: .6rem; align-items: center; margin: 0; border: 1px solid var(--rule); padding: .45rem .6rem; font-size: .95rem; line-height: 1.35; }
.colorkey .swatch { flex: 0 0 1.6rem; height: 1.6rem; border: 1px solid var(--ink); }

.drawing { border: 1px solid var(--rule); padding: .8rem; margin: 1.4rem 0; }
.drawing figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }

.tablewrap { overflow-x: auto; }
table.factsheet { border-collapse: collapse; width: 100%; margin: 1rem 0 1.4rem; font-size: .98rem; }
.factsheet th, .factsheet td { border-bottom: 1px solid var(--rule); padding: .55rem .6rem; text-align: left; vertical-align: top; }
.factsheet th { border-bottom: 2px solid var(--ink); font-weight: 600; }
.tablenote { caption-side: bottom; text-align: left; font-size: .88rem; color: var(--muted); padding-top: .4rem; }

.askrow { border-bottom: 1px solid var(--rule); padding: .75rem 0; }
.askrow summary { cursor: pointer; font-weight: 600; }
.askrow p { margin: .5rem 0 0; }

.sourcelist, .storybody > h2#sources { margin-top: 2.6rem; }
.sourcelist { border-top: 1px solid var(--rule); }
.sourcelist h2, h2#sources { font-size: 1.35rem; margin: 1rem 0 .5rem; }
.sourcelist ul, h2#sources + ul { font-size: .95rem; padding-left: 1.1rem; }

/* single-column pages: about, contact, guides index, legal */
.plainpage .storyhead, .plaincol { max-width: 760px; }

.updated { font-size: .9rem; color: var(--muted); }

/* footer */
.sitefoot { background: var(--ink); color: #d3d9df; font-size: .95rem; }
.sitefoot-row { max-width: var(--wide); margin: 0 auto; padding: 2rem 16px 2.2rem; }
.sitefoot-name { font: 700 1.5rem/1 var(--head); color: #fff; margin-bottom: .6rem; }
.sitefoot a { color: #fff; }
.footlinks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footlinks li { margin: 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .sectionbar, .sitefoot, .rail { display: none; } }
.plaincol > h2:first-child { margin-top: .6rem; }
.aboutnote { display: grid; gap: 1rem 1.6rem; align-items: center; }
@media (min-width: 760px) { .aboutnote { grid-template-columns: 320px 1fr; } }
.aboutnote-pic, .aboutnote .photo-slot { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.plaincol .leadphoto { margin-top: .4rem; }
