/* Plantjes coming-soon page — tokens mirrored from the Plantjes app. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/dm-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/fraunces-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fraunces-italic-latin.woff2') format('woff2');
}

:root {
  --font-sans: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  --text-3xl: 20px;
  --text-4xl: 22px;
  --text-5xl: 26px;
  --text-7xl: 40px;

  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --tracking-caps: .08em;

  --canvas: #f5f6f0;
  --surface: #fffefa;
  --ink: #22312a;
  --text-muted: #727d74;

  --line: #e2e7dd;
  --line-strong: #d3dbcf;

  --green: #2e694d;
  --green-soft: #e8f0e5;
  --green-tint: #f2f6ef;

  --coral: #bf6c4c;

  --space-3: 12px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 40px;

  --radius-round: 999px;
}

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

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 max(var(--space-6), calc((100vw - 960px) / 2));
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  background:
    radial-gradient(ellipse at 86% 13%, rgba(223, 231, 210, .55), transparent 25rem),
    var(--canvas);
}

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: var(--radius-round);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-round);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-period {
  color: var(--coral);
}

.hero {
  display: grid;
  place-items: center;
  padding: var(--space-8) 0;
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  text-align: center;
  text-wrap: balance;
}

.hero em {
  color: var(--green);
  font-style: italic;
}

.hero sup {
  margin-left: .08em;
  font-family: var(--font-sans);
  font-size: .42em;
  font-style: normal;
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  vertical-align: super;
}

.site-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  border-top: 1px solid var(--line);
}

.footer-copyright {
  color: var(--text-muted);
  white-space: nowrap;
}

.footer-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ink);
  border-radius: var(--radius-round);
}

.footer-link svg {
  width: 22px;
  height: 22px;
}

.footer-link:hover {
  color: var(--green);
  background: var(--green-tint);
}

.footer-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .site-shell {
    padding: 0 var(--space-5);
  }

  .site-header {
    height: 64px;
  }

  .brand {
    font-size: var(--text-3xl);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: var(--text-5xl);
  }

  .site-footer {
    min-height: 56px;
  }

  .footer-copyright {
    font-size: 12px;
  }

  .footer-link {
    width: 36px;
    height: 36px;
  }
}
