@font-face {
  font-family: Barlow;
  src: url("assets/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("assets/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-900-italic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f2dec0;
  --cream: #ffedcc;
  --ink: #331f25;
  --wine: #432433;
  --berry: #732d3d;
  --mustard: #ffc83e;
  --rust: #a85238;
  --line: #67443b;
  --body: Barlow, system-ui, sans-serif;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --grain: url("assets/grain.webp");
  --gutter: clamp(17px, 4.1vw, 68px);
  --max: 1340px;
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #962b55; outline-offset: 5px; }
::selection { color: var(--ink); background: var(--mustard); }

body {
  background-image: linear-gradient(#f1dec1db, #f1dec1db), var(--grain);
}

.page-width {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 9px auto auto 9px;
  padding: 12px 18px;
  background: var(--mustard);
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus { transform: none; }

.site-header {
  border-bottom: 1px solid #4f292555;
  background: #f8e6c979;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 83px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  font: italic 900 24px/.81 var(--display);
  text-transform: uppercase;
}

.brand img { object-fit: contain; flex: none; }

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(21px, 3.2vw, 53px);
  font: 500 13px/1.2 var(--mono);
  text-transform: uppercase;
}

.navigation a { position: relative; padding: 14px 0; white-space: nowrap; }
.navigation a::after {
  content: "";
  position: absolute;
  inset: auto 0 8px;
  height: 2px;
  background: var(--berry);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .17s ease;
}

.navigation a:hover::after, .navigation a[aria-current]::after { transform: scaleX(1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  padding: 0 14px;
  border: 1px solid;
  border-radius: 3px;
  font: 700 15px/1.05 var(--body);
  white-space: nowrap;
  transition: transform .17s ease, box-shadow .17s ease, background-color .17s ease;
  -webkit-tap-highlight-color: transparent;
}

.button img { flex: none; object-fit: contain; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(2px); box-shadow: none; }

.header-buy {
  justify-self: end;
  padding-inline: 17px;
  background: var(--mustard);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-transform: uppercase;
}

.header-buy:hover, .button-buy:hover { background: #ffda63; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  min-height: clamp(560px, 46vw, 675px);
  margin-top: clamp(18px, 2.8vw, 43px);
  background: radial-gradient(ellipse at 20% 0%, #683447 0%, #452434 45%, #331e2b 100%);
  border: 2px solid #351e26;
  box-shadow: 0 7px 0 #8a4b391c;
  color: var(--cream);
}

.hero::before, .market::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--grain);
  mix-blend-mode: soft-light;
  opacity: .29;
  pointer-events: none;
}

.hero-copy {
  display: flex;
  min-width: 0;
  container-type: inline-size;
  flex-direction: column;
  justify-content: center;
  gap: clamp(25px, 3.1vw, 44px);
  padding: 37px clamp(23px, 3.8vw, 60px) 42px;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  gap: 9px;
  padding: 3px 11px;
  color: var(--cream);
  border: 1px solid #c78a81;
  background: #411e315e;
  font: 500 13px/1 var(--mono);
  letter-spacing: .09em;
}

.ticker-label span, .chart-status::before {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 0 0 11px #ffc83e80;
}

h1, h2, h3 { font: italic 900 2rem/.92 var(--display); text-transform: uppercase; }

.hero h1 {
  margin: 20px 0 22px -3px;
  font-size: clamp(60px, 9.2vw, 142px);
  font-size: clamp(58px, 28cqi, 142px);
  letter-spacing: -.018em;
  line-height: .79;
  text-shadow: 2px 4px 0 #230f1b9c;
}

.hero h1 em { display: block; color: var(--mustard); }
.hero-line { color: #f7dbc1; font-size: clamp(17px, 1.7vw, 23px); line-height: 1.28; }

.hero-actions { display: grid; gap: 12px; }

.button-buy {
  position: relative;
  min-height: 63px;
  justify-content: flex-start;
  padding-inline: 17px 14px;
  color: var(--ink);
  background: var(--mustard);
  border-color: #fff0b2;
  box-shadow: 0 5px 0 #9e5529, 0 7px 0 #21121c;
  font-size: clamp(21px, 1.8vw, 27px);
  text-transform: uppercase;
}

.arrow { margin-inline-start: auto; font: 500 1.17em/1 var(--mono); }
.hero-links { display: flex; gap: 7px; }

.button-secondary {
  background: #2e1b2b;
  border-color: #b77580;
  color: var(--cream);
}

.button-secondary:hover { background: #6a3448; }
.hero-links .button { flex: 1; gap: 6px; padding-inline: 7px; font-size: clamp(12px, 1.06vw, 15px); }
.hero :focus-visible, .market :focus-visible { outline-color: var(--mustard); }

.hero-figure {
  position: relative;
  min-width: 0;
  min-height: 100%;
  background: #51333a;
  border-left: 2px solid #b2705b9c;
}

.hero-figure > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #1d1218b5, transparent 28%);
  pointer-events: none;
}

.hero-figure figcaption {
  position: absolute;
  z-index: 1;
  inset: auto auto clamp(15px, 2.3vw, 34px) clamp(15px, 2.3vw, 34px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 clamp(10px, 1vw, 13px)/1.1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hero-figure figcaption span { color: var(--mustard); font-size: 1.6em; }

.open-stamp {
  position: absolute;
  z-index: 1;
  right: clamp(15px, 2.8vw, 40px);
  bottom: clamp(19px, 2.8vw, 40px);
  display: grid;
  align-content: center;
  justify-items: center;
  width: clamp(82px, 8.6vw, 126px);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 4px 4px 0 #21121cac;
  color: var(--ink);
  font: italic 900 clamp(25px, 3.25vw, 46px)/.78 var(--display);
  text-transform: uppercase;
  text-align: center;
  transform: rotate(10deg);
}

.open-stamp::before { content: ""; inset: 5px; position: absolute; border: 1px dashed var(--ink); border-radius: 50%; }
.open-stamp i { margin-top: .2em; font: normal .38em/1 var(--mono); }

.ticker-window {
  --ticker-height: 53px;
  --item-width: 232px;
  display: grid;
  align-items: center;
  margin-block: 10px 0;
  min-height: calc(var(--ticker-height) + 3.5vw + 12px);
  overflow-x: clip;
}

.ticker-tilt {
  width: calc(100% + 128px);
  margin-left: -64px;
  overflow: hidden;
  transform: rotate(-2deg);
  border-block: 2px solid var(--ink);
  background: linear-gradient(#ffca3de7, #ffca3de7), var(--grain);
}

.ticker-track { display: flex; width: max-content; animation: ticker-roll var(--duration, 28s) linear infinite; }
.ticker-group { display: flex; flex: none; }
.ticker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 var(--item-width);
  width: var(--item-width);
  height: calc(var(--ticker-height) - 4px);
  padding-inline: 26px;
  font: italic 900 28px/1 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-item b { color: var(--berry); font: 500 18px/1 var(--mono); }
@keyframes ticker-roll { to { transform: translateX(-50%); } }

.roadmap { padding-block: clamp(32px, 5vw, 76px) clamp(56px, 7vw, 105px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px 30px; margin-bottom: 26px; }
.section-heading h2 { font-size: clamp(57px, 7.7vw, 113px); letter-spacing: -.013em; }
.section-heading p { max-width: 270px; padding-bottom: 4px; color: #61392d; font-size: 19px; line-height: 1.32; }

.roadmap-photo {
  width: 100%;
  height: clamp(175px, 22vw, 310px);
  object-fit: cover;
  object-position: center 49%;
  border: 2px solid var(--line);
}

.shift-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.shift {
  padding: clamp(17px, 2.5vw, 33px);
  background-image: linear-gradient(var(--tint), var(--tint)), var(--grain);
  border: 1px solid var(--line);
  box-shadow: 3px 4px 0 #714c3e;
}

.shift-opening { --tint: #f1c887ee; }
.shift-crew { --tint: #dfadacee; }
.shift-late { --tint: #dfd49bee; }
.shift .shift-number { padding-bottom: 12px; border-bottom: 1px dashed #784b4c91; font: 500 13px/1.3 var(--mono); text-transform: uppercase; }
.shift h3 { margin-block: 17px 9px; font-size: clamp(28px, 3.15vw, 47px); }
.shift > p:last-child { max-width: 36ch; font-size: 17px; line-height: 1.36; }

.market {
  position: relative;
  isolation: isolate;
  padding-block: clamp(42px, 6.5vw, 94px);
  border-block: 3px solid #301920;
  background: radial-gradient(ellipse at 13% 0%, #633749, #341e2c 63%);
  color: var(--cream);
}

.market-link { min-height: 48px; }
.market-link .arrow { padding-left: 5px; }
.chart-window { --chart-height: clamp(410px, 45vw, 620px); overflow: hidden; border: 1px solid #b97884; border-radius: 5px; box-shadow: 5px 6px 0 #1c121b; background: #201721; }
.chart-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 17px; gap: 10px; min-height: 51px; border-bottom: 1px solid #825264; background: #412739; font: 500 12px/1.2 var(--mono); }
.chart-bar > span { display: inline-flex; align-items: center; gap: 8px; }
.chart-status { color: #ffd47a; }
.chart-status::before { content: ""; }
.chart-window iframe { display: block; width: 100%; height: var(--chart-height); border: 0; }

.chart-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  min-height: var(--chart-height);
  padding: 24px;
  text-align: center;
  background-image: radial-gradient(ellipse at center, #201721 16%, transparent 79%),
    linear-gradient(#b77e921b 1px, transparent 1px), linear-gradient(90deg, #b77e921b 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.chart-placeholder h3 { font-size: clamp(26px, 3vw, 41px); }
.chart-placeholder p { color: #edc7bf; font-size: 16px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 83px; }
.footer-inner .brand { font-size: 20px; }
.footer-token { font: 500 13px/1 var(--mono); }
.footer-socials { display: flex; gap: 8px; }
.footer-social { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.launch-dialog {
  position: fixed;
  width: min(calc(100% - 32px), 420px);
  padding: 24px clamp(20px, 5vw, 36px) 32px;
  text-align: center;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 7px 0 var(--berry);
}

.launch-dialog::backdrop { background: #21131de0; }
.dialog-mark { margin: 0 auto 10px; }
.launch-dialog h2 { font-size: 42px; }
.launch-dialog p { margin-block: 12px 22px; line-height: 1.4; }
.launch-dialog .button { min-height: 45px; font-size: 17px; }
.contract-field { width: 100%; margin-bottom: 14px; padding: 10px; border: 1px solid var(--line); background: var(--cream); font: 500 13px/1.1 var(--mono); }

.toast {
  position: fixed;
  z-index: 4;
  inset: auto auto 20px 50%;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 13px 20px;
  border: 1px solid var(--ink);
  background: var(--mustard);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 15px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); min-height: 490px; }
  .hero-copy { padding-inline: clamp(20px, 3vw, 34px); }
  .hero-links .button { gap: 4px; padding-inline: 5px; }
  .hero-links .button img { width: 15px; }
}

@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 14px; padding-top: 7px; }
  .header-inner .brand img { width: 48px; height: 48px; }
  .header-inner .brand { font-size: 20px; }
  .header-buy { min-height: 38px; padding-inline: 10px; font-size: 13px; }
  .header-buy img { width: 20px; height: 20px; }
  .navigation { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 14px; font-size: 11px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "photo" "actions"; min-height: auto; }
  .hero-copy { display: contents; }
  .hero-intro { grid-area: intro; container-type: inline-size; padding: 22px clamp(16px, 5vw, 38px) 20px; }
  .hero h1 { margin-block: 15px 11px; font-size: clamp(49px, 16.4cqi, 102px); line-height: .83; }
  .hero h1 em { display: inline; }
  .hero-actions { grid-area: actions; padding: 14px clamp(16px, 5vw, 38px) 18px; }
  .hero-figure { grid-area: photo; min-height: 0; aspect-ratio: 1.3; border-left: 0; border-block: 1px solid #b2705b9c; }
  .hero-figure > img { object-position: center 41%; }
  .button-buy { min-height: 55px; }
  .hero-links .button { min-height: 43px; font-size: 13px; }
  .ticker-window { --ticker-height: 42px; --item-width: 168px; }
  .ticker-item { padding-inline: 16px; font-size: 22px; }
  .ticker-item b { font-size: 14px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 18px; }
  .section-heading p { max-width: 34ch; padding-bottom: 0; font-size: 17px; }
  .roadmap-photo { height: clamp(138px, 41vw, 260px); object-position: 51% center; }
  .shift-list { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .shift h3 { font-size: 34px; }
  .shift > p:last-child { max-width: 52ch; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: clamp(43px, 16.4cqi, 61px); }
  .hero-links .button { font-size: 12px; }
  .hero-links .button img { width: 13px; }
}

@media (max-width: 370px) {
  .hero-links .button { gap: 3px; padding-inline: 3px; font-size: 11px; }
}

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

[hidden] { display: none !important; }
