:root {
  --paper: #f4efe4;
  --ink: #1a1714;
  --blue: #0a3278;
  --rule: #1a1714;
  --muted: #5c564c;
  --max: 70rem;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.55;
  overflow-wrap: break-word;
}

a {
  color: var(--blue);
  text-underline-offset: 0.14em;
}

a:hover {
  color: #071f4c;
}

.wrap {
  width: min(var(--max), calc(100% - 1.5rem));
  margin-inline: auto;
}

.draft-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.45rem 0.75rem;
  padding: 0.55rem 0 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.draft-switch a {
  color: var(--muted);
  text-decoration: none;
}

.draft-switch a.is-on,
.draft-switch a:hover {
  color: var(--ink);
}

.masthead {
  padding: 0.4rem 0 1.1rem;
  border-bottom: 4px solid var(--rule);
}

.masthead__name {
  margin: 0;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 10vw, 6.2rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

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

.masthead__sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-top: 0.7rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0 0.7rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0;
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--blue);
}

.nav-toggle {
  display: block;
  margin: 0.6rem auto 0;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.3rem 0.7rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-main {
  flex: 1;
}

.front {
  display: grid;
  gap: 1.6rem;
  padding: 1.6rem 0 2rem;
}

.lead {
  text-decoration: none;
  color: inherit;
}

.lead__photo {
  min-height: 14rem;
  margin-bottom: 0.9rem;
  background:
    linear-gradient(180deg, transparent, rgba(26, 23, 20, 0.08)),
    repeating-linear-gradient(-12deg, #e4dcc9 0 12px, #eee6d6 12px 24px);
  border: 1px solid var(--ink);
}

.lead h1 {
  margin: 0 0 0.5rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
}

.lead p,
.deck {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta {
  margin: 0 0 0.4rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

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

.headlines li {
  border-bottom: 1px solid #d7d0c2;
}

.headlines a {
  display: block;
  padding: 0.85rem 0;
  color: inherit;
  text-decoration: none;
}

.headlines h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.headlines p {
  margin: 0;
  color: var(--muted);
}

.directory {
  padding: 0 0 2.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.directory h2 {
  margin: 0 0 0.7rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
}

.dir-table {
  width: 100%;
  border-collapse: collapse;
}

.dir-table th,
.dir-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid #d7d0c2;
  vertical-align: top;
}

.dir-table th {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dir-table a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.dir-table a:hover {
  color: var(--blue);
}

.classified {
  display: grid;
  gap: 1rem;
  padding: 0 0 2.5rem;
}

.ad {
  border: 1px solid var(--ink);
  padding: 1rem;
}

.ad strong {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.page {
  padding: 1.6rem 0 2.8rem;
}

.page h1 {
  margin: 0 0 0.6rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.05;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
}

.article {
  padding: 1.6rem 0 3rem;
  max-width: 42rem;
}

.article h1 {
  margin: 0 0 0.6rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.08;
}

.article p:first-of-type::first-letter {
  float: left;
  font-family: Fraunces, Georgia, serif;
  font-size: 3.6rem;
  line-height: 0.8;
  padding: 0.15rem 0.4rem 0 0;
}

.back {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.group {
  margin: 1.6rem 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.group h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.person-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.person-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #d7d0c2;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.frame {
  min-height: 7rem;
  border: 1px solid var(--ink);
  background: repeating-linear-gradient(45deg, #e4dcc9 0 8px, #eee6d6 8px 16px);
}

.site-footer {
  margin-top: auto;
  border-top: 4px solid var(--rule);
  padding: 1rem 0 1.3rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}

.site-footer a {
  color: var(--ink);
}

@media (min-width: 800px) {
  .wrap {
    width: min(var(--max), calc(100% - 2.5rem));
  }

  .draft-switch {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.4rem;
  }

  .front {
    grid-template-columns: 1.35fr 0.9fr;
    gap: 2rem;
    align-items: start;
  }

  .lead__photo {
    min-height: 20rem;
  }

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

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
