@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

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

:root {
  color-scheme: dark;
  --pine: #102c28;
  --ink: #e2ede0;
  --soft: #c5d9c8;
  --muted: #afc9b6;
  --dim: #94b29e;
  --clay: #d8a68b;
  --clay-soft: #e5c1ab;
  --sage: #a9d1b3;
  --rule: rgba(197, 222, 201, .27);
  --rule-soft: rgba(197, 222, 201, .15);
  --panel: rgba(197, 222, 201, .045);
  --radius: 6px;
  --ease: cubic-bezier(.22, .68, .12, 1);
  --serif: "Bodoni Moda", Georgia, serif;
  --sans: "Archivo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--pine);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 52% 40% at 0% 70%, rgba(4, 25, 22, .38), transparent 75%),
    var(--pine);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(216, 166, 139, .35);
}

.page {
  width: 100%;
  max-width: 1720px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  overflow-x: clip;
}

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .99;
}

.wordmark-mark {
  width: 39px;
  height: 39px;
  flex: none;
  stroke: #c1ddc6;
  stroke-width: 1.05;
  stroke-linecap: round;
}

/* Small label voice: data labels and footer */

.measurement-label,
.price-caption h2,
.footer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Hero */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  padding: clamp(40px, 4.5vw, 72px) 0 clamp(56px, 6vw, 88px);
}

.hero-content {
  min-width: 0;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.045em;
}

h1 {
  margin: 0 0 16px -.035em;
  font-size: clamp(2.4rem, 3.7vw, 3.8rem);
  line-height: 1.12;
}

h1 em {
  font-weight: 400;
}

/* Rental terms: one segmented control, native radios underneath */

.mode-selector {
  min-width: 0;
  margin: clamp(40px, 4.5vw, 64px) 0 0;
  padding: 0;
  border: 0;
}

.mode-options {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(124px, 1fr));
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  isolation: isolate;
}

.mode-options::before {
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: calc(var(--radius) - 2px);
  background: var(--ink);
  content: "";
  transition: transform .4s var(--ease);
}

.mode-options:has(input[value="spot"]:checked)::before {
  transform: translateX(100%);
}

.mode-option {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: calc(var(--radius) - 2px);
  color: var(--soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: color .3s ease;
}

.mode-option:hover {
  color: var(--ink);
}

.mode-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.mode-option:has(input:checked) {
  color: var(--pine);
  font-weight: 700;
}

.mode-option:has(input:focus-visible) {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

/* The number and its status */

.price-region {
  margin-top: 36px;
}

.price-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.price-caption h2 {
  margin: 0;
  color: var(--soft);
}

.price-display {
  min-width: 0;
  container-type: inline-size;
}

.state-title {
  max-width: 11ch;
  margin: 16px 0 0 -.035em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3.15rem, 5.4vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

[data-state="current"] .state-title,
[data-state="retained"] .state-title {
  max-width: none;
  /* --price-em reserves the six-decimal width in em so the number fits its column. */
  font-size: clamp(1.75rem, calc(100cqw / (var(--price-em, 4.8) + .1)), 5.75rem);
  letter-spacing: -.065em;
  line-height: 1.08;
  font-variant-numeric: lining-nums tabular-nums;
}

.price-digits {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  letter-spacing: 0;
}

.price-digit,
.price-punctuation {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
}

.price-digit {
  width: .51em;
  text-align: center;
}

.price-punctuation {
  margin-right: -.025em;
}

.price-glyph {
  display: block;
}

.state-title[data-direction="up"] .price-digit:nth-last-child(-n+3) {
  color: #c4e3c3;
}

.state-title[data-direction="down"] .price-digit:nth-last-child(-n+3) {
  color: #dfb69e;
}

.price-digit {
  transition: color 650ms ease;
}

.state-description,
.noscript-message {
  max-width: 40ch;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}

[data-state="retained"] .state-description {
  color: var(--clay-soft);
}

.observation {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 9px;
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.observation span {
  color: var(--muted);
}

.provider-refresh-notice {
  margin: 6px 0 0;
  color: var(--sage);
  font-size: 13px;
  line-height: 1.6;
}

.provider-refresh-notice[data-failed="true"] {
  color: var(--clay-soft);
}

/* Status badge: the one place a state is named; tone follows the real state */

.state-badge,
.badge {
  --tone: 175, 201, 182;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 11px 3px 9px;
  border: 1px solid rgba(var(--tone), .45);
  border-radius: 999px;
  background: rgba(var(--tone), .1);
  color: rgb(var(--tone));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

[data-state="current"] .state-badge,
.provider-card[data-state="checked"] .badge {
  --tone: 169, 209, 179;
}

[data-state="retained"] .state-badge,
[data-state="error"] .state-badge,
.provider-card[data-state="stale"] .badge,
.provider-card[data-state="error"] .badge,
.provider-card[data-state="blocked"] .badge {
  --tone: 229, 181, 150;
}

.caption-mark {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  animation: source-pulse 3.6s ease-in-out infinite;
  animation-play-state: paused;
}

.badge::before {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.provider-card[data-state="retained"] .badge::before,
.provider-card[data-state="loading"] .badge::before,
.provider-card[data-state="unavailable"] .badge::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

[data-state="waiting"] .caption-mark,
[data-state="loading"] .caption-mark {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* Unit, reference and basket sit directly under the number */

.measurement {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 44px;
  width: min(100%, 580px);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.measurement-item {
  min-width: 0;
}

.measurement-label {
  margin: 0 0 7px;
  color: var(--muted);
}

.measurement-value {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Weave: the one illustration, lit from behind */

.weave {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-width: 0;
  margin: 0;
  justify-self: end;
  isolation: isolate;
}

.weave::before {
  position: absolute;
  z-index: -1;
  inset: -12% -8% -8%;
  background: radial-gradient(closest-side, rgba(112, 160, 128, .34), rgba(112, 160, 128, .12) 58%, transparent 100%);
  content: "";
  pointer-events: none;
}

.weave svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 50%;
  animation: weave-drift 14s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.weave svg > circle:first-of-type {
  animation: weave-breath 7s ease-in-out infinite alternate;
  animation-play-state: paused;
}

html[data-motion="running"] .weave svg,
html[data-motion="running"] .weave svg > circle:first-of-type,
html[data-motion="running"] .caption-mark {
  animation-play-state: running;
}

@keyframes weave-drift {
  from { transform: translateY(3px) rotate(-.6deg) scale(.994); }
  to { transform: translateY(-5px) rotate(.8deg) scale(1.008); }
}

@keyframes weave-breath {
  from { opacity: .12; }
  to { opacity: .3; }
}

@keyframes source-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(169, 209, 179, 0); }
  45% { box-shadow: 0 0 0 5px rgba(169, 209, 179, .2); }
}

/* Sources & methodology */

.supply-details {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.7;
}

.supply-details:not([open]) > .supply-content {
  display: none;
}

.supply-details > summary {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  padding: 18px 56px 18px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  list-style: none;
  overflow-wrap: anywhere;
  transition: background .25s ease, border-color .25s ease;
}

.supply-details > summary::-webkit-details-marker {
  display: none;
}

.supply-details > summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--clay);
  border-bottom: 1.5px solid var(--clay);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}

.supply-details[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.supply-details > summary:hover {
  border-color: rgba(216, 166, 139, .55);
  background: rgba(197, 222, 201, .07);
}

.supply-label {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.supply-content {
  padding: 40px 0 8px;
}

.supply-lead {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: start;
}

.supply-status {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 15px;
}

.official-anchor {
  padding: 20px 22px 18px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--clay);
  border-radius: var(--radius);
  background: var(--panel);
  overflow-wrap: anywhere;
}

.official-anchor p {
  margin: 4px 0;
}

.official-anchor .measurement-label {
  margin-bottom: 8px;
}

.official-anchor .official-anchor-price {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -.04em;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}

.official-anchor p:not(.measurement-label):not(.official-anchor-price) {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.official-anchor .index-calculation {
  margin-top: 18px;
}

.method {
  min-width: 0;
}

.method-note {
  padding: 0 0 18px;
}

.method-note + .method-note {
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}

.method-note h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.method-note p {
  max-width: 64ch;
  margin: 0;
}

.supply-offers-heading {
  margin: 44px 0 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.supply-empty {
  margin: 14px 0 0;
  color: var(--muted);
}

/* One card per provider: three voters, each with its own audit trail */

.supply-providers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-card {
  min-width: 0;
  padding: 22px 22px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  overflow-wrap: anywhere;
}

.provider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-head h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.provider-representative {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.rep-price {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: -.04em;
  line-height: 1.2;
  font-variant-numeric: lining-nums tabular-nums;
}

.per-unit {
  color: var(--muted);
  font-family: var(--sans);
  font-size: .46em;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.rep-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.provider-message {
  margin: 16px 0;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.supply-facts {
  min-width: 0;
  margin: 0;
}

.supply-facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1px 16px;
  padding: 7px 0;
  border-top: 1px solid var(--rule-soft);
}

.supply-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.supply-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.supply-facts .is-empty {
  color: var(--dim);
}

.supply-facts--checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}

.supply-facts--checks > div {
  display: block;
  padding: 0;
  border: 0;
}

.supply-facts--checks dt {
  margin-bottom: 2px;
}

.supply-facts--checks dd {
  font-size: 13px;
}

.index-inputs {
  margin: 16px 0 0;
  border-top: 1px solid var(--rule-soft);
}

.index-inputs summary {
  position: relative;
  padding: 12px 24px 12px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12.5px;
  list-style: none;
}

.index-inputs summary::-webkit-details-marker {
  display: none;
}

.index-inputs summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--clay);
  border-bottom: 1.5px solid var(--clay);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}

.index-inputs[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.index-inputs summary:hover {
  color: var(--ink);
}

.index-inputs ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.index-inputs li {
  padding: 12px 0;
  border-top: 1px solid var(--rule-soft);
}

.index-inputs p {
  margin: 0;
}

.input-place {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.input-rate {
  color: var(--soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.input-meta {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.supply-offers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.supply-offers li {
  min-width: 0;
  padding: 16px 0 4px;
  border-top: 1px solid var(--rule-soft);
  overflow-wrap: anywhere;
}

.supply-offers h5 {
  margin: 0 0 8px;
  font-weight: 400;
}

.quote-place {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.quote-kind {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.supply-offers p {
  margin: 0;
}

.quote-rate {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.quote-basis {
  margin-top: 3px;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.supply-offers .supply-facts {
  margin: 10px 0 0;
}

.supply-details a {
  color: var(--soft);
  text-underline-offset: 4px;
}

.supply-details .source-link {
  color: var(--ink);
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink);
  font-size: 13px;
}

.source-link::after {
  color: var(--clay);
  content: "↗";
  content: "↗" / "";
}

.supply-details summary:focus-visible,
.supply-details a:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

/* Closing */

.footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-top: clamp(36px, 4vw, 64px);
  padding: 20px 0 28px;
  border-top: 1px solid var(--rule-soft);
  color: var(--muted);
}

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

@media (min-width: 801px) {
  h1 {
    font-size: 2.4rem;
  }
}

/* Wide: three providers read as three threads */

@media (min-width: 1080px) {
  .supply-providers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Rows are shared across the three cards so name, mean, notes, checks and rates line up. */
  .provider-card {
    display: grid;
    grid-row: span 6;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .provider-card > .provider-head { grid-row: 1; }
  .provider-card > .provider-representative { grid-row: 2; }
  .provider-card > .provider-message { grid-row: 3; }
  .provider-card > .supply-facts--checks { grid-row: 4; }
  .provider-card > .index-inputs { grid-row: 5; }
  /* The empty note and the rate list never show together, so they share the last row. */
  .provider-card > .supply-empty,
  .provider-card > .supply-offers { grid-row: 6; }
}

@media (max-width: 1079px) {
  .supply-offers {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 0 32px;
  }
}

@media (max-width: 900px) {
  .supply-lead {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 56px 0 56px;
  }

  .mode-selector {
    margin-top: 44px;
  }

  .measurement {
    width: 100%;
  }

  .mode-options {
    display: grid;
    width: 100%;
  }

  .weave {
    width: min(72%, 400px);
    align-self: flex-end;
    margin: 36px 0 0;
  }

}

@media (max-width: 480px) {
  .page {
    padding-right: 22px;
    padding-left: 22px;
  }

  .masthead {
    padding: 20px 0 18px;
  }

  .hero-grid {
    padding: 44px 0 52px;
  }

  h1 {
    font-size: clamp(2.15rem, 9vw, 2.9rem);
  }

  .mode-selector {
    margin-top: 36px;
  }

  .price-region {
    margin-top: 32px;
  }

  .state-title {
    font-size: clamp(2.9rem, 10vw, 4rem);
  }

  .measurement {
    gap: 18px 32px;
  }

  .weave {
    width: min(78%, 320px);
  }

  .supply-details > summary {
    padding: 16px 48px 16px 18px;
  }

  .supply-details > summary::after {
    right: 18px;
  }

  .supply-content {
    padding-top: 32px;
  }

  .provider-card {
    padding: 20px 18px 10px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .weave svg,
  .weave svg > circle:first-of-type,
  .caption-mark {
    animation: none;
  }

  .price-digit,
  .mode-option,
  .mode-options::before,
  .supply-details > summary,
  .supply-details > summary::after,
  .index-inputs summary::after {
    transition: none;
  }
}
