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

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

:root {
  /* Match the dark semantic palette in packages/ui/src/index.ts. */
  color-scheme: dark;
  --canvas: #071610;
  --cream: #f3e6cb;
  --secondary: #c5c1ac;
  --muted: #a5b09e;
  --amber: #f2b85f;
  --border: #35463a;
  font-family: Inter, system-ui, sans-serif;
  font-synthesis: none;
  background: var(--canvas);
  color: var(--cream);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 240px;
}

::selection {
  background: #f2a541;
  color: #172118;
}

p,
h1 {
  margin: 0;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5.5vw, 5rem);
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Newsreader, Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
}

.brand img {
  display: block;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}

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

.header-link:hover {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  z-index: 2;
  padding: 1rem;
  background: var(--cream);
  color: var(--canvas);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  min-height: min(44rem, calc(100svh - 7.5rem));
  padding-block: 2rem 4rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(3.25rem, 5.6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

h1 span {
  color: var(--amber);
}

.introduction {
  margin-top: 1.75rem;
  color: var(--secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 52px;
  margin-top: 2.25rem;
  padding: 0.9rem 1.5rem;
  border-radius: 2rem;
  background: #f2a541;
  color: #172118;
  font-size: 0.875rem;
  line-height: 1.6;
  text-decoration: none;
}

.primary-link:hover {
  background: #f2b85f;
}

.primary-link:active {
  background: #d98b28;
}

.about {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--border);
  scroll-margin-top: 2rem;
}

.section-heading {
  max-width: 41rem;
}

.section-heading .eyebrow {
  margin-bottom: 1rem;
}

h2,
h3 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-introduction {
  margin-top: 1.25rem;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 3.5rem;
}

.feature-number {
  margin-bottom: 1.5rem;
  color: var(--amber);
  font-size: 0.8125rem;
  line-height: 1.5;
}

h3 {
  font-size: 2rem;
  line-height: 1.3;
}

.feature h3 + p {
  margin-top: 0.75rem;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.artwork {
  min-width: 0;
  mix-blend-mode: lighten;
}

.artwork img {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-block: 1.5rem 1.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .header {
    padding-block: 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-block: 1.5rem 2rem;
    text-align: center;
  }

  .hero-copy {
    max-width: 34rem;
    margin-inline: auto;
  }

  h1 {
    font-size: clamp(3rem, 9vw, 4.75rem);
  }

  .eyebrow {
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
  }

  .introduction {
    margin-top: 1.25rem;
  }

  .primary-link {
    margin-top: 1.75rem;
  }

  .artwork {
    width: min(100%, 23rem);
    margin-inline: auto;
  }

  .features {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
    gap: 2rem;
  }

  .feature {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }

  .feature-number {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 380px) {
  .page {
    padding-inline: 1.25rem;
  }

  .desktop-break {
    display: none;
  }
}
