/* Self-hosted, latin subset from Google Fonts, SIL OFL 1.1 (fonts/OFL-*.txt).
   Nothing loads from another host (spec 001, criterion 7). */
@font-face {
  font-family: "Exo 2";
  src: url(fonts/exo2-latin-var.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Michroma";
  src: url(fonts/michroma-latin-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Planeri's palette (Planeri src/app.css). */
  --bg: #f5f9f8;
  --fg: #172321;
  --muted: #5c6e6c;
  --line: #dde7e5;
  --accent: #2a7a72;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a1b;
    --fg: #eef4f3;
    --muted: #95a6a5;
    --line: #2b3637;
    --accent: #46a497;
    --card: #1b2324;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 "Exo 2", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--accent); }

h1, h2, h3, .mark, .button { font-family: "Michroma", "Exo 2", sans-serif; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* The header stays put while the page scrolls; anchors land below it. */
html { scroll-padding-top: 80px; }
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.mark { display: flex; align-items: center; gap: 14px; color: var(--fg); text-decoration: none; }
.mark svg { width: 45px; height: 32px; fill: var(--accent); flex: none; }
.mark-text { display: flex; flex-direction: column; line-height: 1.15; }
.mark-name { font-size: 17px; }
.mark-sub { font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 24px; font-size: 15px; }
nav a:hover { color: var(--fg); }

.hero { padding: 96px 0 80px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 24px; max-width: 18em; font-weight: 650; }
.lede { font-size: 20px; color: var(--muted); max-width: 36em; margin: 0 0 32px; }

.button {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 600;
}

.band { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 28px; font-weight: 600; }
.sub { color: var(--muted); margin: -16px 0 28px; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
article p, .project p, .two > div > p, .sub { color: var(--muted); font-size: 16px; }
article p, .project p { margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two p { margin-top: 0; }
.link { font-weight: 600; text-decoration: none; }

.clients { list-style: none; margin: 0; padding: 0; }
.clients li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.clients li:first-child { padding-top: 0; }
.clients span { color: var(--muted); font-size: 16px; }

.project {
  display: block; padding: 24px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: inherit; text-decoration: none;
}
a.project:hover { border-color: var(--accent); }
a.project h3 { color: var(--accent); }

footer { border-top: 1px solid var(--line); padding: 56px 0 72px; }
footer h2 { margin-bottom: 12px; }
.legal { color: var(--muted); font-size: 15px; text-align: right; }

@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  html { scroll-padding-top: 100px; }
  .top .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; flex-direction: column; align-items: flex-start; gap: 4px; }
  nav a { margin: 0 18px 0 0; }
  .mark svg { width: 39px; height: 28px; }
  .hero { padding: 56px 0 48px; }
  .two { grid-template-columns: 1fr; gap: 32px; }
  .legal { text-align: left; }
}

/* Text pages: privacy policies and the like. */
.doc { max-width: 720px; padding-top: 72px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.doc h3 { margin-top: 36px; }
.doc p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
@media (max-width: 700px) { .doc { padding-top: 48px; } }
