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

:root {
  color-scheme: dark;
  --ink: #ececea;
  --ink-2: #cbcbc8;
  --muted: #9f9f9b;
  --line: #424240;
  --line-strong: #d6d6d2;
  --bg: #2a2a2a;
  --bg-alt: #303030;
  --up: #84c39c;
  --down: #e3907f;
  --field-bg: #222222;
  --field-line: #4c4c49;
  --btn-bg: #ececea;
  --btn-fg: #161616;
  --btn-hover: #ffffff;
  --footer-bg: #1f1f1f;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  color: #fff;
}
.site-header.solid { position: static; color: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-weight: 650;
  letter-spacing: 0.2em;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.site-header nav a {
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0.88;
}
.site-header nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  min-height: max(520px, min(88vh, 860px));
  min-height: max(520px, min(88svh, 860px));
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #0b0f19;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 55%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  /* Darken the top for the nav, then fade the bottom into the page colour so there is no hard edge. */
  background: linear-gradient(to bottom,
    rgba(5, 8, 15, 0.45) 0%,
    rgba(5, 8, 15, 0) 22%,
    rgba(5, 8, 15, 0) 48%,
    rgba(20, 20, 22, 0.55) 72%,
    rgba(42, 42, 42, 0.92) 90%,
    var(--bg) 97%,
    var(--bg) 100%);
  bottom: -1px;
}
.hero-text {
  position: relative;
  width: 100%;
  padding-bottom: clamp(40px, 8vh, 88px);
  --sub: clamp(16px, 1.6vw, 19px);
}
/* The block is as wide as the title, and the line below wraps to that width. */
.hero-copy { width: min-content; max-width: 100%; }
.hero h1 {
  margin: 0 0 16px;
  white-space: nowrap;
  font-size: min(calc(var(--sub) * 3.36), calc((100vw - 2 * var(--gutter)) / 7.6));
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.hero p {
  margin: 0;
  font-size: var(--sub);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

/* Sections */
.section { padding: clamp(64px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.hero + .section { border-top: 0; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  column-gap: clamp(24px, 5vw, 80px);
}
.section-label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 6px;
}
.section-body > :first-child { margin-top: 0; }
.lead {
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.38;
  letter-spacing: -0.015em;
  font-weight: 450;
  margin: 0 0 24px;
}
.section-body p { max-width: 40em; }
.note { color: var(--muted); font-size: 14px; margin: 0; }
.note.small { font-size: 13px; margin-top: 16px; }

/* Facts */
.facts {
  margin: 56px 0 0;
  border-top: 1px solid var(--line-strong);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-size: 15px; }

/* Markets */
.quotes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin-top: 48px;
}
.data-note { margin: -16px 0 56px; }
.quote-group h3,
.hours h3 {
  margin: 0;
  padding-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
}
.quote-group ul { list-style: none; margin: 0 0 40px; padding: 0; }
.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name last" "spark chg";
  column-gap: 12px;
  row-gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.q-name { grid-area: name; font-size: 15px; font-weight: 500; }
.q-last { grid-area: last; font-size: 15px; text-align: right; }
.q-spark { grid-area: spark; align-self: center; height: 22px; color: var(--ink-2); }
.q-spark svg { display: block; width: 100%; max-width: 140px; height: 22px; overflow: visible; }
.q-chg { grid-area: chg; font-size: 13px; text-align: right; color: var(--muted); }
.q-chg.up { color: var(--up); }
.q-chg.down { color: var(--down); }
.quote.na .q-last, .quote.na .q-chg { color: var(--muted); }

.skeleton { color: transparent !important; background: var(--line); border-radius: 2px; }

/* Exchange hours */
.hours { margin-top: 24px; }
.hours-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line-strong); }
.hours-head h3 { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.hours-table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
}
.hours-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours-table td:last-child, .hours-table th:last-child { padding-right: 0; }
.ex-name { font-weight: 500; }
.ex-city { display: block; color: var(--muted); font-size: 13px; }
.st { white-space: nowrap; }
.st b { font-weight: 600; }
.st span { display: block; color: var(--muted); font-size: 13px; }
.st.closed b { font-weight: 450; color: var(--muted); }

/* Contact */
.contact-form { margin-top: 40px; max-width: 720px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { display: block; margin-bottom: 24px; }
.field span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.field em { font-style: normal; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--field-line);
  border-radius: 0;
  padding: 12px 14px;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
button {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: 0;
  padding: 13px 28px;
  cursor: pointer;
}
button:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
button:disabled { opacity: 0.6; cursor: default; }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.form-status { margin: 0; font-size: 15px; }
.form-status.error { color: var(--down); }

/* Footer */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, 0.72); padding: 56px 0 40px; font-size: 13px; line-height: 1.65; }
.footer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; color: #fff; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.footer-top a { font-size: 15px; }
.disclaimer { max-width: 60em; padding: 24px 0; }
.disclaimer p { margin: 0 0 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.5); }

/* Thanks page */
.thanks { padding-top: 96px; padding-bottom: 120px; }
.thanks h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 500; letter-spacing: -0.03em; margin: 0 0 16px; }

/* Responsive */
@media (max-width: 1000px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .section-label { margin-bottom: 24px; padding-top: 0; }
  .quotes { margin-top: 32px; }
  .facts { margin-top: 40px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .field-row { grid-template-columns: 1fr; }
  .col-hours { display: none; }
  .hours-table { font-size: 14px; }
}
@media (max-width: 560px) {
  .quotes { grid-template-columns: 1fr; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 13px; }
  .wordmark { font-size: 14px; letter-spacing: 0.16em; }
  .hero { min-height: max(520px, 78svh); }
  .hero-img { object-position: 60% 60%; }
}
@media (max-width: 400px) {
  .col-local { display: none; }
}
