/* Quiet — restrained memorial. Near-monochrome, hairline rules, a lot of air.
   System font stacks on purpose: nothing to fetch, nothing to rot. */

:root {
  color-scheme: light;
  --paper:  #fbfaf8;
  --raised: #ffffff;
  --ink:    #16161a;
  --body:   #33333a;
  --muted:  #74747d;
  --rule:   #e4e1db;
  --faint:  #9d988f;
  --accent: #575049;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;   /* comfortable reading column */
  --page: 60rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.99rem + 0.36vw, 1.1875rem);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

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

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

/* ---------- header ---------- */

.site-header {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
  text-align: center;
}

.brand { display: inline-block; text-decoration: none; color: inherit; }
.brand-name {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-sub {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header nav { margin-top: 2.25rem; }
.site-header ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.35rem 1.9rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
}
.site-header a[href] {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.site-header a:hover { color: var(--ink); }
.site-header a[aria-current="page"] { color: var(--ink); }

/* ---------- shared blocks ---------- */

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

h1 {
  font-weight: 400;
  font-size: clamp(2rem, 1.55rem + 2.1vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 2.5rem;
  text-align: center;
}

.prose { max-width: var(--measure); margin-inline: auto; }
.prose p { margin: 0 0 1.35rem; }

.lede { text-align: center; font-size: 1.1em; }
.signoff { color: var(--muted); font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

/* ---------- home hero ---------- */

.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 4.5rem;
}

.portrait { margin: 0; }
.portrait img {
  width: 100%;
  filter: grayscale(1) contrast(1.03);
  border: 1px solid var(--rule);
}

.hero-text { text-align: center; }

@media (min-width: 46rem) {
  .hero { grid-template-columns: minmax(0, 20rem) 1fr; }
  .hero-text { text-align: left; }
}

.hero-text h1 {
  margin: 0;
  text-align: inherit;
  font-size: clamp(2.3rem, 1.6rem + 3.1vw, 3.9rem);
}
.dates {
  margin: 1.1rem 0 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dates span { margin: 0 0.5rem; }

/* ---------- verse ---------- */

.verse-pair {
  display: grid;
  gap: 2.5rem;
  margin: 4.5rem auto;
  max-width: 44rem;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 42rem) { .verse-pair { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.verse-pair blockquote { margin: 0; text-align: center; }
.verse-pair p { margin: 0; line-height: 2; }
.verse-pair [lang="sv"] { color: var(--ink); }
.verse-pair [lang="en"] { color: var(--muted); font-style: italic; }

.onward { text-align: center; margin-top: 3.5rem; }
.onward p { margin: 0 0 1.4rem; color: var(--muted); }
.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.85rem 1.9rem;
}
.cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- figures ---------- */

.plate { margin: 3.5rem auto; max-width: 26rem; text-align: center; }
.plate img { margin-inline: auto; border: 1px solid var(--rule); }
.plate.soft img { border: none; }
.plate figcaption {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  color: var(--muted);
}

/* ---------- poem & quotes ---------- */

.poem {
  max-width: 30rem;
  margin: 3.5rem auto;
  text-align: center;
  line-height: 2.05;
  color: var(--ink);
}
.poem p { margin: 0 0 2.4rem; }

.quotes { max-width: 34rem; margin: 3.5rem auto 0; }
.quote {
  margin: 0 0 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.quote:last-child { border-bottom: none; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: 1.1em; line-height: 1.85; color: var(--ink); }
.quote figcaption {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- book of thoughts ---------- */

.notice {
  max-width: var(--measure);
  margin: 3.25rem auto 0;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--rule);
  text-align: center;
}
.notice-label {
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.notice p:last-child {
  margin: 0;
  font-size: 0.95em;
  color: var(--muted);
}

.closing-line {
  max-width: var(--measure);
  margin: 3.5rem auto 0;
  padding-top: 2.75rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-style: italic;
  color: var(--muted);
}

.year-jump {
  margin: 4rem auto 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.year-jump-label {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.year-jump ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.3rem;
}
.year-jump a {
  font-family: var(--sans);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
}
.year-jump a:hover { color: var(--ink); }
.year-jump .count {
  font-size: 0.74em;
  vertical-align: 0.4em;
  color: var(--faint);
}
.year-jump a:hover .count { color: var(--muted); }

.entries { max-width: var(--measure); margin-inline: auto; }

.year { scroll-margin-top: 1.5rem; }
.year-heading {
  margin: 4rem 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 400;
  font-size: 0.88rem;
  font-family: var(--sans);
  letter-spacing: 0.32em;
  text-indent: 0.32em;      /* balance the trailing letter-space */
  text-transform: uppercase;
  color: var(--muted);
}
.year-heading::before,
.year-heading::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
}

.entry {
  margin: 0 0 2.75rem;
  padding: 0 0 2.75rem;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 1.5rem;
}
.year:last-child .entry:last-child { border-bottom: none; }

.entry-body p { margin: 0 0 1.15rem; }
.entry-body p:last-child { margin-bottom: 0; }

.entry-meta {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}
.entry-author { color: var(--ink); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.entry-meta time { color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--page);
  margin: 5rem auto 0;
  padding: 2.5rem 1.5rem 4rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.footer-line { margin: 0 0 0.6rem; color: var(--ink); }
.footer-note {
  margin: 0;
  max-width: 30rem;
  margin-inline: auto;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}

@media print {
  .site-header nav, .year-jump, .skip-link, .cta { display: none; }
  body { background: #fff; }
}
