/* Newsprint. Single ink plate, no second colour, the way an old paper ran. */

:root {
  color-scheme: only light;

  --paper:      #e8e4d9;
  --paper-deep: #ded9cb;
  --ink:        #14110d;
  --ink-soft:   #55503f;
  --ink-faint:  #8c8676;

  --measure: 44rem;
  --frame: 52rem;
  --display: "Times New Roman", Times, "Liberation Serif", serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background-color: var(--paper);
  /* Fibre grain. Subtle enough to read as stock rather than texture. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.72;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: .5rem .75rem;
  z-index: 10;
}

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

.masthead {
  max-width: var(--frame);
  margin: 0 auto;
  padding-top: 2.75rem;
  text-align: center;
}

.edition {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nameplate {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.nameplate a { text-decoration: none; }
.nameplate a:hover { background: none; color: inherit; }

/* Scotch rule: thick over thin, the standard masthead divider. */
.folio {
  margin-top: 1rem;
  padding: .4rem 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.folio-mid { text-align: center; }

.sections {
  margin: .9rem 0 2.75rem;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.sections a { margin: 0 .55rem; text-decoration: none; border-bottom: 1px solid transparent; }
.sections a:hover { background: none; color: var(--ink); border-bottom-color: var(--ink); }

/* ---- sheet ---- */

.sheet {
  max-width: var(--measure);
  margin: 0 auto;
}

.kicker {
  margin: 0 0 .5rem;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

.dateline {
  margin: .6rem 0 0;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

hr.scotch {
  border: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  height: 3px;
  margin: 1.1rem 0 1.9rem;
}
hr.rule-thin {
  border: 0;
  border-top: 1px solid var(--ink-faint);
  margin: 2.5rem 0 1rem;
}

/* ---- body copy ---- */

.copy { hyphens: auto; }
.copy p { margin: 0 0 1.15rem; text-align: justify; }

.copy h2 {
  margin: 2.4rem 0 .8rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.25;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .3rem;
}
.copy h3 {
  margin: 1.9rem 0 .5rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.copy ul { margin: 0 0 1.15rem; padding-left: 1.1rem; }
.copy li { margin-bottom: .4rem; }

.copy strong { font-weight: 700; }

.copy code {
  font-family: "Courier New", Courier, monospace;
  font-size: .9em;
  background: var(--paper-deep);
  padding: .08em .3em;
}
.copy pre {
  background: var(--paper-deep);
  border-left: 3px solid var(--ink);
  padding: .9rem 1rem;
  overflow-x: auto;
}
.copy pre code { background: none; padding: 0; }

.copy table { width: 100%; border-collapse: collapse; margin: 0 0 1.3rem; font-size: .92rem; }
.copy th, .copy td { border-bottom: 1px solid var(--ink-faint); padding: .4rem .5rem; text-align: left; }
.copy th { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }

.copy blockquote {
  margin: 0 0 1.15rem;
  padding-left: 1rem;
  border-left: 2px solid var(--ink);
  color: var(--ink-soft);
}

/* Drop cap, posts only. */
.dropcap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.9rem;
  line-height: .82;
  padding: .06em .1em 0 0;
  margin-top: .04em;
}

/* ---- notes index ---- */

.copy ul.index { list-style: none; padding: 0; }
.copy ul.index li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--ink-faint);
}
.copy ul.index a {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.copy ul.index a:hover { background: none; border-bottom-color: var(--ink); }
.copy ul.index .when {
  display: block;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .2rem;
}
.copy ul.index .filed {
  display: block;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .25rem;
}

.backlink {
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---- colophon ---- */

.colophon {
  max-width: var(--frame);
  margin: 4rem auto 0;
  padding-top: .9rem;
  padding-bottom: .4rem;
  border-top: 3px solid var(--ink);
  text-align: center;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.colophon a { margin: 0 .5rem; text-decoration: none; border-bottom: 1px solid var(--ink-faint); }

@media (max-width: 34rem) {
  .folio { flex-direction: column; gap: .15rem; text-align: center; font-size: .62rem; }
  .folio-mid { order: -1; }
  .copy p { text-align: left; hyphens: manual; }
  .sections a { display: inline-block; margin: .2rem .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; }
  .sections, .backlink { display: none; }
}
