:root {
  --paper: #f4d5cd;
  --page: #fffdf8;
  --ink: #332720;
  --muted: #6b5a50;
  --rule: #19130f;
  --blue: #075e98;
  --blue-dark: #034f82;
  --link: #075e98;
  --measure: 860px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

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

a:hover {
  color: var(--blue-dark);
}

.page {
  width: min(100% - 32px, var(--measure));
  margin: 28px auto 56px;
  padding: 34px 0 0;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  align-items: end;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-grid;
  color: var(--blue);
  text-decoration: none;
}

.brand-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(4.8rem, 17vw, 9.4rem);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.8;
  text-shadow: 0.02em 0 0 var(--blue), 0.035em 0 0 var(--blue);
}

.edition-mark {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 0;
}

.issue {
  margin: 0;
  color: #3f3028;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.issue-menu {
  position: relative;
  width: min(100%, 300px);
}

.issue-menu summary {
  display: block;
  cursor: pointer;
  list-style: none;
}

.issue-menu summary::-webkit-details-marker {
  display: none;
}

.issue-menu summary::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--ink);
  opacity: 0.8;
}

.edition-logo,
.zaaien-logo,
.issue-option img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.issue-options {
  position: absolute;
  z-index: 2;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  gap: 10px;
  width: min(74vw, 300px);
  padding: 12px;
  background: color-mix(in srgb, var(--paper) 88%, white 12%);
  border: 1px solid rgba(25, 19, 15, 0.35);
  box-shadow: 0 14px 32px rgba(51, 39, 32, 0.18);
}

.issue-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
}

.issue-option:hover,
.issue-option:focus {
  border-color: rgba(7, 94, 152, 0.45);
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.issue-option.is-active {
  border-color: var(--blue);
}

.issue-option span {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.story {
  padding: 34px 0 48px;
}

.section-label {
  display: inline-block;
  margin: 0 0 16px;
  padding: 0.08em 0.38em 0.14em;
  color: var(--page);
  background: var(--blue);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 8vw, 4.8rem);
  letter-spacing: 0;
}

h2 {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--blue);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 700;
}

p {
  margin: 14px 0 0;
}

.lede {
  margin-top: 18px;
  font-size: 1.23rem;
  line-height: 1.48;
}

.photo {
  margin: 34px 0 0;
}

.photo img {
  display: block;
  width: 100%;
  aspect-ratio: 2048 / 1151;
  object-fit: cover;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  text-align: right;
}

.download {
  margin-top: 6px;
}

.download-link {
  display: inline-block;
  margin-top: 8px;
  padding: 0.5rem 0.68rem;
  color: var(--page);
  background: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

.download-link:hover {
  color: var(--page);
  background: var(--blue-dark);
}

.resource-list {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.resource-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) 1fr;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(25, 19, 15, 0.28);
}

.resource-list a {
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 700;
}

.resource-list span {
  color: var(--ink);
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .page {
    width: min(100% - 24px, var(--measure));
    margin-top: 18px;
    padding-top: 24px;
  }

  .masthead {
    display: grid;
    gap: 16px;
    align-items: start;
  }

  .brand-name {
    font-size: clamp(4.1rem, 23vw, 5.6rem);
  }

  .edition-mark {
    justify-items: start;
    min-width: 0;
  }

  .issue {
    text-align: left;
  }

  .issue-menu {
    width: min(78vw, 260px);
  }

  .issue-options {
    right: auto;
    left: 0;
  }

  .resource-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
