@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f3eee6;
  --card: #fffaf4;
  --ink: #241812;
  --header: #3a261f;
  --header-ink: #fff8f2;
  --line: #e0d2c2;
  --accent: #c45c26;
  --kicker: #6d3414;
  --focus: #184e86;
  --focus-on-dark: #ffe08a;
  --shadow: 0 1px 0 rgba(58, 38, 31, 0.04), 0 12px 28px rgba(58, 38, 31, 0.06);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.55;
  font-synthesis: none;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.brand-family,
.v,
.site-footer p:first-child {
  font-family: "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

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

h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
}

h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 0.42rem;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: var(--accent);
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

h3 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: rgba(196, 92, 38, 0.28);
}

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

::selection {
  background: #f0c9a0;
  color: var(--ink);
}

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

.site-header :focus-visible {
  outline-color: var(--focus-on-dark);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  transform: translateY(-220%);
  z-index: 5;
  padding: 0.75rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vowel-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 0.7rem;
}

.vb-a { background: #e07a45; }
.vb-e { background: #e2b15a; }
.vb-i { background: #7ea06a; }
.vb-o { background: #6aa0ad; }
.vb-u { background: #d18496; }

.site-header {
  background: var(--header);
  color: var(--header-ink);
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-left: max(1.15rem, env(safe-area-inset-left));
  padding-right: max(1.15rem, env(safe-area-inset-right));
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1.15rem;
  padding-bottom: 1.3rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.wordmark {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.v {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.8rem;
  border-radius: 0.55rem;
  background: #fffaf4;
  border: 2px solid #f3e6d4;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
  font-size: 1.95rem;
  line-height: 1;
}

.v-a { color: #b5461e; }
.v-e { color: #8f6410; }
.v-i { color: #2f6840; }
.v-o { color: #1d5c6b; }
.v-u { color: #8a3450; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-family {
  font-size: 1.6rem;
  color: var(--header-ink);
}

.whisper {
  font-size: 1.125rem;
  line-height: 1.35;
  color: #fff6ee;
}

.nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 3.4rem;
  padding: 0.7rem 0.8rem;
  border: 3px solid #241812;
  border-radius: 999px;
  background: #fffaf4;
  color: #241812;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: #f3c7a4;
  box-shadow: inset 0 -4px 0 #3a261f;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

.page {
  padding-top: 1.9rem;
  padding-bottom: 0.5rem;
}

.prose {
  max-width: 40rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: 1.4rem;
  line-height: 1.45;
}

.block {
  margin-top: 2.6rem;
}

.block .prose {
  margin-bottom: 1rem;
}

.news,
.sections,
.entry-list {
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 40rem;
  padding: 1.25rem 1.3rem 1.3rem;
  border: 2px solid var(--line);
  border-radius: 1.2rem;
  background: var(--card);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.sections .card {
  max-width: none;
  height: 100%;
}

.news .card {
  width: min(100%, 40rem);
}

.card > * {
  margin: 0;
}

a.card:hover {
  border-color: var(--accent);
}

a.card:active {
  transform: translateY(1px);
}

.sections .card h3 {
  font-size: 1.75rem;
}

.entry h2,
.entry h3 {
  font-size: 1.55rem;
}

.kicker {
  color: var(--kicker);
  font-size: 1.15rem;
  font-weight: 700;
}

.when {
  font-size: 1.55rem;
  font-weight: 700;
}

.where {
  font-size: 1.3rem;
}

.open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: auto;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--header);
  color: var(--header-ink);
  font-size: 1.15rem;
  font-weight: 700;
}

a.card:hover .open,
a.card:focus-visible .open {
  background: #8e3e1e;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #f6e2b3;
  color: #4a3008;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.badge-today {
  background: #d5edd8;
  color: #143524;
}

.is-placeholder {
  background: #fff6e4;
  border: 3px dashed #a67c2d;
}

.empty {
  max-width: 40rem;
  margin: 0;
  padding: 1.2rem 1.25rem;
  border: 3px dashed #d2c1ae;
  border-radius: 1.2rem;
  background: var(--card);
}

.gallery {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 1.2rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.gallery figure.is-placeholder {
  border: 3px dashed #a67c2d;
  background: #fff6e4;
}

.frame {
  background: #efe2d2;
}

.frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #efe2d2;
}

figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.15rem;
  font-size: 1.2rem;
}

figcaption time {
  color: var(--kicker);
  font-weight: 700;
}

.site-footer {
  margin-top: 3rem;
  padding: 0.4rem 0 calc(1.4rem + env(safe-area-inset-bottom));
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 1.15rem;
}

.site-footer p:first-child {
  font-size: 1.4rem;
}

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

  .v {
    width: 2.2rem;
    height: 2.45rem;
    font-size: 1.65rem;
  }
}

@media (min-width: 540px) {
  .brand {
    flex-direction: row;
    align-items: center;
    gap: 0.95rem;
  }
}

@media (min-width: 760px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .news {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  }
}

@media (min-width: 900px) {
  .sections {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .nav {
    grid-template-columns: repeat(4, auto);
    justify-content: end;
  }

  .nav a {
    padding-inline: 1.05rem;
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.card:active {
    transform: none;
  }
}

@media (forced-colors: active) {
  .nav a,
  .card,
  .open,
  .gallery figure,
  .empty {
    border: 2px solid ButtonText;
  }
}

@media print {
  .vowel-bar,
  .nav,
  .skip,
  .open {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-header {
    background: #fff;
    color: #000;
  }

  .v {
    box-shadow: none;
  }
}
