/* Brand tokens taken from the current site: blush #e8b4b8, navy #053584, Space Grotesk. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Roles: one ground, one ink, one accent. */
  --ground: #e8b4b8;      /* blush */
  --ink: #1b1b1b;
  --accent: #053584;      /* navy: actions and links */
  --accent-press: #00267a;
  --on-accent: #ffffff;
  --margin: clamp(16px, 5vw, 80px);
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

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

html, body { margin: 0; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* One pair of equal outer margins, used by every block. */
.page,
.site-footer {
  padding-inline: var(--margin);
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}

/* The name is the title: display size, two lines at every width. */
.title {
  margin: 0;
  font-size: clamp(3.25rem, 18.5vw, 15.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.title span { display: block; }
.title span + span { color: var(--accent); }

.split {
  display: grid;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  /* The actions close the right side of the frame. */
  .reach { justify-self: end; text-align: right; }
  .actions { justify-content: flex-end; }
}

.statement {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1.25rem, 2.3vw, 2.125rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.actions {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Below the two-column layout, the buttons share the full width: big thumb targets that close the frame. */
@media (max-width: 899px) {
  .actions li { flex: 1 1 12rem; }
  .button { width: 100%; justify-content: center; }
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 150ms ease-out, transform 120ms var(--ease-out);
}
.button:hover { background: var(--accent-press); }
.button:active { transform: scale(0.97); }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.contact { margin: 0; max-width: 60ch; overflow-wrap: anywhere; }

.site-footer {
  padding-block: 1.25rem 1.5rem;
}
.site-footer p { margin: 0; font-size: 0.9375rem; }

/* Entrance: each part rises once, staggered. Content is never hidden without motion. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 720ms var(--ease-out) both; }
  .d1 { animation-delay: 0ms; }
  .d2 { animation-delay: 80ms; }
  .d3 { animation-delay: 200ms; }
  .d4 { animation-delay: 280ms; }
  .d5 { animation-delay: 350ms; }
  .d6 { animation-delay: 420ms; }
  .d7 { animation-delay: 500ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
}
