:root {
  --paper: #f3eee4;
  --paper-light: #faf7f0;
  --ink: #22221f;
  --muted: #67645d;
  --rust: #a24d35;
  --rust-dark: #7e3827;
  --forest: #31483c;
  --forest-dark: #23362c;
  --line: #c9bdaa;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --content: min(100% - 8vw, 1180px);
  --gap: clamp(24px, 3vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(90, 70, 40, .035) 0 1px, transparent 1.5px) 0 0 / 10px 10px,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--rust);
  color: var(--paper-light);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: var(--content);
  margin: 0 auto;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(243, 238, 228, .92);
  backdrop-filter: blur(8px);
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1;
  letter-spacing: -.03em;
}

.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
}

.site-header nav a {
  position: relative;
  font-size: .92rem;
}

.site-header nav a::before {
  content: "";
  position: absolute;
  height: 1px;
  left: 0;
  right: 100%;
  bottom: -4px;
  background: var(--rust);
  transition: right 160ms ease;
}

.site-header nav a:hover::before,
.site-header nav a:focus-visible::before {
  right: 0;
}

.magazine {
  width: var(--content);
  margin: 0 auto;
}

.spread {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.spread-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.spread-head-light .rubrik {
  color: #deb39f;
}

.rubrik,
.latest-category,
.project-card-tag,
.book-meta,
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.rubrik {
  margin: 0 0 8px;
  color: var(--rust);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .55fr);
  gap: var(--gap);
  align-items: start;
  padding: clamp(36px, 5vw, 56px) 0 clamp(32px, 4vw, 48px);
}

.eyebrow {
  color: var(--rust);
  margin: 0 0 20px;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 50px;
  margin-top: 10px;
  border-bottom: 2px solid currentColor;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.masthead-lead {
  max-width: 52ch;
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.button {
  min-height: 46px;
  border: 1px solid;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .92rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.button span,
.text-link span {
  font-size: 1.3em;
  line-height: 1;
  transition: transform 160ms ease;
}

.button:hover span,
.button:focus-visible span,
.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(3px, -2px);
}

.button-rust {
  color: var(--rust-dark);
  border-color: var(--rust);
}

.button-rust:hover,
.button-rust:focus-visible {
  background: var(--rust);
  color: white;
}

.button-green {
  color: var(--forest-dark);
  border-color: var(--forest);
}

.button-green:hover,
.button-green:focus-visible {
  background: var(--forest);
  color: white;
}

.topic-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--forest-dark);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.topic-index i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rust);
}

.masthead-aside {
  position: sticky;
  top: 72px;
}

.masthead-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: #e3d8c6;
  overflow: hidden;
}

.masthead-portrait img {
  position: absolute;
  z-index: 2;
  width: 115%;
  height: auto;
  right: -12%;
  bottom: -8%;
  filter: grayscale(1) contrast(1.06);
  mix-blend-mode: multiply;
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.latest-category {
  margin: 0 0 14px;
}

.latest-category.rust-label { color: var(--rust); }
.latest-category.green-label { color: var(--forest); }

.feed-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feed-list li {
  border-bottom: 1px solid var(--line);
}

.feed-list a {
  display: block;
  padding: 12px 0;
  transition: padding 160ms ease, background 160ms ease;
}

.feed-list a:hover,
.feed-list a:focus-visible {
  padding-inline: 8px;
  background: rgba(255, 255, 255, .38);
}

.feed-source {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.feed-source-rust {
  color: var(--rust-dark);
  border: 1px solid var(--rust);
  background: rgba(162, 77, 53, .1);
}

.feed-source-green {
  color: var(--forest-dark);
  border: 1px solid var(--forest);
  background: rgba(49, 72, 60, .1);
}

.feed-list strong {
  display: block;
  font-family: var(--serif);
  font-size: .98rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 4px;
}

.feed-meta {
  display: block;
  font-size: .75rem;
  color: var(--muted);
}

.feed-placeholder {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.feed-placeholder span {
  display: block;
  height: 12px;
  margin-bottom: 6px;
  border-radius: 3px;
  background: var(--line);
  opacity: .45;
}

.feed-placeholder span:first-child { width: 85%; }
.feed-placeholder span:last-child { width: 45%; height: 9px; }

.spread-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  border-top: 1px solid var(--line);
}

.spread-duo .spread {
  border-top: 0;
  padding-top: clamp(40px, 5vw, 64px);
}

.spread-work p,
.spread-about p {
  color: var(--muted);
  font-size: .98rem;
}

.spread-work > p,
.spread-about .about-lead {
  margin-bottom: 16px;
}

.about-lead {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ink);
}

.tag-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-size: .82rem;
  color: var(--forest-dark);
  background: rgba(255, 255, 255, .35);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  color: var(--rust-dark);
  font-size: .92rem;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  padding: 22px 20px;
  background: var(--paper);
  transition: background 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  background: rgba(255, 255, 255, .55);
  outline: none;
}

.project-card-wide {
  grid-column: span 3;
}

.project-card-tag {
  color: var(--muted);
}

.project-card.rust .project-card-tag {
  color: var(--rust);
}

.project-card.green .project-card-tag {
  color: var(--forest);
}

.project-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.project-card p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--muted);
}

.band-forest {
  background: var(--forest);
  color: var(--paper-light);
  box-shadow: 0 0 0 100vmax var(--forest);
  clip-path: inset(0 -100vmax);
}

.band-forest .text-link {
  color: #f0c6b3;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.book-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: start;
}

.book-cover {
  box-shadow: 8px 10px 0 rgba(0, 0, 0, .2);
  transition: transform 160ms ease;
}

.book-cover:hover,
.book-cover:focus-visible {
  transform: translateY(-4px) rotate(-1deg);
}

.book-cover img {
  width: 100%;
  aspect-ratio: .63;
  object-fit: cover;
}

.book-meta {
  margin-bottom: 8px;
  color: #deb39f;
}

.book-copy h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.book-copy > p {
  margin-bottom: 12px;
  font-size: .9rem;
  color: #e2ded4;
}

.social-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  transition: background 160ms ease, border-color 160ms ease;
}

.social-chips a:hover,
.social-chips a:focus-visible {
  background: rgba(255, 255, 255, .45);
  border-color: var(--rust);
}

.social-chips span {
  font-size: .9em;
  color: var(--rust);
}

.support-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  padding: 28px 0 8px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.support-note p {
  margin: 0;
  max-width: 52ch;
}

.support-note .text-link {
  flex-shrink: 0;
  font-size: .88rem;
}

footer {
  width: var(--content);
  margin: 0 auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr;
  gap: 32px;
  color: var(--muted);
  font-size: .88rem;
}

footer p {
  margin-bottom: 4px;
}

.footer-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.footer-contact,
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-contact a,
.footer-legal a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.footer-contact a:hover,
.footer-legal a:hover {
  border-color: currentColor;
}

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

@media (max-width: 960px) {
  .masthead {
    grid-template-columns: 1fr;
  }

  .masthead-aside {
    position: static;
    max-width: 320px;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card-wide {
    grid-column: span 2;
  }

  .spread-duo {
    grid-template-columns: 1fr;
  }

  .spread-duo .spread + .spread {
    padding-top: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 36px);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .site-header nav a {
    font-size: .8rem;
  }

  .magazine,
  footer {
    width: calc(100% - 36px);
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .latest-grid,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card-wide {
    grid-column: auto;
  }

  .book-card {
    grid-template-columns: 90px 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
