/* The Choice Journal: one stylesheet, set for reading. */

:root {
  --paper: #f6f1e8;
  --wash: #ece4d6;
  --ink: #1c1b19;
  --ink-soft: #4f4a44;
  --burgundy: #7b1e2c;
  --gold: #b8964e;
  --gold-ink: #75602a;
  --measure: 66ch;
  --column: 720px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  color-scheme: light only;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 100%;
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-feature-settings: "kern", "liga", "clig", "onum";
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  font-size: 1.125rem;
  line-height: 1.65;
  hanging-punctuation: first last;
}

* { box-sizing: border-box; }

/* Skip link */
.skip {
  position: absolute;
  left: -200vw;
  top: .5rem;
  padding: .4rem .9rem;
  background: var(--burgundy);
  color: var(--paper);
  font-variant: small-caps;
  letter-spacing: .08em;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { left: .5rem; outline: 2px solid var(--gold); }

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

/* Column */
.col {
  max-width: var(--column);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Masthead */
.masthead {
  text-align: center;
  padding-top: 1.75rem;
}
.masthead .rule {
  border: 0;
  border-top: 3px double var(--ink);
  margin: 0;
}
.wordmark {
  margin: 0;
  padding: .85rem 0 .7rem;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  font-size: clamp(2.1rem, 6.5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.012em;
  color: var(--ink);
}
.wordmark a { color: inherit; text-decoration: none; }
.wordmark a:hover { color: var(--burgundy); }
.edition {
  margin: .7rem 0 0;
  font-size: .85rem;
  font-variant: small-caps;
  letter-spacing: .14em;
  color: var(--gold-ink);
}
.edition .sep { color: var(--gold); padding-inline: .35em; }

/* Nav: one centred row of small-caps links */
.nav {
  margin: 1.1rem 0 0;
  padding: .55rem 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem 1.05rem;
}
.nav a {
  font-variant: small-caps;
  letter-spacing: .09em;
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
  padding: .15rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

/* Prose */
main { padding-block: 2.5rem 3rem; }
.prose { max-width: var(--measure); margin-inline: auto; }
.prose p {
  margin: 0;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
  orphans: 2;
  widows: 2;
}
.prose p + p { text-indent: 1.4em; }
.prose p.entry + p.entry,
.prose p.lead + p,
.prose p.note + p { text-indent: 0; margin-top: 1rem; }
.prose p.lead { margin-bottom: 1rem; }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose > * + h2, .prose > * + .cta { margin-top: 2.4rem; }

a { color: var(--burgundy); }
.prose a, .foot a, .toc a.read {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gold);
  text-underline-offset: .18em;
}
.prose a:hover, .foot a:hover { text-decoration-color: var(--burgundy); }

em { font-style: italic; }
strong { font-weight: 600; }

/* Labels */
.label {
  display: block;
  font-variant: small-caps;
  letter-spacing: .14em;
  font-size: .9rem;
  color: var(--gold-ink);
}

/* Article head */
.head { text-align: center; margin-bottom: 1.75rem; }
.head .label { margin-bottom: .9rem; }
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  font-size: clamp(1.85rem, 5.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 1rem;
  text-wrap: balance;
  color: var(--ink);
}
.standfirst {
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 auto 1.2rem;
  max-width: 34em;
  text-wrap: pretty;
}
.byline {
  font-size: .9rem;
  font-variant: small-caps;
  letter-spacing: .12em;
  color: var(--ink);
  margin: 0;
}
.byline .desk { color: var(--gold-ink); }
.dates {
  margin: .35rem 0 0;
  font-size: .9rem;
  color: var(--ink-soft);
}
.dates .sep, .byline .sep { color: var(--gold); padding-inline: .3em; }

/* The one image */
.plate { margin: 0 0 2.2rem; }
.plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--ink);
  filter: sepia(.25) contrast(.95);
  background: var(--wash);
}
.plate figcaption {
  font-style: italic;
  font-size: .95rem;
  color: var(--ink-soft);
  margin-top: .55rem;
  text-align: center;
}

/* Section headings: small, centred, hairline either side */
h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.4rem 0 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: center;
  color: var(--ink);
}
h2::before, h2::after {
  content: "";
  flex: 1 1 1.5rem;
  border-top: 1px solid var(--gold);
}
h2 .n { color: var(--gold-ink); font-variant: small-caps; letter-spacing: .1em; font-size: .9rem; margin-right: .5em; }
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 1.8rem 0 .6rem;
}

/* Drop cap */
.prose p.first::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 4.35em;
  line-height: .78;
  padding: .09em .07em 0 0;
  margin-right: .02em;
  color: var(--burgundy);
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .prose p.first::first-letter {
    float: none;
    -webkit-initial-letter: 3;
    initial-letter: 3;
    font-size: inherit;
    line-height: inherit;
    padding: 0 .08em 0 0;
    margin-right: 0;
  }
}

/* Pull quotes, floated into the right margin on desktop */
.pull {
  margin: .4rem 0 1rem 1.6rem;
  padding: .2rem 0 .2rem 1rem;
  border-left: 3px solid var(--burgundy);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 60;
  font-size: 1.32rem;
  line-height: 1.32;
  color: var(--ink);
  text-wrap: pretty;
  hyphens: manual;
}
.pull p { margin: 0; text-indent: 0; hyphens: manual; }
@media (min-width: 720px) {
  .pull { float: right; width: 40%; clear: right; }
}
@media (min-width: 1120px) {
  .pull { width: 46%; margin-right: -11rem; }
}

/* Asides in the pale wash */
aside.note {
  background: var(--wash);
  padding: 1.1rem 1.35rem 1.2rem;
  margin: 1.6rem 0;
  clear: both;
  font-size: 1.02rem;
  line-height: 1.55;
}
aside.note .label { margin-bottom: .35rem; }
aside.note p { text-indent: 0; }
aside.note p + p { margin-top: .6rem; }

/* Range entries */
.entry .run-in {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 24, "SOFT" 40;
  font-size: 1.06em;
}
.rosette {
  display: inline-block;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: .08em;
  font-size: .78rem;
  line-height: 1;
  padding: .3em .7em .38em;
  margin: 0 .35em 0 .2em;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  color: var(--burgundy);
  background: transparent;
  vertical-align: .2em;
  white-space: nowrap;
}
.rosette.choice { background: var(--burgundy); color: var(--paper); }
.rosette.not { border-style: dashed; }

/* Footnotes */
sup.fn {
  font-size: .68em;
  line-height: 0;
  vertical-align: .55em;
  font-variant-numeric: lining-nums;
  margin-left: .08em;
}
sup.fn a { text-decoration: none; color: var(--burgundy); padding: 0 .1em; }
sup.fn a:hover { text-decoration: underline; }
ol.notes {
  font-size: .98rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 1.6em;
  margin: 0;
}
ol.notes li { padding-left: .25em; margin-bottom: .55rem; }
ol.notes li::marker { color: var(--burgundy); font-variant-numeric: lining-nums; }
ol.notes li:target { background: var(--wash); outline: .35rem solid var(--wash); }
ol.notes a.back { text-decoration: none; margin-left: .35em; color: var(--burgundy); }

/* Also worth a look */
.also p, .prose .also p + p { text-indent: 0; margin-top: .55rem; }
.also p .run-in { font-weight: 600; }

/* Fleuron and CTA */
.fleuron {
  text-align: center;
  color: var(--burgundy);
  font-size: 1.4rem;
  margin: 2.2rem 0 1.6rem;
  clear: both;
  letter-spacing: .5em;
}
.cta { text-align: center; margin: 1.8rem 0 .6rem; clear: both; }
.cta a.go {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 24, "SOFT" 40;
  font-size: 1.08rem;
  color: var(--paper);
  background: var(--burgundy);
  padding: .55rem 1.5rem .62rem;
  text-decoration: none;
  border: 1px solid var(--burgundy);
}
.cta a.go:hover, .cta a.go:focus-visible { background: var(--paper); color: var(--burgundy); }
.cta .small {
  display: block;
  margin-top: .7rem;
  font-size: .88rem;
  font-style: italic;
  color: var(--ink-soft);
  text-indent: 0;
}
.filed {
  margin-top: 2.5rem;
  text-align: center;
  font-size: .9rem;
  font-variant: small-caps;
  letter-spacing: .12em;
  color: var(--gold-ink);
}
.filed a { color: var(--burgundy); text-decoration: none; }
.filed a:hover { text-decoration: underline; }

/* Contents (homepage) and desk hubs */
.leader { text-align: center; margin-bottom: 1rem; }
.leader .label { margin-bottom: .8rem; }
.leader h2 { display: block; margin: 0 0 .8rem; font-size: clamp(1.55rem, 4.4vw, 2.05rem); font-variation-settings: "opsz" 72, "SOFT" 40; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.leader h2::before, .leader h2::after { content: none; }
.leader h2 a { color: var(--ink); text-decoration: none; }
.leader h2 a:hover { color: var(--burgundy); }
.leader .standfirst { font-size: 1.12rem; margin-bottom: .7rem; }
.leader .read { font-variant: small-caps; letter-spacing: .12em; font-size: .95rem; }

.contents-head { text-align: center; margin-top: 2.6rem; }
.desk-section { margin-top: 2.6rem; }
.desk-section h2, .hub-head h1 { }
.desk-section h2 { justify-content: flex-start; gap: 1rem; text-align: left; font-size: 1.05rem; margin-bottom: .6rem; }
.desk-section h2::before { content: none; }
.desk-section h2 a { color: var(--ink); text-decoration: none; }
.desk-section h2 a:hover { color: var(--burgundy); }
.desk-section .blurb { margin: 0 0 .5rem; font-style: italic; color: var(--ink-soft); font-size: 1rem; text-indent: 0; }

.toc { list-style: none; margin: 0; padding: 0; }
.toc li { padding: .8rem 0; border-top: 1px dotted var(--gold); }
.toc li:first-child { border-top: 0; }
.toc .t {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 36, "SOFT" 40;
  font-size: 1.22rem;
  line-height: 1.22;
  margin: 0 0 .25rem;
  text-wrap: balance;
}
.toc .t a { color: var(--ink); text-decoration: none; }
.toc .t a:hover { color: var(--burgundy); }
.toc .l { margin: 0; font-size: 1.02rem; color: var(--ink-soft); text-indent: 0; }
.toc .read { font-variant: small-caps; letter-spacing: .12em; font-size: .9rem; white-space: nowrap; margin-left: .5em; }
.toc .empty { font-style: italic; color: var(--ink-soft); }

.hub-head { text-align: center; margin-bottom: 1.6rem; }
.hub-head .standfirst { margin-bottom: 0; }
.hub .toc { margin-top: 1rem; border-top: 1px solid var(--gold); }
.hub .toc li:first-child { border-top: 0; }

/* Static pages */
.page h1 { text-align: center; }
.page .standfirst { text-align: center; }
.page h2 { margin-top: 2.2rem; }
.page p + p { text-indent: 1.4em; }
.page .plain p { text-indent: 0; margin-bottom: .9rem; }
.errata { list-style: none; padding-left: 0; }
.errata li { margin-bottom: 1rem; }
.errata time { font-variant: small-caps; letter-spacing: .08em; color: var(--gold-ink); }
dl.policy dt { font-weight: 600; margin-top: .9rem; }
dl.policy dd { margin: .15rem 0 0; }

/* Contact form */
form.letter { margin-top: 1.4rem; }
form.letter label { display: block; font-variant: small-caps; letter-spacing: .1em; font-size: .92rem; color: var(--gold-ink); margin: 1.1rem 0 .25rem; }
form.letter input, form.letter textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--wash);
  border: 0;
  border-bottom: 1px solid var(--gold);
  padding: .55rem .7rem;
}
form.letter input:focus, form.letter textarea:focus { outline: 2px solid var(--burgundy); outline-offset: 2px; background: #f1ebe0; }
form.letter textarea { min-height: 11rem; resize: vertical; }
form.letter .hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
form.letter button {
  margin-top: 1.4rem;
  font: inherit;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  padding: .55rem 1.5rem .62rem;
  cursor: pointer;
}
form.letter button:hover, form.letter button:focus-visible { background: var(--paper); color: var(--burgundy); }
.flash { display: none; background: var(--wash); border-left: 3px solid var(--burgundy); padding: .9rem 1.1rem; margin: 0 0 1.4rem; }
.flash p { text-indent: 0; }
.flash:target { display: block; }

/* Footer */
.foot {
  margin-top: 3rem;
  padding: 1.6rem 0 2.6rem;
  border-top: 3px double var(--ink);
  text-align: center;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.foot p { margin: 0; }
.foot p + p { margin-top: .5rem; }
.foot .sep { color: var(--gold); padding-inline: .15em; }
.foot a { white-space: nowrap; }
.foot .letters { font-style: italic; }

/* 404 */
.lost { text-align: center; }
.lost .big {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(5rem, 22vw, 9rem);
  line-height: 1;
  color: var(--burgundy);
  margin: 1rem 0 .5rem;
  letter-spacing: -.03em;
}

/* Small screens */
@media (max-width: 719px) {
  body { font-size: 1.0625rem; line-height: 1.6; }
  .col { padding-inline: 1rem; }
  main { padding-block: 1.8rem 2.2rem; }
  .pull { margin: 1.2rem 0 1.2rem .4rem; font-size: 1.2rem; }
  .nav ul { gap: .1rem 1rem; }
  .nav a { font-size: .9rem; }
  h2 { gap: .7rem; font-size: 1.05rem; }
  .prose p.first::first-letter { font-size: 3.9em; }
  .toc .read { display: inline-block; margin-left: 0; }
}

@media print {
  .nav, .skip, .cta, .foot .letters { display: none; }
  body { font-size: 11pt; }
  .pull { float: right; width: 40%; }
  a { color: var(--ink); text-decoration: none; }
}
