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

@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/literata-latin.woff2") format("woff2");
}

@font-face {
  font-family: Literata;
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/literata-italic-latin.woff2") format("woff2");
}

:root {
  --paper: #f3efe4;
  --paper-2: #e8e0d0;
  --card: #faf7f1;
  --ink: #1c1612;
  --ink-soft: #4e453c;
  --red: #6d221e;
  --red-deep: #541814;
  --line: #d4cbb8;
  --gold: #8d6a32;
  --inverse: #241c18;
  --inverse-text: #f3efe4;
  --measure: 68ch;
  --header: 4.75rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Literata, Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 420;
  line-height: 1.6;
}

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

a {
  color: var(--red);
  text-underline-offset: 0.16em;
}

a:hover { color: var(--red-deep); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 30;
}

.skip:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 239, 228, 0.96);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 58px;
}

.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 660;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle:focus-visible + .bar .nav-button {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.menu-close { display: none; }

.nav-toggle:checked + .bar .menu-open { display: none; }
.nav-toggle:checked + .bar .menu-close { display: inline; }

.nav-button {
  font-family: Fraunces, Georgia, serif;
  font-size: 1rem;
  border: 1px solid var(--ink);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 0.85rem;
  gap: 0.55rem;
}

.nav-toggle:checked ~ .nav .nav-links { display: grid; }

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

@media (min-width: 1180px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.65rem 1.25rem;
  }
  .bar { padding: 0; }
  .nav-button { display: none; }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0;
    gap: 0.35rem 1.1rem;
  }
}

.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3.2rem 0 2.5rem;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    padding: 4.2rem 0 3rem;
  }
}

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

h1, h2, h3, .brand-name, .button {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
  scroll-margin-top: 5.5rem;
}

h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 5.5rem;
}

.lede, .prose p, .audience p, .quote p, .note p, .cta p {
  max-width: var(--measure);
}

.lede {
  font-size: 1.25rem;
  line-height: 1.45;
}

.rule {
  width: 4.5rem;
  border: 0;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--gold);
  height: 5px;
  margin: 1.2rem 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.4rem;
}

.button {
  display: inline-block;
  background: var(--red);
  color: var(--inverse-text);
  text-decoration: none;
  padding: 0.8rem 1.1rem;
  border-radius: 3px;
  font-weight: 560;
  font-size: 1.05rem;
  line-height: 1.2;
}

.button:hover { background: var(--red-deep); color: white; }

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.button.secondary:hover { background: var(--ink); color: var(--paper); }

.portrait {
  margin: 0;
  justify-self: center;
}

.portrait img {
  width: min(100%, 22rem);
  display: block;
}

.band {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.band.tight { padding-top: 2.2rem; }

.audience {
  display: grid;
  gap: 0;
}

.audience article {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.audience article:last-child { border-bottom: 1px solid var(--line); }

.audience h3 { margin: 0; }

@media (min-width: 700px) {
  .audience article { grid-template-columns: 14rem 1fr; align-items: baseline; }
}

.inverse {
  background: var(--inverse);
  color: var(--inverse-text);
}

.inverse a { color: #f0d7a8; }

.inverse .kicker { color: #e7c98a; }

.exam-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.exam-names a {
  display: inline-block;
  border: 1px solid rgba(243, 239, 228, 0.35);
  color: var(--inverse-text);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 3px;
}

.exam-names a:hover { border-color: #f0d7a8; color: #f0d7a8; }

.quotes {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .quotes { grid-template-columns: 1fr 1fr; }
}

.quote {
  margin: 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--red);
}

.quote p {
  margin: 0;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
}

.quote footer {
  margin-top: 0.55rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 14rem 1fr; }
}

.about-grid img { width: min(100%, 14rem); }

.cta {
  padding: 3rem 0 3.6rem;
  background: var(--paper-2);
}

.checked {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.95rem;
  color: var(--ink);
}

.note {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
}

.note p { margin: 0.4rem 0; }

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0 0.4rem;
  border: 1px solid var(--line);
  background: var(--card);
}

.table-scroll:focus { outline-offset: -2px; }

table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 1rem;
}

caption {
  caption-side: bottom;
  text-align: left;
  padding: 0.55rem 0.7rem 0.7rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

th {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
}

thead th { background: var(--paper-2); }

tbody th:first-child,
thead th:first-child {
  position: sticky;
  left: 0;
  min-width: 12rem;
  box-shadow: 1px 0 0 var(--line);
}

tbody th:first-child {
  z-index: 1;
  background: var(--card);
}

thead th:first-child {
  z-index: 2;
  background: var(--paper-2);
}

tbody tr:nth-child(even) > * { background: #f3ecdf; }

@media (max-width: 760px) {
  .table-scroll::before {
    content: "Swipe sideways. The first column stays put.";
    display: block;
    padding: 0.55rem 0.75rem 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
  }
}

main.wrap {
  padding-top: 2.6rem;
  padding-bottom: 3.5rem;
}

.prose h2 { margin-top: 2.4rem; }

.sources { font-size: 1rem; }
.sources li { margin: 0.35rem 0; }

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 38rem;
  margin-top: 0.6rem;
}

.form label { display: grid; gap: 0.3rem; font-weight: 680; }

.form input,
.form textarea {
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 1px solid #b7ad9b;
  border-radius: 3px;
  padding: 0.6rem 0.7rem;
}

.form textarea { min-height: 9rem; resize: vertical; }

.form button {
  justify-self: start;
  font: inherit;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  background: var(--red);
  color: var(--inverse-text);
  border: 0;
  border-radius: 3px;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
}

.form button:hover { background: var(--red-deep); }

.hint { margin: 0; color: var(--ink-soft); font-size: 1rem; font-weight: 420; }

.honey {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: space-between;
}

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

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.offers {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 800px) {
  .offers { grid-template-columns: 1fr 1fr; }
}

.offers a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem 1.15rem;
  color: inherit;
  text-decoration: none;
}

.offers a:hover { border-color: var(--red); }

.offers h3 {
  margin: 0 0 0.35rem;
  color: var(--red);
}

.offers p { margin: 0; }

.country {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.country img {
  height: 1.35rem;
  width: auto;
  flex: none;
  box-shadow: 0 0 0 1px rgba(28, 22, 18, 0.28);
}

.brush-flag { margin: 0.2rem 0 1rem; }

.brush-flag img {
  width: min(100%, 16rem);
  display: block;
}

.form fieldset {
  border: 1px solid #b7ad9b;
  background: var(--card);
  margin: 0;
  padding: 0.7rem 0.85rem 0.9rem;
}

.form legend {
  font-weight: 680;
  padding: 0 0.25rem;
}

.form label.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 420;
  margin-top: 0.45rem;
}

.form label.check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.28rem;
  flex: none;
}

.req { color: var(--red); }

.form-error {
  margin: 0;
  color: var(--red-deep);
  font-weight: 680;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .nav-button, .skip, .form { display: none; }
  body { background: white; }
  .inverse { background: white; color: black; }
  a { color: black; }
}
