:root {
  --field: #e7eef2;
  --ink: #12181d;
  --muted: #3e4d58;
  --rule: #c5d0d7;
  --paper: #f6fafb;
  --sea: #0c4a62;
  --cut: #0b6642;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Public Sans", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.home {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

body.home a { color: inherit; }

body.home a.console { color: var(--paper); }

body.home :focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

.sheet {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 18px;
}

.brand {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.top nav {
  display: flex;
  align-items: baseline;
  gap: 22px;
  font-size: 16px;
}

.top nav a { text-decoration: none; }

.top nav a:hover { text-decoration: underline; }

.console {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 8px 12px;
}

.console:hover { text-decoration: none; }

.hero { padding: 34px 0 8px; }

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  animation: settle 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero p {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

.hero-actions a.solid {
  background: var(--sea);
  color: #f4fafc;
  text-decoration: none;
  padding: 11px 14px;
}

.hero-actions a.quiet { color: var(--sea); }

.legend {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 42px;
  margin: 36px 0 8px;
  padding-top: 22px;
}

.legend::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
  animation: draw-rule 900ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.legend strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.legend span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
}

.rates { padding: 28px 0 12px; }

.rates h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 12px;
  padding: 0;
}

.filters button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 6px 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.filters button[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.table-scroll { overflow-x: auto; }

table.rates-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.rates-table th,
.rates-table td {
  text-align: left;
  padding: 13px 12px 13px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}

.rates-table th {
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}

.rates-table code {
  font-family: inherit;
  font-size: inherit;
}

.rates-table td.num,
.rates-table th.num {
  text-align: right;
  padding-right: 0;
  white-space: nowrap;
}

.rates-table td.cut {
  text-align: right;
  color: var(--cut);
  font-weight: 600;
}

.rates-table td.same {
  text-align: right;
  color: var(--muted);
}

.rates-table tbody {
  transition: opacity 160ms ease;
}

.rates-table.is-filtering tbody {
  opacity: 0.35;
}

.rates-table tbody tr {
  transition: background-color 160ms ease;
}

.rates-table tbody tr:hover { background: rgba(255, 255, 255, 0.55); }

.rates-table tr[hidden] { display: none; }

.rates-table .unit {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

.foot-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 68ch;
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 48px;
  padding: 18px 0 32px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

.colophon a { text-decoration: none; }

.colophon a:hover { text-decoration: underline; }

.top nav a[aria-current="page"] {
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
}

.page { padding: 36px 0 12px; }

.page h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.page .lede,
.page p {
  max-width: 66ch;
  color: var(--muted);
}

.page .lede { margin: 18px 0 0; font-size: 18px; }

.page h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.page section {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.page a { color: var(--sea); }

.page pre {
  margin: 22px 0 0;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--paper);
  overflow: auto;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
}

.page .note {
  margin: 14px 0 0;
  font-size: 15px;
}

.facts { margin: 8px 0 0; }

.facts div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.facts dt { color: var(--ink); }

.facts dd { margin: 0; color: var(--muted); }

.plain-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  margin-top: 22px;
  font-variant-numeric: tabular-nums;
}

.plain-table th,
.plain-table td {
  text-align: left;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--rule);
}

.plain-table th {
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}

.plain-table td.num,
.plain-table th.num { text-align: right; }

.plain-table code { font-family: inherit; }

@media (max-width: 720px) {
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .page h1 { max-width: none; }
}

@media (max-width: 720px) {
  .sheet { width: min(1120px, calc(100% - 28px)); }
  .top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .legend { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { max-width: none; }

  .rates .table-scroll { overflow: visible; }

  .rates table.rates-table {
    min-width: 0;
    display: block;
  }

  .rates .rates-table thead { display: none; }

  .rates .rates-table tbody { display: block; }

  .rates .rates-table tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }

  .rates .rates-table td {
    display: block;
    border: 0;
    padding: 0;
    text-align: left;
  }

  .rates .rates-table td:first-child { grid-column: 1 / -1; }

  .rates .rates-table td:nth-child(4) { display: none; }

  .rates .rates-table td.num,
  .rates .rates-table td.cut,
  .rates .rates-table td.same {
    text-align: right;
    white-space: nowrap;
  }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes draw-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

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

  .hero h1,
  .legend::before {
    animation: none;
  }

  .filters button,
  .rates-table tbody,
  .rates-table tbody tr {
    transition: none;
  }
}
