:root {
  color-scheme: light;
  --page: #eaf0ec;
  --paper: #fffdf7;
  --ink: #20312c;
  --ink-2: #33443f;
  --masthead: #173b35;
  --masthead-soft: #dce9e3;
  --masthead-label: #b8d4c7;
  --muted: #66766f;
  --rule: #d7dfd9;
  --panel: #e8f0ec;
  --link: #1d6b5d;
  --accent: #c9633b;
  --caution: #9f3b2f;
  --focus: #c9633b;
  --masthead-image: url("branding/beckenham-masthead.jpg");
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background: var(--page);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font:
    16px/1.6 Arial,
    Helvetica,
    sans-serif;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--masthead);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.125rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.28;
}

p {
  margin: 0;
}

input,
button {
  font: inherit;
}

.wrap {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.issue-wrap,
.narrow,
.narrow-page {
  max-width: 720px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: 8px 10px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 116px;
  color: var(--masthead);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.utility-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 14px;
}

.utility-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}

.masthead,
.issue-masthead {
  background:
    linear-gradient(90deg, rgba(23, 59, 53, 0.98) 0%, rgba(23, 59, 53, 0.94) 52%, rgba(23, 59, 53, 0.82) 100%),
    var(--masthead-image) center / cover no-repeat,
    var(--masthead);
  color: var(--masthead-soft);
}

.masthead-inner {
  padding: 56px 0 64px;
}

.masthead h1,
.issue-masthead h1 {
  color: var(--paper);
}

.masthead p {
  max-width: 720px;
  color: var(--masthead-soft);
  font-size: 17px;
}

.masthead h1 + p,
.issue-masthead h1 + p {
  margin-top: 18px;
}

.archive-masthead {
  background:
    linear-gradient(90deg, rgba(23, 59, 53, 0.99) 0%, rgba(23, 59, 53, 0.94) 46%, rgba(23, 59, 53, 0.72) 100%),
    var(--masthead-image) center / cover no-repeat,
    var(--masthead);
}

.masthead-label,
.section-kicker,
.meta,
.issue-date {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.masthead-label {
  margin-bottom: 12px;
  color: var(--masthead-label);
}

.page-section {
  padding: 52px 0;
}

.publication-hero {
  min-height: min(640px, calc(100vh - 64px));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}

.hero-copy > p {
  margin-top: 18px;
}

.coverage-summary {
  display: grid;
  gap: 4px;
  max-width: 680px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 212, 199, 0.42);
}

.coverage-summary .coverage-line {
  color: var(--masthead-soft);
  font-size: 15px;
  line-height: 1.55;
}

.hero-form,
.plain-panel,
.status-panel,
.subscribe-panel {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
}

.hero-form {
  padding: 28px;
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

.hero-form .inline-form-row {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.masthead .hero-form .form-help {
  color: var(--muted);
}

.email-form {
  display: grid;
  gap: 12px;
}

.field-group {
  display: grid;
  gap: 8px;
}

label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.inline-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
}

input[aria-invalid="true"] {
  border-color: var(--caution);
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--masthead);
  border-radius: 4px;
  background: var(--masthead);
  color: var(--paper);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--link);
  border-color: var(--link);
  color: var(--paper);
}

.form-help,
.form-message,
.meta,
.site-footer,
figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-message {
  font-weight: 700;
}

.form-message.error {
  color: var(--caution);
}

.form-message.success {
  color: var(--link);
}

.landing-section-grid,
.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 44px;
}

.section-heading-row {
  align-items: end;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--accent);
}

.ledger-list {
  border-top: 3px solid var(--masthead);
}

.ledger-list p {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
}

.rule-list {
  border-top: 1px solid var(--rule);
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.list-row h2,
.list-row h3 {
  margin-bottom: 8px;
}

.list-row h2 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.list-row p {
  color: var(--ink-2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

.archive-shell {
  padding: 52px 0;
  background: var(--paper);
}

.archive-wrap {
  padding: 0 0 8px;
  background: var(--paper);
}

.archive-list {
  border-top: 0;
}

.archive-list .list-row {
  grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
  gap: 32px;
  align-items: center;
  padding: 26px 0 28px;
  border-bottom: 0;
}

.archive-list .list-row + .list-row {
  border-top: 1px solid var(--rule);
}

.archive-list .meta {
  margin-bottom: 6px;
  color: var(--accent);
}

.archive-list h2 {
  max-width: 820px;
  margin-bottom: 10px;
}

.archive-list h2 a {
  min-height: 0;
}

.archive-list .list-row > div > p:last-child {
  max-width: 780px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

.archive-read-link {
  justify-self: end;
}

.latest-preview {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-right: 56px;
  padding-left: 56px;
}

.latest-preview .section-heading-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
}

.opener {
  max-width: 760px;
  margin: 18px 0 24px;
  color: var(--ink-2);
  font-size: 17px;
}

.section-action {
  margin-top: 24px;
}

.issue-masthead .issue-wrap {
  padding: 48px 0 42px;
}

.issue-date {
  margin-top: 16px;
  color: var(--masthead-label);
}

.issue-summary {
  margin-top: 16px;
  color: var(--masthead-soft);
  font-size: 17px;
}

.issue-body {
  padding: 44px 60px 64px;
  background: var(--paper);
}

.issue-shell {
  background: var(--page);
}

.subscribe-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-bottom: 44px;
  padding: 18px;
  background: var(--panel);
  border-left: 5px solid var(--masthead);
}

.subscribe-panel h2 {
  font-size: 1.25rem;
}

.subscribe-panel p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.email-form-compact .inline-form-row {
  grid-template-columns: minmax(0, 1fr);
}

.issue-body > figure {
  margin: 0 0 32px;
}

.issue-body figure img {
  border: 1px solid var(--rule);
}

.issue-body figcaption {
  margin-top: 8px;
}

.issue-body > .issue-section,
.issue-body > aside.issue-section:not(.subscribe-panel) {
  margin-top: 48px;
}

.issue-body > .issue-section > h2,
.issue-body > aside.issue-section:not(.subscribe-panel) > h2 {
  padding-top: 22px;
  margin-bottom: 4px;
  border-top: 3px solid var(--masthead);
}

.issue-body > .issue-section-featured > h2,
.issue-body > .issue-section-list > h2 {
  border-top-color: var(--accent);
}

.issue-body > .issue-section-first > h2,
.issue-body > aside.issue-section-first:not(.subscribe-panel) > h2 {
  padding-top: 0;
  border-top: 0;
}

.issue-body .issue-item {
  padding: 26px 0 30px;
}

.issue-body .issue-item + .issue-item {
  border-top: 1px solid var(--rule);
}

.issue-body .issue-item h3 {
  margin-bottom: 10px;
}

.issue-item-kicker,
.issue-group-heading {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.issue-body .issue-item-kicker {
  margin: 0 0 10px;
}

.issue-body .issue-group-heading {
  margin: 30px 0 8px;
}

.issue-body .issue-section-grouped > h2 + .issue-group-heading {
  margin-top: 22px;
}

.issue-body .issue-section-grouped > p {
  margin-top: 0;
  margin-bottom: 16px;
}

.issue-body p,
.issue-body li {
  color: var(--ink-2);
  line-height: 1.68;
}

.issue-body section p,
.issue-body aside p,
.issue-body li {
  margin-top: 8px;
}

.issue-body ul {
  margin: 14px 0 0 20px;
  padding: 0;
}

.issue-body li + li {
  margin-top: 12px;
}

.issue-body aside:not(.subscribe-panel) {
  padding: 20px 22px;
  background: var(--panel);
  border-left: 3px solid var(--masthead);
}

.issue-body > aside.issue-section:not(.subscribe-panel) > h2 {
  padding-top: 0;
  border-top: 0;
}

.issue-body aside:not(.subscribe-panel) .issue-item {
  padding-bottom: 0;
}

.issue-footer {
  margin-top: 42px;
}

.issue-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin-top: 32px;
}

.issue-navigation a:last-child {
  justify-self: end;
}

.issue-navigation a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.plain-panel,
.status-panel {
  padding: 28px;
}

.plain-panel > p,
.status-panel > p {
  margin-top: 12px;
  color: var(--ink-2);
}

.plain-panel .email-form {
  margin-top: 22px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--page);
}

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

@media (max-width: 780px) {
  .wrap {
    width: min(100% - 32px, 1120px);
  }

  .header-inner,
  .footer-inner,
  .inline-form-row,
  .hero-grid,
  .landing-section-grid,
  .section-heading-row,
  .subscribe-panel,
  .list-row {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner {
    display: grid;
    justify-items: start;
    gap: 8px;
    padding: 14px 0;
  }

  .utility-nav {
    justify-content: flex-start;
  }

  .masthead-inner,
  .hero-grid {
    padding: 40px 0 44px;
  }

  .publication-hero {
    min-height: auto;
  }

  .hero-form,
  .plain-panel,
  .status-panel {
    padding: 20px;
  }

  .hero-form {
    justify-self: start;
    max-width: none;
  }

  .hero-form .inline-form-row {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding: 40px 0;
  }

  .archive-shell {
    padding: 36px 0;
  }

  .archive-wrap {
    padding-bottom: 0;
  }

  .archive-list .list-row {
    gap: 10px;
    align-items: start;
    padding: 22px 0 24px;
  }

  .latest-preview {
    padding-right: 20px;
    padding-left: 20px;
  }

  .latest-preview .section-heading-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .text-link {
    white-space: normal;
  }

  .issue-shell {
    background: var(--paper);
  }

  .issue-body {
    padding: 40px 0 56px;
  }

  .issue-navigation {
    grid-template-columns: 1fr;
  }

  .issue-navigation a:last-child {
    justify-self: start;
  }
}
