/* Swell & Current — one stylesheet, no web fonts, mobile first. */
:root {
  --deep: #0b2a3a;
  --deep-2: #12394d;
  --sea: #1f7f88;
  --sea-soft: #d8eeec;
  --sand: #f7f4ee;
  --paper: #ffffff;
  --ink: #18242b;
  --muted: #56656d;
  --line: #d9dfe1;
  --measure: 40rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 1.0625rem/1.65 Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}
a { color: var(--sea); text-underline-offset: .18em; }
a:hover { color: var(--deep); }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 5; }
.skip:focus { left: .5rem; }

/* masthead */
.masthead { background: var(--deep); color: var(--sea-soft); border-bottom: 4px solid var(--sea); }
.masthead-row { max-width: 68rem; margin: 0 auto; padding: .75rem 1rem; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.brand { color: #fff; text-decoration: none; font: 700 1.2rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .01em; display: inline-flex; align-items: center; gap: .55rem; }
.brand i { font-family: Georgia, serif; font-weight: 400; color: #8fd3cf; }
.brand-mark { width: 1.5rem; height: 1.5rem; border-radius: .4rem; flex: none;
  background: linear-gradient(180deg, var(--deep-2) 0 40%, #d6eeec 40% 55%, var(--deep-2) 55% 70%, #3eaab0 70% 82%, var(--deep-2) 82%); }
.topnav { display: flex; flex-wrap: wrap; gap: .15rem .9rem; font: 500 .95rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.topnav a { color: #cfe6e6; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a.in { color: #fff; border-bottom-color: #3eaab0; }
.topnav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

main { max-width: 68rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* headings and text */
h1, h2, h3, .tile strong, .kicker, .tag, .mins, .byline, .trail {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); line-height: 1.15; margin: .2rem 0 .6rem; color: var(--deep); letter-spacing: -.01em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.2rem 0 .6rem; color: var(--deep); }
h3 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; color: var(--deep-2); }
.prose { max-width: var(--measure); }
.prose p, .prose ul, .prose ol, .prose dl, .prose table { margin: 0 0 1rem; }
.prose li { margin-bottom: .35rem; }
.prose dt { font-weight: 700; color: var(--deep); margin-top: .9rem; }
.prose dd { margin: .15rem 0 0 0; }
.prose blockquote, .note { margin: 1.4rem 0; padding: .9rem 1.1rem; background: var(--sea-soft); border-left: 4px solid var(--sea); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.prose th { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .85rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.lede { font-size: 1.18rem; line-height: 1.55; color: var(--deep-2); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--sea); margin: 0; }

/* article */
.piece-head { max-width: 46rem; margin-bottom: 1.4rem; }
.trail { font-size: .85rem; color: var(--muted); margin: 0 0 .4rem; }
.trail a { color: var(--muted); }
.standfirst { font-size: 1.15rem; line-height: 1.5; color: var(--deep-2); margin: 0 0 .6rem; }
.byline { font-size: .82rem; color: var(--muted); margin: 0; padding-top: .6rem; border-top: 1px solid var(--line); }
.contents { max-width: var(--measure); margin: 0 0 1.6rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: .4rem; padding: .6rem 1rem; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .92rem; }
.contents summary { cursor: pointer; font-weight: 600; color: var(--deep); }
.contents ol { margin: .5rem 0 .2rem; padding-left: 1.3rem; }
.further { margin-top: 3rem; padding-top: 1rem; border-top: 3px double var(--line); }
.further-head { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* tiles (lists of articles) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.tile { display: flex; flex-direction: column; gap: .25rem; height: 100%; background: var(--paper); border: 1px solid var(--line);
  border-radius: .5rem; padding: .9rem 1rem; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--sea); box-shadow: 0 2px 0 var(--sea); }
.tile strong { color: var(--deep); font-size: 1.02rem; line-height: 1.3; }
.tile .blurb { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sea); font-weight: 600; }
.mins { font-size: .75rem; color: var(--muted); margin-top: auto; padding-top: .3rem; }
.tiles-short .tile { padding: .7rem .9rem; }

/* hub + home */
.hub-head { max-width: 46rem; margin-bottom: 1rem; }
.rule { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 2rem 0 .8rem;
  padding-top: .8rem; border-top: 1px solid var(--line); }
.hub .prose { max-width: none; }
.hub .prose > p { max-width: var(--measure); }
.home-intro { background: var(--deep); color: #e6f3f2; border-radius: .6rem; padding: 1.4rem 1.2rem; margin-bottom: 1.8rem; }
.home-intro h1 { color: #fff; }
.home-intro p { max-width: 42rem; }
.home-intro a { color: #9fe0dc; }
.home-intro .lede { color: #fff; }
.home-intro .kicker { color: #8fd3cf; }
.shelves { display: grid; gap: 1.8rem; }
.shelf h2 { margin: 0; font-size: 1.35rem; }
.shelf h2 a { color: var(--deep); text-decoration: none; }
.shelf .kicker { margin: .15rem 0 .8rem; }
.facts { display: grid; gap: .7rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.facts li { background: var(--paper); border-left: 4px solid var(--sea); padding: .7rem .9rem; font-size: .97rem; }

/* footer */
.colophon { background: var(--deep); color: #b9d4d6; font: .9rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
.colophon-row { max-width: 68rem; margin: 0 auto; padding: 1.6rem 1rem 2rem; }
.colophon-row p { max-width: 44rem; margin: 0 0 .7rem; }
.colophon-name { color: #fff; font-weight: 700; }
.colophon-name i { font-family: Georgia, serif; font-weight: 400; color: #8fd3cf; }
.colophon-small { font-size: .8rem; color: #8fb0b3; }
.colophon a { color: #cfe6e6; }

@media (min-width: 40rem) {
  main { padding: 2.2rem 1.5rem 4rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .home-intro { padding: 2rem 2rem; }
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 62rem) {
  .shelves { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 2.5rem; }
  .shelves .tiles { grid-template-columns: 1fr; }
  .hub .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media print {
  .masthead, .colophon, .further, .contents { display: none; }
  body { background: #fff; }
}
