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

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin-500-normal.woff2") format("woff2");
}

:root {
  --paper: #f3efe4;
  --ink: #16130f;
  --red: #8f1d18;
  --field: #f7f4ec;
  --serif-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --serif-text: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--paper);
  color-scheme: light;
}

body {
  margin: 0;
  padding: 0 1rem 3.5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1.125rem;
  line-height: 1.5;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

a:visited {
  color: inherit;
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.6rem;
  z-index: 2;
}

.skip:focus {
  top: 0.5rem;
}

.masthead {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.1rem 0 0.85rem;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}

.nameplate {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.nameplate a,
.mast-nav a,
.colophon nav a {
  text-decoration: none;
}

.nameplate a:hover,
.mast-nav a:hover,
.colophon nav a:hover {
  color: var(--red);
}

.edition {
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mast-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.7rem;
}

.mast-nav a,
.colophon nav a,
.quiet {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

main section,
.sheet {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.45rem 0 0.2rem;
}

main section {
  border-top: 1px solid var(--ink);
  margin-top: 1.35rem;
}

main section.break {
  max-width: 46rem;
}

#hero {
  border-top: 0;
  margin-top: 0;
}

.kicker {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

h1,
h2,
.nameplate {
  font-family: var(--serif-display);
  font-weight: 600;
}

h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.12;
}

h3 {
  margin: 1.15rem 0 0.25rem;
  font-family: var(--serif-text);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
}

p,
li {
  margin: 0 0 0.85rem;
}

.deck {
  margin-bottom: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  margin: 0 0 0.4rem;
}

.action {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.action:visited {
  color: var(--red);
}

.action:hover {
  background: var(--red);
  color: var(--paper);
}

.action:active {
  background: var(--ink);
  color: var(--paper);
}

.action:disabled,
button.action:disabled {
  background: transparent;
  color: #6f675f;
  border-color: #6f675f;
  cursor: not-allowed;
}

form.is-loading .action {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.plate {
  margin: 1rem 0 0.4rem;
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.05);
}

figcaption {
  margin-top: 0.4rem;
  font-style: italic;
  font-size: 0.98rem;
}

.limits {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4rem 0 1rem;
  font-size: 1.02rem;
}

.limits caption {
  caption-side: top;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding-bottom: 0.45rem;
}

.limits th,
.limits td {
  border-top: 1px solid var(--ink);
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem 0.55rem 0;
  font-weight: 400;
}

.limits th {
  font-family: var(--sans);
  font-size: 0.82rem;
  width: 46%;
  letter-spacing: 0.01em;
}

.source {
  overflow-wrap: anywhere;
  font-family: var(--sans);
  font-size: 0.82rem;
}

.limit-note {
  border-left: 1px solid var(--ink);
  padding-left: 0.8rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.field {
  margin: 0 0 0.9rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  padding: 0.55rem 0.6rem;
  box-shadow: none;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

input:hover,
textarea:hover,
input:focus,
textarea:focus {
  background: #fffdf8;
}

input.is-error,
textarea.is-error,
.field.is-error input,
.field.is-error textarea {
  border-color: var(--red);
  background: #f8ece8;
}

.field-error {
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}

.field-error:empty {
  display: none;
}

.form-summary {
  border: 1px solid var(--red);
  padding: 0.6rem 0.75rem;
  margin: 0 0 1rem;
  color: var(--red);
}

.form-summary[hidden] {
  display: none;
}

.colophon {
  max-width: 40rem;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 4px solid var(--ink);
}

.colophon nav {
  display: block;
  margin: 0 0 0.95rem;
}

.colophon nav a,
#cookie-settings {
  margin: 0 0.85rem 0.35rem 0;
}

.foot-label {
  margin: 0 0 0.3rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

#cookie-settings,
button.quiet {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#cookie-settings:hover,
button.quiet:hover {
  color: var(--red);
}

.privacy-banner {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  color: var(--ink);
  border-top: 4px solid var(--ink);
  padding: 0.85rem 1rem 1rem;
  max-height: 55vh;
  overflow: auto;
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.privacy-banner h2 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin: 0.3rem 0 0.8rem;
}

.privacy-banner .action,
.choice-controls .action {
  text-transform: none;
}

.consent-list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.consent-list li {
  margin: 0;
  border-bottom: 1px solid var(--ink);
}

.consent-list label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0;
  font-family: var(--serif-text);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.consent-list input {
  width: 1rem;
  height: 1rem;
  padding: 0;
}

.consent-list input:disabled {
  cursor: not-allowed;
}

#consent-panel[hidden] {
  display: none;
}

.choice-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.4rem 0 1rem;
}

body.has-banner {
  padding-bottom: 18rem;
}

address {
  font-style: normal;
  margin-top: 0.9rem;
}

address span,
address a {
  display: block;
}

.is-success h1 {
  color: var(--ink);
}

ol {
  padding-left: 1.2rem;
}

@media (max-width: 374px) {
  .actions .action,
  #question .action,
  .banner-actions .action,
  .choice-controls .action {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .limits tr {
    display: block;
    border-top: 1px solid var(--ink);
    padding: 0.6rem 0;
  }

  .limits th,
  .limits td {
    display: block;
    width: auto;
    border: 0;
    padding: 0;
  }

  .limits td {
    margin-top: 0.2rem;
  }
}

@media (min-width: 375px) {
  body {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

@media (min-width: 768px) {
  body {
    padding: 0 2.5rem 4.5rem;
  }

  h1 {
    font-size: 3.15rem;
  }

  main section,
  .sheet {
    padding-top: 1.8rem;
  }
}

@media (min-width: 1024px) {
  .nameplate {
    font-size: 4.4rem;
  }
}

@media (min-width: 1440px) {
  body {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}
