/* after work: an editorial journal */
:root {
  color-scheme: light;
  --bg: #f5f3eb;
  --text: #153a30;
  --soft: #35443e;
  --dim: #59635d;
  --line: #adb7ab;
  --fill: #e7e9dd;
  --card: #faf9f4;
  --accent: #235a45;
  --gold: #bd873b;
  --sans: "DM Sans", system-ui, sans-serif;
  --display: "Libre Caslon Display", Georgia, serif;
  --serif: "Literata", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { max-width: 100%; }
.wrap { width: min(100% - 7rem, 82rem); margin-inline: auto; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .7rem 1rem; background: var(--text); color: var(--bg); z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.home { font: 400 1.65rem/1.2 var(--display); text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 2rem; font-size: .9rem; }
.site-header nav a { padding-block: .4rem; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.intro { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(15rem, 1fr); gap: 4rem; align-items: center; padding: 3.4rem 0 3rem; }
.masthead { display: flex; gap: 1.8rem; align-items: center; }
.masthead h1 { margin: 0; white-space: nowrap; font: italic 400 clamp(4rem, 9.7vw, 9rem)/1.05 var(--display); letter-spacing: -.055em; }
.horizon { width: clamp(5rem, 10vw, 9rem); flex: 0 1 9rem; min-width: 0; }
.tagline { margin: 1.2rem 0 0; font-size: clamp(1rem, 1.65vw, 1.35rem); line-height: 1.5; letter-spacing: -.02em; }
.intro-bio p { margin: 0; font: 400 1.16rem/1.6 var(--serif); }
.previous { display: inline-block; margin-top: 1rem; font-size: .78rem; color: var(--dim); }
.section-label { display: flex; gap: 1rem; align-items: center; margin: 0; border-top: 1px solid var(--line); padding: 1rem 0; font: 600 .7rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .24em; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.entry { padding: 2.3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.entry.featured { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-top: 1.2rem; }
.entry:has(.entry-art):not(.featured) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.meta { margin: 0 0 1.2rem; color: var(--dim); font: 400 .72rem/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.meta .track { color: var(--text); font-weight: 700; }
.meta > span + span { margin-inline: .5rem; }
.entry h3 { margin: 0; font: 400 clamp(1.9rem, 3.1vw, 2.8rem)/1.13 var(--display); letter-spacing: -.025em; text-wrap: pretty; }
.entry.featured h3 { font-size: clamp(2.3rem, 4.1vw, 3.7rem); line-height: 1.05; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.summary { margin: 1rem 0; max-width: 58rem; color: var(--soft); font-size: 1rem; line-height: 1.6; }
.read-link { display: inline-block; margin-top: .2rem; font-size: .9rem; }
.entry-art { width: 100%; height: auto; display: block; background: var(--fill); }
.site-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem 2rem; padding: 1.5rem 0 2rem; color: var(--dim); font-size: .73rem; }
.currently { margin: 0; color: var(--text); font-size: .82rem; }
.label { margin-right: 1.4rem; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.site-footer nav { display: flex; gap: 1rem; }
.empty { padding: 2rem 0; }
/* Essays share the journal's typography, with a narrower reading measure. */
.post { max-width: 45rem; margin: 0 auto; padding: 2.5rem 0 1rem; font: 400 1.08rem/1.85 var(--serif); overflow-wrap: break-word; }
.post-brand { display: inline-block; margin-bottom: 2.5rem; font: italic 400 2rem/1 var(--display); text-decoration: none; }
.post h1 { margin: 0 0 2.5rem; font: 400 clamp(2.5rem, 5vw, 4.3rem)/1.08 var(--display); letter-spacing: -.025em; text-wrap: pretty; }
.post h2 { margin: 2.5rem 0 1rem; font: 400 2rem/1.2 var(--display); }
.post h3, .post h4 { line-height: 1.4; }
.post p, .post ul, .post ol { margin: 0 0 1.4rem; }
.post .meta { margin-bottom: 1rem; }
.post blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--gold); font-style: italic; }
.post figure { margin: 2rem 0; }
.post figure img { display: block; width: 100%; height: auto; }
.post figcaption { margin-top: .7rem; color: var(--dim); font: .8rem/1.6 var(--sans); }
.back { max-width: 45rem; margin: 1rem auto 3rem; font-size: .9rem; }
body:has(.post) .site-footer { border-top: 1px solid var(--line); }
code { padding: .1em .3em; background: var(--fill); font: .88em ui-monospace, monospace; }
pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: var(--fill); font-size: .85rem; line-height: 1.6; }
pre code { padding: 0; background: none; }
.table-wrap { max-width: 100%; margin: 2rem 0; overflow-x: auto; border: 1px solid var(--line); }
.table-wrap table { width: 100%; min-width: 38rem; border-collapse: collapse; font: .85rem/1.5 var(--sans); }
.table-wrap th, .table-wrap td { padding: .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--fill); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 600; }
@media (min-width: 1100px) { .post figure, .post .table-wrap { width: 60rem; max-width: none; margin-left: -7.5rem; } }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 4rem); }
  .intro { gap: 2rem; grid-template-columns: minmax(0, 1.8fr) minmax(14rem, 1fr); }
  .horizon { display: none; }
  .intro-bio p { font-size: 1rem; }
  .entry.featured { gap: 2rem; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { padding: 1.15rem 0; align-items: flex-start; }
  .home { max-width: 9rem; font-size: 1.35rem; }
  .site-header nav { gap: 1rem; font-size: .76rem; }
  .site-header nav a { padding-block: .3rem; }
  .intro { display: block; padding: 2rem 0; }
  .masthead { gap: 1rem; }
  .masthead h1 { font-size: clamp(3.9rem, 16vw, 6rem); }
  .horizon { display: block; width: 4.5rem; flex: 0 1 4.5rem; }
  .tagline { font-size: 1.05rem; max-width: 24rem; margin-top: .8rem; }
  .intro-bio { margin-top: 1.5rem; max-width: 30rem; }
  .intro-bio p { font: .92rem/1.65 var(--serif); }
  .previous { margin-top: .65rem; font-size: .72rem; }
  .section-label { font-size: .63rem; }
  .entry.featured, .entry:has(.entry-art):not(.featured) { display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .entry { padding: 1.8rem 0; }
  .entry.featured { padding-top: 1rem; }
  .entry.featured h3 { font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.1; }
  .entry h3 { font-size: 2rem; }
  .meta { font-size: .65rem; margin-bottom: .8rem; }
  .summary { font-size: .93rem; }
  .entry-art { max-height: 19rem; object-fit: contain; }
  .site-footer { padding: 1.5rem 0; gap: 1rem; }
  .currently { font-size: .75rem; }
  .label { margin-right: .6rem; font-size: .6rem; }
  .post { padding-top: 2rem; font-size: 1rem; }
  .post-brand { margin-bottom: 2rem; }
  .post h1 { font-size: 2.65rem; }
  .post h2 { font-size: 1.85rem; }
}
@media (prefers-reduced-motion: no-preference) { a { transition: color .15s ease; } }

@media (max-width: 360px) {
  .site-header { flex-direction: column; gap: .6rem; }
  .home { max-width: none; }
  .site-header nav { gap: 1.5rem; }
}
