/* Tallpine Studios — design tokens and styles (neutral graphite, modern) */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --bg: #15171a;
  --bg-raise: #1c1f23;
  --line: #2b2f35;
  --text: #eceef0;
  --text-soft: #9ca3ab;
  --accent: #8fb0d9;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-hero: clamp(2.75rem, 1.3rem + 6vw, 5.75rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 72rem;
  --section: clamp(4.5rem, 9vw, 8rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2 {
  font-weight: 550;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

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

.site-header { padding-block: 1.25rem; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand svg { height: 1.9rem; width: auto; fill: var(--text); }

.site-nav ul { display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2rem); }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 0.4rem;
  color: var(--text-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 550;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--bg-raise); border-color: #444a52; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 8rem) var(--section); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.hero h1 { font-size: var(--step-hero); line-height: 1.02; max-width: 13ch; }
.hero .lede {
  margin-top: 1.75rem;
  max-width: 35rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-soft);
}
.hero .actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pine {
  height: clamp(18rem, 38vw, 28rem);
  width: auto;
  fill: none;
  stroke: #4a5059;
  stroke-width: 1.25;
  stroke-linejoin: round;
  margin-right: clamp(0rem, 5vw, 5rem);
}

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .pine { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section h2 { font-size: var(--step-2); line-height: 1.1; max-width: 22ch; }
.section .intro {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-soft);
}

/* Apps */
.app-list {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}
.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1.1rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.app-icon {
  grid-row: span 3;
  width: 4rem;
  height: 4rem;
  border-radius: 15px;
  background: #2b2f35;
  border: 1px solid #383d45;
}
.app-card h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.app-card p { color: var(--text-soft); font-size: 1rem; }
.app-card .where { color: var(--accent); font-size: var(--step--1); margin-top: 0.5rem; }

/* About */
.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.about-body p { font-size: var(--step-1); line-height: 1.55; color: var(--text-soft); max-width: 36rem; }
.about-body p + p { margin-top: 1.1rem; }
.about-body strong { color: var(--text); font-weight: 500; }

@media (max-width: 52rem) {
  .about .wrap { grid-template-columns: 1fr; }
}

/* Support */
.support .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.direct { margin-top: 1.5rem; color: var(--text-soft); }
.direct a { color: var(--text); text-underline-offset: 0.25em; }

.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.95rem; font-weight: 500; }
.field label span { color: var(--text-soft); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-raise);
  color: var(--text);
  border: 1px solid #454b54;
  border-radius: 10px;
  font: inherit;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover,
.field textarea:hover { border-color: #5d646e; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.form .btn[disabled] { opacity: 0.6; cursor: default; }
.trap { position: absolute; left: -100vw; }
.form-status { min-height: 1.5em; color: var(--text-soft); }
.form-status.error { color: #e6a59a; }

@media (max-width: 52rem) {
  .support .wrap { grid-template-columns: 1fr; }
}

/* Text pages (privacy, terms, 404) */
.prose { padding-block: clamp(3rem, 7vw, 6rem) var(--section); }
.prose h1 { font-size: var(--step-2); line-height: 1.1; }
.prose h2 { font-size: var(--step-1); letter-spacing: -0.01em; margin-top: 2.5rem; }
.prose p { max-width: 40rem; margin-top: 1rem; color: var(--text-soft); }
.prose a { color: var(--text); text-underline-offset: 0.25em; }
.notice {
  max-width: 40rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px dashed #5d646e;
  border-radius: 10px;
  color: var(--text);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem;
  font-size: var(--step--1);
  color: var(--text-soft);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
