/* LINFA placeholder. Colours and faces from plant-app (lib/src/design/plant_tokens.dart,
   plant_typography.dart) via Growth OS src/linfa/brand. Fonts: SIL OFL 1.1, licences in /fonts. */

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Day: the "morning" sky over a paper windowsill. */
:root {
  --sky-top: #a5c8d6;
  --sky-bottom: #f6eacb;
  --mark: #22574a; /* brandPrimary */
  --ink: #1b2317;
  --ink-soft: #4a5742;
  --sill: #f1efe6; /* paperAlt */
  --rail: #e0dccf; /* hairline */
  --link: #22574a;
  --focus: #1e9a6a; /* accent */
  color-scheme: light;
}

/* Night is a sky, not a theme (plant-app): same page, night sky. */
@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #1d2a42;
    --sky-bottom: #41506b;
    --mark: #f3f0e2;
    --ink: #f3f0e2;
    --ink-soft: #cdd3dc;
    --sill: #1d2a42;
    --rail: #56647e;
    --link: #f3f0e2;
    --focus: #f2c989;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--sill);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
}

.column {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

/* The sky: content sits low, on the horizon, like a pot on a sill. */
.sky {
  display: flex;
  align-items: flex-end;
  padding: clamp(4rem, 14vh, 9rem) 0 clamp(2.5rem, 7vh, 4.5rem);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  border-bottom: 2px solid var(--rail);
}

.wordmark {
  margin: 0;
  width: min(100%, 40rem);
  line-height: 0;
}
.wordmark svg {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--mark);
}

.line {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  max-width: 21em;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.soon {
  margin: 1.25rem 0 0;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.sill nav {
  display: flex;
  gap: 1.75rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.sill a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  border-radius: 4px;
}
.sill a:hover {
  text-decoration-thickness: 2px;
}
.sill a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
