/* The Apex Letter. Broadsheet subscription page. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/fraunces-latin-standard-normal.woff2) format('woff2-variations'); }

:root {
  --paper: #F6F4EF;
  --ink: #141414;
  --ink-soft: #55534e;
  --rule: #d9d5cc;
  --white: #ffffff;
  --gold: #C9A84C;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}
@media (min-width: 640px) {
  .page { padding: 72px 24px 80px; }
}

/* Wordmark */
.wordmark {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--ink);
}

/* Masthead */
.masthead { margin-top: 40px; }
.masthead__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
@media (min-width: 640px) { .masthead__title { font-size: 60px; } }
.masthead__sub {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 32px;
  max-width: 34ch;
}

/* Form */
.form { margin: 0; }
.form__row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .form__row { flex-direction: row; } }
.form__input {
  flex: 1;
  font: inherit;
  font-size: 17px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  min-width: 0;
}
.form__input::placeholder { color: #8a877f; }
.form__submit {
  font: inherit;
  font-weight: 500;
  font-size: 17px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
}
.form__submit:hover { background: #000; }
.form__submit:disabled { opacity: 0.6; cursor: default; }
.form__turnstile { margin-top: 14px; min-height: 0; }
.form__error, .form__success { margin: 14px 0 0; font-size: 16px; }
.form__error { color: #8a1c1c; }
.form__success { font-family: var(--serif); font-size: 22px; }
.form__consent {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.form__consent a { color: var(--gold); }

/* Sections */
.section { margin-top: 72px; }
@media (min-width: 640px) { .section { margin-top: 96px; } }
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

/* Latest issue panel */
.issue {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 28px 22px 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) { .issue { padding: 36px 36px 0; } }
.issue__headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 10px;
}
.issue__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.issue__body p { margin: 0 0 1em; }
.issue__body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.1em;
  line-height: 0.8;
  float: left;
  padding: 6px 8px 0 0;
}
.issue__fade {
  position: relative;
  height: 56px;
  margin-top: -40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white) 70%);
  pointer-events: none;
}
.issue__more {
  position: relative;
  margin: 0;
  padding: 0 0 28px;
  text-align: center;
}
.issue__more a { color: var(--gold); font-weight: 500; text-decoration: none; }
.issue__more a:hover { text-decoration: underline; }

/* Inside the letter */
.inside {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
}
.inside li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.inside li:last-child { border-bottom: 0; }

/* Public calls */
.calls { width: 100%; border-collapse: collapse; font-size: 16px; }
.calls th, .calls td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.calls th { font-weight: 500; }
.calls th:first-child, .calls td:first-child { width: 6.5em; padding-right: 12px; }
.calls th:last-child, .calls td:last-child { width: 6em; text-align: right; }
.calls__empty td { color: var(--ink-soft); text-align: left; }
.calls__note { color: var(--ink-soft); font-size: 15px; margin: 14px 0 0; }

/* About */
.about { display: flex; gap: 20px; align-items: flex-start; }
.about__photo { width: 96px; height: 96px; flex: none; object-fit: cover; }
.about__text p { margin: 0 0 0.6em; }
.about__text p:last-child { margin-bottom: 0; }

/* Privacy page */
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 36px 0 8px;
}
.prose p { margin: 0 0 1em; }
.prose a { color: var(--gold); }

/* Footer */
.footer {
  margin-top: 96px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.footer p { margin: 0 0 0.8em; }
.footer a { color: var(--ink); }
