/* Fractured Symmetries — words only. */

@font-face {
  font-family: "Newsreader";
  src: url(/assets/fonts/newsreader-roman-latin.woff2) format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url(/assets/fonts/newsreader-roman-latinext.woff2) format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url(/assets/fonts/newsreader-italic-latin.woff2) format("woff2");
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url(/assets/fonts/newsreader-italic-latinext.woff2) format("woff2");
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #faf7f1;
  --ink: #23201a;
  --faint: #756e60;
  --rule: #e6dfd2;
  --accent: #a34a24;
  --measure: 60ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16140f;
    --ink: #e6e0d2;
    --faint: #968d7a;
    --rule: #2d2a22;
    --accent: #d98d5f;
  }
}

* { box-sizing: border-box; }

html { hanging-punctuation: first allow-end; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) 1.25rem 4rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--faint);
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
::selection { background: rgba(163, 74, 36, 0.25); }

/* ---- masthead ---- */
.masthead { text-align: center; margin-bottom: clamp(2.5rem, 7vw, 4rem); }
.masthead .site {
  margin: 0;
  font-size: clamp(1.05rem, 0.9rem + 1.1vw, 1.4rem);
  font-weight: 570;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.masthead .site a { text-decoration: none; }
.masthead .tagline {
  margin: 0.4rem 0 0;
  font-style: italic;
  color: var(--faint);
}
.masthead nav {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.masthead nav a { text-decoration: none; color: inherit; }
.masthead nav a:hover { color: var(--accent); }

/* ---- labels ---- */
.label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.2rem;
}

/* ---- story ---- */
article h1 {
  margin: 0 0 0.2rem;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.7rem);
  font-weight: 460;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
article h1 a { text-decoration: none; }
article .byline {
  margin: 0.4rem 0 0.1rem;
  font-style: italic;
  font-size: 1rem;
  color: var(--faint);
}
article .meta {
  margin: 0 0 1.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.prose { text-wrap: pretty; }
.prose p { margin: 0; }
.prose p + p { text-indent: 1.5em; }
.prose hr + p, .prose blockquote + p { text-indent: 0; }
.prose hr {
  border: 0;
  margin: 1.8em 0;
  text-align: center;
}
.prose hr::after {
  content: "⁂";
  color: var(--faint);
  font-size: 0.85em;
}
/* verse mode (frontmatter `form: verse`): stanzas, not indented paragraphs */
.prose--verse p { text-indent: 0; margin: 0 0 1.15em; line-height: 1.65; }
.prose--verse p + p { text-indent: 0; }
.prose--center { text-align: center; }
.prose blockquote {
  margin: 1.4em 1.6em;
  font-style: italic;
  color: color-mix(in srgb, var(--ink) 82%, var(--faint));
}
.prose h2, .prose h3 { font-weight: 500; margin: 1.6em 0 0.5em; }
.prose .footnote { margin-top: 2.5em; font-size: 0.88em; color: var(--faint); }
.prose .footnote hr { margin: 0 0 1em; }
.prose .footnote hr::after { content: ""; }

/* ---- archive list ---- */
.archive {
  margin-top: clamp(3rem, 8vw, 4.5rem);
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}
.archive ol { list-style: none; margin: 0; padding: 0; }
.archive li { margin: 0 0 1.4rem; }
.archive .t {
  font-size: 1.2em;
  font-weight: 480;
  text-decoration: none;
}
.archive .t:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.archive time {
  margin-left: 0.7em;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.archive .open {
  display: block;
  margin-top: 0.1rem;
  color: var(--faint);
}
.archive--page {
  border-top: 0;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}
.year-head {
  margin: 2.6rem 0 1.2rem;
  font-size: 0.85rem;
  font-weight: 560;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.year-head:first-child { margin-top: 0; }
.all-link {
  margin: 2rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.all-link a { text-decoration: none; color: var(--faint); }
.all-link a:hover { color: var(--accent); }

/* ---- older/newer pager ---- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.5rem, 7vw, 4rem);
  border-top: 1px solid var(--rule);
  padding-top: 1.3rem;
  font-size: 0.95rem;
}
.pager .spacer { flex: 1; }
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager .dir { color: var(--faint); font-style: italic; }

/* ---- footer ---- */
.foot {
  margin-top: clamp(3rem, 8vw, 4.5rem);
  border-top: 1px solid var(--rule);
  padding-top: 1.6rem;
  color: var(--faint);
  font-size: 0.92rem;
}
.foot p { margin: 0 0 0.5rem; }
.foot a { color: inherit; }
