/* Landing page — page-specific styles. Colors, type, and spacing come from tokens.css. */

:root {
  --landing-bg: var(--color-terracotta);
  --landing-ink: var(--color-cream);
  --landing-soft: #f2d9c8; /* a lighter terracotta tint, for body text on the terracotta background — not in tokens.css since no other surface needs it */
  --landing-cta-bg: var(--color-cream);
  --landing-cta-text: var(--color-terracotta-dark);
  --landing-pad-x: clamp(20px, 4vw, 64px);
  --landing-pad-top: clamp(20px, 3vw, 48px);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: var(--landing-pad-top) var(--landing-pad-x) calc(clamp(32px, 5vw, 64px) + env(safe-area-inset-bottom, 0px));
  background: var(--landing-bg);
  color: var(--landing-ink);
}

.landing {
  container-type: inline-size;
  width: 100%;
  text-align: left;
}

/* The hero title and its "by" line are the one deliberate exception to the
   shared --text-* scale: a fluid, container-relative display size for the
   single oversized hero statement, not reusable body/UI copy. */
.landing h1 {
  font-variation-settings: "opsz" 96, "wght" 800;
  font-size: 14.5cqw;
  color: var(--landing-ink);
  white-space: nowrap;
  margin: 0;
  line-height: 1;
}

.landing .logo-by {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48, "wght" 500;
  font-optical-sizing: none;
  font-size: clamp(1.4rem, 4.5vw, 2.5rem);
  line-height: 1;
  color: var(--landing-ink);
  margin: -4px 0 var(--space-4);
}

.landing .tagline {
  font-size: var(--text-md);
  color: var(--landing-soft);
  margin: 0 0 var(--space-6);
  line-height: 1.5;
  white-space: nowrap;
}

.landing .tagline-line { display: inline; }

.landing .cta {
  display: inline-block;
  text-align: left;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--landing-cta-text);
  background: var(--landing-cta-bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  text-decoration: none;
  cursor: pointer;
  margin: 0 0 var(--space-5);
  width: fit-content;
}

.landing .cta:hover { opacity: 0.9; }
.landing .cta:focus-visible { outline: 2px solid var(--landing-ink); outline-offset: 2px; }

.icon-link {
  top: calc(env(safe-area-inset-top, 0px) + var(--landing-pad-top));
  right: var(--landing-pad-x);
  width: 60px;
  height: 60px;
  background: none;
  border: none;
  color: var(--landing-ink);
}
.icon-link svg { width: 40px; height: 40px; stroke-width: 1.5; }

.brand-mark {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--landing-pad-top));
  left: var(--landing-pad-x);
  z-index: 20;
  width: 60px;
  height: 60px;
}

@media (max-width: 640px) {
  .landing h1 { white-space: normal; }
  .landing .logo-by { margin-top: 6px; }
  .landing .tagline { white-space: normal; }
  .landing .tagline-line { display: block; }
}
