:root {
  --paper: #f3f0e8;
  --paper-wash: #e5eeeb;
  --ink: #1b2426;
  --ink-soft: #3e4c4f;
  --line: rgba(27, 36, 38, 0.14);
  --water: #1a6c74;
  --water-deep: #12383e;
  --water-dark: #0c2c31;
  --foam: #f6f3ec;
  --header-h: 4.75rem;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Segoe UI Mono", ui-monospace, Consolas, monospace;
  --measure: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.25vw + 0.94rem, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 4.4vw, 4.75rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.2;
}

p + p {
  margin-top: 1rem;
}

a {
  color: inherit;
}

::selection {
  background: #1d5c63;
  color: var(--foam);
}

:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--foam);
  color: var(--water-dark);
  padding: 0.5rem 0.75rem;
}

.skip:focus {
  top: 0.6rem;
}

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

.wrap {
  width: min(1680px, calc(100% - 2 * clamp(16px, 4vw, 120px)));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--water);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(246, 243, 236, 0.78);
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

.btn,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-solid {
  background: var(--water-deep);
  color: var(--foam);
  border: 1px solid var(--water-deep);
}

.btn-solid:hover {
  background: #1a4c54;
  border-color: #1a4c54;
}

.btn-foam {
  background: var(--foam);
  color: var(--water-dark);
  border: 1px solid var(--foam);
}

.btn-foam:hover {
  background: #fff;
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(27, 36, 38, 0.38);
}

.btn-line:hover {
  border-color: var(--ink);
  background: rgba(27, 36, 38, 0.04);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(27, 36, 38, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-ticker {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
}

.nav-link {
  padding-inline: 0.7rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
}

.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  color: var(--foam);
  background: var(--water-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 28, 32, 0.12) 0%, rgba(8, 28, 32, 0.08) 34%, rgba(8, 28, 32, 0.62) 68%, rgba(8, 28, 32, 0.86) 100%),
    linear-gradient(90deg, rgba(8, 28, 32, 0.62) 0%, rgba(8, 28, 32, 0.28) 46%, rgba(8, 28, 32, 0.02) 72%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 32rem);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3.25rem);
  padding-top: clamp(1.5rem, 4vh, 3rem);
  padding-bottom: clamp(1.75rem, 5.5vh, 4.5rem);
}

.hero-logo {
  width: clamp(8rem, 22vh, 16.5rem);
  height: auto;
  border: 1px solid rgba(246, 243, 236, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1rem;
  color: rgba(246, 243, 236, 0.9);
  font-size: clamp(1.02rem, 1.25vw, 1.25rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero .btn-line {
  color: var(--foam);
  border-color: rgba(246, 243, 236, 0.55);
}

.hero .btn-line:hover {
  border-color: var(--foam);
  background: rgba(246, 243, 236, 0.08);
}

.hero-note {
  margin-top: 0.9rem;
  color: rgba(246, 243, 236, 0.76);
  font-size: 0.92rem;
}

.story {
  padding-block: clamp(4rem, 9vh, 7.25rem);
  background: var(--paper);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6.5rem);
  align-items: start;
}

.story-year {
  margin: 0;
  color: var(--water-deep);
  font-family: var(--serif);
  font-size: clamp(4.25rem, 8vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.story-fact {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.1;
}

.aside-note {
  max-width: 16rem;
  margin-top: 0.85rem;
  color: var(--ink-soft);
}

.story-copy {
  max-width: 44rem;
  padding-top: 0.35rem;
  color: var(--ink-soft);
}

.lede {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  line-height: 1.45;
}

.story-copy blockquote {
  max-width: 36rem;
  margin: 2rem 0 1.75rem;
  padding: 1.15rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.story-copy blockquote p {
  color: var(--water-deep);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.32;
}

.posts {
  padding-block: clamp(3.5rem, 8vh, 6.5rem);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.posts-dek {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 34rem));
  justify-content: start;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
  margin-top: 1.75rem;
}

.post-grid .twitter-tweet {
  margin: 0;
  width: 100%;
}

.buy {
  padding-block: clamp(4rem, 9vh, 7.25rem);
  background: var(--paper-wash);
}

.buy-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.buy-intro p {
  margin: 1rem 0 1.4rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.25rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1;
  color: var(--water-deep);
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--ink-soft);
}

.contract {
  padding-block: clamp(4rem, 9vh, 7rem);
  background: var(--water-deep);
  color: var(--foam);
}

.contract-inner {
  max-width: 62rem;
}

.contract-dek {
  max-width: var(--measure);
  margin-top: 1rem;
  color: rgba(246, 243, 236, 0.82);
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(246, 243, 236, 0.28);
  border-bottom: 1px solid rgba(246, 243, 236, 0.28);
}

.ca-row code {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.03em;
  user-select: all;
}

#copy-ca {
  min-width: 9.75rem;
}

#copy-ca.is-copied {
  background: #d5e4df;
}

.copy-status {
  min-height: 1.5em;
  margin-top: 0.85rem;
  color: rgba(246, 243, 236, 0.9);
}

.chart {
  padding-block: clamp(4rem, 9vh, 7.25rem);
  background: var(--paper);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.chart-dek {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.chart-frame {
  margin-top: 1.5rem;
  height: clamp(22rem, 70vh, 40rem);
  background: #d5e3df;
  border: 1px solid rgba(27, 36, 38, 0.16);
}

.chart-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.community {
  padding-block: clamp(3.5rem, 8vh, 6rem);
  background: var(--paper-wash);
}

.community-inner {
  display: grid;
  grid-template-columns: minmax(0, 40rem) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.community-inner p {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.community-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: min(100%, 28rem);
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-height: 100%;
  padding: 1.1rem 1.15rem 1.15rem;
  color: var(--foam);
  background: var(--water-deep);
  text-decoration: none;
  transition: background-color 180ms ease;
}

.social-link:hover {
  background: #1a4c54;
}

.social-link-kicker {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.social-link-url {
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: 2.25rem 2.5rem;
  background: var(--water-dark);
  color: var(--foam);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 2rem;
  align-items: center;
}

.footer-name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.footer-meta,
.footer-note {
  color: rgba(246, 243, 236, 0.74);
  font-size: 0.92rem;
}

.footer-note {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.footer-nav a {
  color: var(--foam);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (max-width: 860px) {
  .story-grid,
  .buy-layout,
  .community-inner,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .story-aside {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.25rem;
    align-items: end;
  }

  .story-aside .eyebrow,
  .aside-note {
    grid-column: 1 / -1;
  }

  .aside-note {
    max-width: none;
  }

  .story-year {
    font-size: clamp(3.5rem, 16vw, 5.5rem);
  }

  .community-links {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(8, 28, 32, 0.2) 0%, rgba(8, 28, 32, 0.28) 30%, rgba(8, 28, 32, 0.72) 62%, rgba(8, 28, 32, 0.9) 100%);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.9rem;
  }

  .hero-logo {
    width: clamp(4.5rem, 26vw, 7rem);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 7.75rem;
  }

  .header-inner {
    flex-wrap: wrap;
    align-content: center;
    padding-block: 0.65rem;
  }

  .header-nav {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0.35rem;
  }

  .header-nav .nav-link,
  .header-nav .btn {
    width: 100%;
    padding-inline: 0.45rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .community-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .hero-logo {
    width: 3.5rem;
  }

  .hero h1 {
    font-size: 2.05rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .hero-layout {
    padding-top: 1rem;
    padding-bottom: 1.1rem;
  }

  .brand-name {
    font-size: 0.98rem;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .hero-logo {
    width: clamp(5.5rem, 18vh, 8.5rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 5vh, 3.1rem);
  }

  .hero-sub {
    margin-top: 0.65rem;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 0.9rem;
  }

  .hero-layout {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    gap: 1.25rem;
  }
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-logo,
  .hero-copy {
    animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy {
    animation-delay: 0.08s;
  }

  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .story-copy.reveal.is-in,
  .steps.reveal.is-in {
    transition-delay: 90ms;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
