/* The chrome every undulate.app product page shares (home, /places, /trees): the header, the page title, the
   buttons and the footer, in the app's design. Only site-* classes, so each page keeps its own inner styles.
   A page can retint the chrome by setting --site-paper and --site-ink (the trees page uses each tree's light). */

:root {
  --site-paper: #F3F4EF;
  --site-pass: #FFFFFF;
  --site-ink: #1C2126;
  --site-ink2: #5A6168;
  --site-ink3: #6F767E;
  --site-line: #D4D7CD;
  --site-leaf: #2F8A47;
  --site-sans: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --site-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --site-gutter: clamp(16px, 4vw, 48px);
  --site-max: 1200px;
}

/* The chrome must measure the same on every page, whatever the page's own styles: no page margin, border-box
   sizing, and fixed sizes and line heights inside the header and footer. */
body { margin: 0; }
.site-nav, .site-nav *, .site-nav *::before, .site-nav *::after,
.site-foot, .site-foot *, .site-foot *::before, .site-foot *::after,
.site-head, .site-head * { box-sizing: border-box; }
.site-nav *, .site-foot * { margin: 0; padding: 0; line-height: 1; letter-spacing: normal; text-transform: none; }

.site-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 30;
  padding: 8px 12px; background: var(--site-ink); color: var(--site-paper); font: 600 14px var(--site-sans);
}
.site-skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-nav {
  position: sticky; top: 0; z-index: 20; width: 100%;
  background: color-mix(in srgb, var(--site-paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.9s ease;
}

.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: var(--site-max); height: 64px; margin: 0 auto; padding: 0 var(--site-gutter);
  font-family: var(--site-sans);
}

.site-nav__brand {
  display: flex; align-items: center; gap: 10px;
  height: 40px; color: var(--site-ink); font: 800 18px/1 var(--site-sans); letter-spacing: -0.02em; text-decoration: none;
}
.site-nav__brand img { display: block; width: 26px; height: 26px; flex-shrink: 0; }

.site-nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font: 400 15px/1 var(--site-sans); }
.site-nav__links a { display: inline-flex; align-items: center; height: 40px; color: var(--site-ink2); text-decoration: none; font: inherit; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--site-ink); }
.site-nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.site-nav__links .site-nav__get {
  justify-content: center; height: 38px; padding: 0 16px; border-radius: 999px;
  color: var(--site-paper); background: var(--site-ink); font-weight: 600; white-space: nowrap;
}
.site-nav__links .site-nav__get:hover { color: var(--site-paper); }

/* ---------- Page title (the product pages; home has its own hero) ---------- */

.site-head {
  max-width: var(--site-max); margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--site-gutter) clamp(20px, 3vw, 36px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px 48px;
  font-family: var(--site-sans); color: var(--site-ink);
}

.site-head__title {
  margin: 0; font-family: var(--site-sans); font-weight: 900; font-variation-settings: "wdth" 112;
  font-size: clamp(44px, 7vw, 96px); line-height: 0.92; letter-spacing: -0.04em;
}

.site-head__lede { margin: 0; max-width: 46ch; font-size: 18px; line-height: 1.55; color: var(--site-ink2); }

/* ---------- Buttons and links ---------- */

.site-button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--site-ink); color: var(--site-paper);
  font: 600 16px/1 var(--site-sans); text-decoration: none;
}

.site-link {
  color: var(--site-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 5px; text-decoration-color: var(--site-line);
}
.site-link:hover { text-decoration-color: var(--site-ink); }

/* ---------- Footer ---------- */

.site-foot {
  position: relative; z-index: 1; background: var(--site-paper);
  width: 100%; max-width: var(--site-max); margin: 0 auto; padding: 32px var(--site-gutter) 48px;
  border-top: 1px solid var(--site-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font: 400 14px/1.5 var(--site-sans); color: var(--site-ink2);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.site-foot a, .site-foot p { font: 400 14px/1.2 var(--site-sans); }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--site-ink); text-decoration: underline; }
.site-foot p { margin: 0; }

.site-nav :focus-visible, .site-foot :focus-visible, .site-button:focus-visible, .site-link:focus-visible {
  outline: 2px solid var(--site-ink); outline-offset: 3px; border-radius: 4px;
}

@media (max-width: 760px) {
  .site-head { grid-template-columns: 1fr; }
  .site-nav__links { gap: 14px; }
}

@media (max-width: 400px) {
  .site-nav__links { gap: 10px; font-size: 14px; }
  .site-nav__links .site-nav__get { padding: 0 12px; }
  .site-nav__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
}
