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

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

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

@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/gambetta-light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/gambetta-medium-italic.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: italic;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/inter-extralight-italic.woff2') format('woff2');
}

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

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

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-regular.woff2') format('woff2');
}

/* Shared foundations. Layout coordinates follow the supplied Figma frames. */
:root {
  --cream: #f7f9fc;
  --olive: #004d13;
  --rule-thickness: 1px;
  --rule-color: var(--olive);
  --nav-height: 75px;
  --heading-gap: calc(20 * var(--layout-unit));
  --layout-unit: min(1px, calc(var(--usable-viewport-width, 100vw) / 1440));
  --block-height: calc(800 * var(--layout-unit));
  --block-gap: calc(200 * var(--layout-unit));
  --section-offset: calc(150 * var(--layout-unit));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--section-offset);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--olive);
  font: 300 calc(20 * var(--layout-unit))/1.5 Inter, Arial, sans-serif;
  overflow-x: clip;
  -webkit-user-select: none;
  user-select: none;
}

p, figure, h1, h2 {
  margin: 0;
}

strong {
  font-weight: 600;
}

em {
  font-weight: 200;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--rule-thickness);
  text-decoration-color: var(--rule-color);
  text-underline-offset: 6px;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 6px;
}

input, textarea, [contenteditable=true] {
  -webkit-user-select: text;
  user-select: text;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

picture {
  display: block;
  width: 100%;
  height: 100%;
}

figure {
  position: relative;
}

main, header {
  position: relative;
  isolation: isolate;
  margin: auto;
  width: 100%;
  max-width: 1440px;
}

.image-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--cream);
  height: 100%;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: var(--olive);
  color: var(--cream);
  z-index: 99;
}

header[tabindex="-1"]:focus, main>section[tabindex="-1"]:focus {
  outline: none;
}

/* Fixed navigation. Its opaque background spans the window. */
body>nav {
  position: fixed;
  inset: 0 0 auto;
  margin-inline: auto;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(20 * var(--layout-unit));
  width: 100%;
  max-width: 1440px;
  height: var(--nav-height);
  padding: 0 calc(20 * var(--layout-unit));
  align-items: center;
  text-align: center;
  background: var(--cream);
}

body>nav::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--cream);
  z-index: -1;
  pointer-events: none;
}

nav a {
  line-height: 30px;
}

/* Version 25: centered auto-layout hero, with an independent decoration. */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(calc(450 * var(--layout-unit)), calc(100svh - var(--nav-height) - 100 * var(--layout-unit)), calc(700 * var(--layout-unit)));
  padding-top: calc(100 * var(--layout-unit));
  margin-top: var(--nav-height);
  margin-bottom: clamp(0px, calc(100svh - var(--nav-height) - 800 * var(--layout-unit)), var(--block-gap));
}

.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(50 * var(--layout-unit));
  text-align: center;
}

h1 {
  font: italic 500 calc(250 * var(--layout-unit))/normal Gambetta, Georgia, serif;
  text-box: trim-both cap alphabetic;
}

.brand p {
  font: 300 calc(20 * var(--layout-unit))/normal Inter, Arial, sans-serif;
  text-box: trim-both cap alphabetic;
}

/* Section headings: one baseline, equal gaps, native 1 px borders. */
main {
  padding-bottom: calc(200 * var(--layout-unit));
}

main>section {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: calc(150 * var(--layout-unit));
  height: var(--block-height);
  min-height: 0;
  margin: 0 calc(20 * var(--layout-unit)) var(--block-gap);
}

main>section:last-of-type {
  margin-bottom: 0;
}

h2 {
  position: relative;
  display: flex;
  align-items: end;
  gap: var(--heading-gap);
  height: auto;
  flex-shrink: 0;
  font: italic 400 calc(70 * var(--layout-unit))/1.5 Newsreader, Georgia, serif;
  white-space: nowrap;
  overflow: visible;
}

h2>span:not(.heading-text) {
  flex: none;
  width: calc(23 * var(--layout-unit));
  text-box: trim-both cap alphabetic;
  font: 400 calc(20 * var(--layout-unit))/1 Newsreader, Georgia, serif;
}

h2>.heading-text {
  display: inline-block;
  flex: none;
  font: inherit;
  text-box: trim-both cap alphabetic;
  text-align: left;
  transform-origin: left center;
  transform: scaleX(1.02115);
}

.markets h2>.heading-text {
  transform: scaleX(1.02883);
}

.contact h2>.heading-text {
  transform: scaleX(1.0214);
}

.heading-line {
  flex: 0 0 calc(507 * var(--layout-unit));
  height: 1px;
  border-top: 1px solid var(--rule-color);
  pointer-events: none;
}

.markets .heading-line {
  flex-basis: calc(792 * var(--layout-unit));
}

.contact .heading-line {
  flex-basis: calc(501 * var(--layout-unit));
}

.mobile-break {
  display: none;
}

/* Paired content follows Figma's horizontal auto-layout. */
.history-content, .contact-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: calc(142 * var(--layout-unit));
  height: calc(603 * var(--layout-unit));
  flex-shrink: 0;
}

.history-content figure {
  order: 1;
  flex: 0 0 calc(483 * var(--layout-unit));
  height: 100%;
}

.history-content>p {
  text-align: center;
  text-box: trim-both cap alphabetic;
  width: calc(459 * var(--layout-unit));
  line-height: calc(30 * var(--layout-unit));
}

/* Weekly markets. Colgroup keeps the accessible table header from shifting columns. */
.markets {
  gap: 0;
}

.markets table {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(197 * var(--layout-unit));
  width: calc(443 * var(--layout-unit));
  border-collapse: collapse;
  table-layout: fixed;
}

.market-day-column, .markets th {
  width: calc(284 * var(--layout-unit));
}

.market-city-column, .markets td {
  width: calc(159 * var(--layout-unit));
}

.markets th, .markets td {
  position: relative;
  height: calc(80 * var(--layout-unit));
  padding: 0;
  vertical-align: top;
  line-height: calc(80 * var(--layout-unit));
}

.markets th {
  text-align: left;
  font-weight: 600;
}

.markets td {
  text-align: center;
  font-weight: 300;
}

.market-day, .market-city, .market-time {
  display: block;
  text-box: trim-both cap alphabetic;
}

.market-day {
  width: calc(97 * var(--layout-unit));
  text-align: center;
}

.market-time {
  position: absolute;
  left: calc(70 * var(--layout-unit));
  top: calc(28.35295 * var(--layout-unit));
  width: max-content;
  text-align: left;
  font-weight: 200;
  font-style: italic;
}

.market-notes {
  position: absolute;
  left: calc(285 * var(--layout-unit));
  top: calc(800 * var(--layout-unit));
  transform: translateY(-100%);
  text-box: trim-both cap alphabetic;
  font-size: calc(20 * var(--layout-unit));
  font-weight: 200;
  line-height: calc(30 * var(--layout-unit));
}

/* Contact and footer. */
.contact-content {
  order: 1;
  text-align: center;
  text-box: trim-both cap alphabetic;
  width: calc(459 * var(--layout-unit));
  line-height: calc(30 * var(--layout-unit));
}

.contact a {
  overflow-wrap: anywhere;
}

.contact-photo {
  flex: 0 0 calc(482 * var(--layout-unit));
  height: 100%;
}

footer {
  position: absolute;
  bottom: 0;
  height: calc(75 * var(--layout-unit));
  display: grid;
  place-items: center;
  left: 0;
  right: 0;
  text-align: center;
  line-height: calc(30 * var(--layout-unit));
}

.footer-link {
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: var(--rule-thickness);
}

.footer-link:hover {
  text-decoration: underline;
}

/* Illustrations. SVG paths and dimensions come from the supplied frames. */
.illustration {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: .1;
  transform-origin: top left;
}

.ink-filter {
  position: absolute;
}

.ink-filter feFlood {
  flood-color: var(--olive);
}

.illustration img, .cursor-shape {
  filter: url('#illustration-ink');
}

.illustration img {
  object-fit: fill;
}

.illustration-brand {
  left: 50%;
  top: 50%;
  width: calc(582.184 * var(--layout-unit));
  height: calc(526 * var(--layout-unit));
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(-22.342857deg);
}

.illustration-crow {
  left: calc(36 * var(--layout-unit));
  top: calc(123 * var(--layout-unit));
  width: calc(383 * var(--layout-unit));
  height: calc(338 * var(--layout-unit));
}

.illustration-fox {
  right: max(calc(-532 * var(--layout-unit)), calc((100% - var(--usable-viewport-width, 100vw)) / 2));
  top: calc(315 * var(--layout-unit));
  width: calc(1195 * var(--layout-unit));
  height: auto;
  aspect-ratio: 1195 / 515;
}

/* A single SVG supplies both mouse cursor forms. */
.hero-cursor {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  position: fixed;
  left: 0;
  top: 0;
  width: 19.36px;
  height: 17.38649px;
  z-index: 100;
  pointer-events: none;
  will-change: transform;
}

.hero-cursor[hidden] {
  display: none;
}

.cursor-shape {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;
}

@media (hover: hover) and (pointer: fine) {
  html, body, body * {
    cursor: url('../illustrations/cursor.svg') 0 0, auto;
  }
  html.has-custom-cursor, html.has-custom-cursor * {
    cursor: none;
  }
}

/* Mobile: scale the 390 x 1650 frame to the usable viewport width. */
@media (max-width: 760px) {
  :root {
    --layout-unit: calc(var(--usable-viewport-width, 100vw) / 390);
    --block-height: calc(350 * var(--layout-unit));
    --block-gap: calc(50 * var(--layout-unit));
    --heading-gap: calc(10 * var(--layout-unit));
  }
  html {
    scroll-padding-top: 20px;
  }
  body {
    font-size: calc(12 * var(--layout-unit));
    line-height: 1.25;
    -webkit-touch-callout: none;
  }
  img {
    -webkit-touch-callout: none;
    pointer-events: none;
  }
  body>nav {
    display: none;
  }
  main, header {
    max-width: none;
  }
  header {
    height: calc(350 * var(--layout-unit));
    margin: 0 0 var(--block-gap);
  }
  .brand {
    position: absolute;
    inset: 0;
    display: block;
  }
  h1 {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    top: calc(131.6 * var(--layout-unit));
    height: calc(54.4 * var(--layout-unit));
    font-size: calc(80 * var(--layout-unit));
    line-height: 1.28;
    text-box: normal;
  }
  .brand p {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(205 * var(--layout-unit));
    font: 300 calc(12 * var(--layout-unit))/1.25 Gambetta, Georgia, serif;
  }
  .illustration-brand {
    left: 50%;
    top: calc(175 * var(--layout-unit));
    width: calc(170.92 * var(--layout-unit));
    height: calc(154.425 * var(--layout-unit));
  }
  main {
    padding: 0;
    height: calc(1250 * var(--layout-unit));
    overflow: visible;
  }
  main>section {
    display: block;
    margin: 0 calc(10 * var(--layout-unit)) var(--block-gap);
  }
  h2 {
    height: auto;
    font-size: calc(35 * var(--layout-unit));
  }
  h2>span:not(.heading-text) {
    width: calc(11 * var(--layout-unit));
    font-size: calc(8 * var(--layout-unit));
  }
  .heading-line, .contact .heading-line {
    flex-basis: calc(96 * var(--layout-unit));
  }
  .markets .heading-line {
    flex-basis: calc(159 * var(--layout-unit));
  }
  h2>.heading-text {
    transform: scaleX(.97014);
  }
  .markets h2>.heading-text {
    transform: scaleX(.97081);
  }
  .contact h2>.heading-text {
    transform: scaleX(.97153);
  }
  .mobile-break {
    display: initial;
  }
  .history-content {
    position: absolute;
    inset: 0;
    display: block;
    height: auto;
    padding: 0;
  }
  .contact-body {
    display: contents;
  }
  .history-content figure {
    position: absolute;
    left: calc(205 * var(--layout-unit));
    top: calc(73 * var(--layout-unit));
    width: calc(165 * var(--layout-unit));
    height: calc(277 * var(--layout-unit));
  }
  .history-content>p {
    position: absolute;
    transform: translateY(-50%);
    left: 0;
    top: calc(211.5 * var(--layout-unit));
    width: calc(180 * var(--layout-unit));
    line-height: calc(15 * var(--layout-unit));
  }
  .illustration-crow {
    left: calc(20 * var(--layout-unit));
    top: calc(83 * var(--layout-unit));
    width: calc(117 * var(--layout-unit));
    height: calc(103 * var(--layout-unit));
  }
  .markets {
    height: var(--block-height);
    margin-bottom: var(--block-gap);
  }
  .markets table {
    transform: none;
    left: calc(60 * var(--layout-unit));
    top: calc(73 * var(--layout-unit));
    width: calc(256.4 * var(--layout-unit));
    font-size: calc(12 * var(--layout-unit));
  }
  .market-day-column {
    width: calc(160.4 * var(--layout-unit));
  }
  .market-city-column {
    width: calc(96 * var(--layout-unit));
  }
  .markets th {
    width: calc(160.4 * var(--layout-unit));
  }
  .markets td {
    width: calc(96 * var(--layout-unit));
  }
  .markets th, .markets td {
    height: calc(35 * var(--layout-unit));
    line-height: calc(30 * var(--layout-unit));
  }
  .market-day {
    width: calc(59 * var(--layout-unit));
  }
  .market-time {
    left: calc(35.36 * var(--layout-unit));
    top: calc(15.73999 * var(--layout-unit));
  }
  .market-notes {
    font-weight: 200;
    left: 0;
    top: calc(342 * var(--layout-unit));
    font-size: calc(12 * var(--layout-unit));
    line-height: calc(18 * var(--layout-unit));
  }
  .illustration-fox {
    left: calc(142 * var(--layout-unit));
    top: calc(178 * var(--layout-unit));
    width: calc(370 * var(--layout-unit));
    height: calc(160 * var(--layout-unit));
  }
  .contact-content {
    position: absolute;
    transform: translateY(-50%);
    left: calc(190 * var(--layout-unit));
    top: calc(211.5 * var(--layout-unit));
    width: calc(180 * var(--layout-unit));
    line-height: calc(15 * var(--layout-unit));
  }
  .contact-photo {
    position: absolute;
    left: 0;
    right: auto;
    top: calc(73 * var(--layout-unit));
    width: calc(165 * var(--layout-unit));
    height: calc(277 * var(--layout-unit));
  }
  footer {
    bottom: 0;
    font-size: calc(12 * var(--layout-unit));
    line-height: calc(18 * var(--layout-unit));
  }
  a, a:hover {
    text-decoration: none;
    background: linear-gradient(var(--rule-color), var(--rule-color)) left bottom / 100% var(--rule-thickness) no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .footer-link, .footer-link:hover {
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Legal notices panel */
html.legal-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.legal-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--cream);
  color: var(--olive);
  --legal-unit: min(1px, .0694444444vw);
  font-size: calc(20 * var(--legal-unit));
  line-height: calc(30 * var(--legal-unit));
}

.legal-page::backdrop {
  background: transparent;
}

.legal-scroll {
  height: 100%;
  overflow: auto;
  overscroll-behavior: none;
  outline: none;
}

.legal-page .legal-content {
  margin-inline: auto;
  width: 100%;
  max-width: 1440px;
  height: auto;
  min-height: calc(3315 * var(--legal-unit));
  padding: calc(118.1 * var(--legal-unit)) calc(20 * var(--legal-unit)) calc(150 * var(--legal-unit));
}

.legal-title {
  position: static;
  display: flex;
  align-items: end;
  justify-content: start;
  gap: calc(20 * var(--legal-unit));
  height: auto;
  font: italic 400 calc(70 * var(--legal-unit))/1.5 Newsreader, Georgia, serif;
  text-box: trim-both cap alphabetic;
  white-space: nowrap;
}

.legal-title > span {
  text-box: trim-both cap alphabetic;
}

.legal-title > .legal-number {
  flex: 0 0 calc(23 * var(--legal-unit));
  font: 400 calc(20 * var(--legal-unit))/1 Newsreader, Georgia, serif;
}

.legal-title::before {
  content: "";
  flex: 0 0 calc(284 * var(--legal-unit));
  border-top: 1px solid var(--rule-color);
}

.legal-sections {
  display: grid;
  grid-template-rows: minmax(min-content, calc(584 * var(--legal-unit))) minmax(min-content, calc(344 * var(--legal-unit))) minmax(min-content, calc(434 * var(--legal-unit))) minmax(min-content, calc(644 * var(--legal-unit))) minmax(min-content, calc(524 * var(--legal-unit))) auto;
  margin: calc(190 * var(--legal-unit)) calc(142 * var(--legal-unit)) 0;
  text-align: center;
}

.legal-section h2 {
  display: block;
  height: auto;
  font: 400 calc(40 * var(--legal-unit))/normal Inter, Arial, sans-serif;
  text-box: trim-both cap alphabetic;
  white-space: normal;
}

.legal-copy {
  margin-top: calc(100 * var(--legal-unit));
  text-box: trim-both cap alphabetic;
}

.legal-section[aria-labelledby="copyright-title"] .legal-copy {
  max-width: calc(690 * var(--legal-unit));
  margin-inline: auto;
}

.legal-section p + p {
  margin-top: calc(30 * var(--legal-unit));
}

.legal-section strong {
  font-weight: 500;
}

.legal-section a {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .legal-page {
    --legal-unit: 1px;
    font-size: 16px;
    line-height: 24px;
  }
  .legal-page .legal-content {
    min-height: 0;
    padding: 40px 20px;
  }
  .legal-title {
    font-size: clamp(30px, 7.5vw, 56px);
    gap: 10px;
  }
  .legal-title > .legal-number {
    flex-basis: 16px;
    font-size: 14px;
  }
  .legal-title::before {
    flex-basis: 10%;
  }
  .legal-sections {
    grid-template-rows: none;
    gap: 60px;
    margin: 80px 0 0;
  }
  .legal-section h2 {
    font-size: 28px;
  }
  .legal-copy {
    margin-top: 35px;
  }
  .legal-section p + p {
    margin-top: 24px;
  }
}
