@font-face {
  font-family: "Inter Tight";
  src: url("fonts/of-inter-tight-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/of-inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f4ef;
  --ink: #151513;
  --lime: #faff69;
  --rule: rgba(21, 21, 19, 0.26);
  --rule-soft: rgba(21, 21, 19, 0.13);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.paper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1340px;
  margin: 0 auto;
  padding: 28px 34px 0;
}

/* ---- masthead ---- */

.masthead {
  text-align: center;
}

.wordmark {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(54px, 15.4vw, 222px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  margin: 0 0 14px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.wordmark-dot {
  letter-spacing: 0;
}

.rule-double {
  height: 6px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.edition {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 9px 1px 0;
  font-size: 10px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.16em;
  text-align: left;
}

.edition span:last-child {
  text-align: right;
}

/* ---- the fold ---- */

.fold {
  display: grid;
  grid-template-columns: 0.82fr 2.1fr 0.88fr;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 34px;
}

.lead-col {
  padding-right: 24px;
}

.table-col {
  border-left: 1px solid var(--ink);
  padding: 0 24px;
}

.notes-col {
  border-left: 2px solid var(--lime);
  padding-left: 22px;
}

/* ---- lead column ---- */

.standfirst {
  margin: 0 0 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.2em;
}

.lead-head {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 800;
  font-size: 33px;
  line-height: 1.01;
  letter-spacing: -0.034em;
  text-wrap: balance;
  margin: 0 0 12px;
}

.lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.34;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.lead::first-letter {
  float: left;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 800;
  font-size: 63px;
  line-height: 0.74;
  padding: 8px 8px 0 0;
}

.cutline {
  margin: 20px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  line-height: 1.38;
  color: rgba(21, 21, 19, 0.72);
  text-align: justify;
  hyphens: auto;
}

/* ---- the table ---- */

.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.rates caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 8px;
  font-size: 11px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.rates thead th {
  padding: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  vertical-align: bottom;
}

.rates thead th.align-right {
  text-align: right;
}

.sort {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  width: 100%;
  padding: 6px 5px 7px;
  border: 0;
  background: none;
  color: inherit;
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-align: left;
  cursor: pointer;
}

.align-right .sort {
  justify-content: flex-end;
  text-align: right;
}

.rates thead th:last-child .sort {
  padding-left: 22px;
}

.sort:hover,
.sort:focus-visible {
  background: rgba(21, 21, 19, 0.06);
}

.sort:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: -1px;
}

.arrow {
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(-1px);
}

th.is-sorted .arrow {
  opacity: 1;
}

.rates tbody td {
  padding: 16px 6px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: baseline;
}

.rates tbody tr:last-child td {
  border-bottom: 1px solid var(--ink);
}

.rates .model {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.rates .num {
  text-align: right;
  white-space: nowrap;
}

.rates .card {
  white-space: nowrap;
  text-align: left;
  padding-left: 22px;
  color: rgba(21, 21, 19, 0.82);
}

.rates tbody tr {
  transition: background-color 120ms linear;
}

.rates tbody tr:hover {
  background: rgba(21, 21, 19, 0.045);
}

/* ---- notes column ---- */

.notes-head {
  margin: 0 0 4px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.2em;
  font-weight: 400;
}

.note h3 {
  margin: 20px 0 4px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.note p {
  margin: 0;
  font-size: 12.75px;
  line-height: 1.38;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.link-line {
  margin: 24px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.link-line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.link-line a:hover {
  border-bottom-color: var(--ink);
  background: rgba(21, 21, 19, 0.07);
}

/* ---- folio ---- */

.folio {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding: 10px 0 22px;
  border-top: 1px solid var(--ink);
  font-size: 10px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.15em;
}

/* ---- phone ---- */

@media (max-width: 1080px) {
  .paper {
    min-height: 100vh;
    padding: 18px 20px 0;
  }

  .wordmark {
    margin-bottom: 9px;
  }

  .edition {
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
    letter-spacing: 0.13em;
  }

  .edition span:last-child {
    text-align: left;
  }

  .fold {
    grid-template-columns: 1fr;
    padding-top: 16px;
    padding-bottom: 0;
  }

  .lead-col {
    padding-right: 0;
  }

  .table-col {
    border-left: 0;
    border-top: 1px solid var(--ink);
    padding: 18px 0 0;
    margin-top: 20px;
  }

  .notes-col {
    border-left: 2px solid var(--lime);
    padding: 0 0 0 16px;
    margin-top: 22px;
  }

  .lead-head {
    font-size: 27px;
  }

  .rates {
    font-size: 11.5px;
  }

  .sort {
    font-size: 8.5px;
    letter-spacing: 0.1em;
    padding: 6px 3px 7px;
  }

  .rates thead th:last-child .sort {
    padding-left: 10px;
  }

  .rates .card {
    padding-left: 10px;
  }

  .rates tbody td {
    padding: 7px 3px;
  }

  .rates .model {
    font-size: 11.5px;
  }

  .note p {
    font-size: 12.5px;
  }

  .folio {
    flex-direction: column;
    gap: 3px;
    margin-top: 24px;
  }
}

@media (max-width: 430px) {
  .paper {
    padding: 15px 16px 0;
  }

  .rates {
    font-size: 10.5px;
  }

  .rates .model {
    font-size: 10.5px;
    letter-spacing: -0.02em;
  }

  .sort {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .rates caption {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .rates tbody td {
    padding: 7px 2px;
  }

  .lead {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .paper {
    max-width: none;
    padding: 0;
  }

  .rates tbody tr:hover {
    background: none;
  }
}
