@font-face {
  font-family: "GT Planar";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/GT-Planar-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "GT Planar";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("assets/fonts/GT-Planar-Medium.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f2f2f7;
  --surface-elevated: #ffffff;
  --text: #101014;
  --text-secondary: #6e6e73;
  --text-tertiary: #8e8e93;
  --separator: rgb(60 60 67 / 16%);
  --separator-strong: rgb(60 60 67 / 28%);
  --accent: #101014;
  --accent-text: #ffffff;
  --warm: #f7f0e7;
  --cool: #e9f0f5;
  --radius: 8px;
  --shadow: 0 24px 70px rgb(0 0 0 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: "GT Planar", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a,
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(40px, 8vw, 104px);
  align-items: center;
  min-height: calc(100svh - 86px);
  padding: 28px 0 96px;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 11.5ch;
  margin-bottom: 0;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  font-weight: 700;
  line-height: 0.92;
}

.lede {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--text-secondary);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.app-store-button {
  display: inline-grid;
  min-width: 188px;
  min-height: 58px;
  align-content: center;
  padding: 10px 18px 11px;
  border-radius: var(--radius);
  color: var(--accent-text);
  background: var(--accent);
  text-decoration: none;
  box-shadow: 0 14px 34px rgb(0 0 0 / 16%);
}

.app-store-button:hover {
  transform: translateY(-1px);
}

.button-kicker {
  font-size: 0.74rem;
  line-height: 1;
  opacity: 0.78;
}

.button-label {
  margin-top: 3px;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
}

.signal-board {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--separator);
  border-radius: 24px;
  background:
    linear-gradient(180deg, var(--surface-elevated), var(--surface)),
    var(--surface);
  box-shadow: var(--shadow);
}

.story-preview {
  padding: 18px;
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 82%);
}

.story-preview-featured {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--accent-text);
  background:
    linear-gradient(180deg, rgb(16 16 20 / 72%), rgb(16 16 20 / 96%)),
    linear-gradient(135deg, var(--warm), var(--cool));
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.story-preview-featured .story-meta {
  color: rgb(255 255 255 / 68%);
}

.story-preview h2 {
  margin-bottom: 0;
  font-size: clamp(1.18rem, 1.5vw, 1.48rem);
  font-weight: 700;
  line-height: 1.12;
}

.story-preview p {
  margin: 14px 0 0;
  color: rgb(255 255 255 / 72%);
  line-height: 1.46;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 90px;
  border: 1px solid var(--separator);
  border-radius: 18px;
  background: var(--separator);
}

.principles > div {
  min-height: 220px;
  padding: 24px;
  background: var(--background);
}

.section-number {
  display: block;
  margin-bottom: 34px;
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

.principles h2 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  line-height: 1.12;
}

.principles p {
  margin-bottom: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--separator);
  color: var(--text-secondary);
}

.site-footer div:first-child {
  display: grid;
  gap: 5px;
}

.site-footer strong {
  color: var(--text);
}

.legal-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.legal-shell h1 {
  max-width: none;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
}

.legal-shell .lede {
  max-width: 680px;
  margin-bottom: 48px;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--separator);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 1.24rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  line-height: 1.58;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 8px;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .signal-board {
    width: min(100%, 500px);
  }

  .principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell,
  .site-footer,
  .legal-shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    min-height: 76px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.45rem);
  }

  .hero {
    padding-bottom: 58px;
  }

  .story-preview-featured {
    min-height: 220px;
  }

  .principles {
    margin-bottom: 54px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
