/* Pineapple Peak — layout idea: a quiet, left-aligned studio page under a layered ridgeline, with one gold accent (the pineapple sun). */
:root {
  --paper: #f3f5f0;
  --surface: #ffffff;
  --ink: #13314a;
  --muted: #546670;
  --line: #d2dedd;
  --leaf: #23704a;
  --gold: #f0b429;
  --gold-ink: #3a2a00;
  --ridge-far: #c4d6d8;
  --ridge-mid: #3f7f7a;
  --ridge-near: #133e4f;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c171b;
    --surface: #13232a;
    --ink: #e6eef0;
    --muted: #9db2b6;
    --line: #23383f;
    --leaf: #74c69a;
    --gold: #f4bd3a;
    --gold-ink: #2a1e00;
    --ridge-far: #152a31;
    --ridge-mid: #1d4148;
    --ridge-near: #12384a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c171b;
  --surface: #13232a;
  --ink: #e6eef0;
  --muted: #9db2b6;
  --line: #23383f;
  --leaf: #74c69a;
  --gold: #f4bd3a;
  --gold-ink: #2a1e00;
  --ridge-far: #152a31;
  --ridge-mid: #1d4148;
  --ridge-near: #12384a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Header */
.site-header { padding-block: 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 44px; display: block; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { position: relative; padding-top: 48px; overflow: hidden; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  max-width: 13ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.pledges { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pledges li {
  font-weight: 700; font-size: 0.9rem;
  padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--ink);
}
.ridge { display: block; width: 100%; height: auto; margin-top: 56px; }
.ridge .far { fill: var(--ridge-far); }
.ridge .mid { fill: var(--ridge-mid); }
.ridge .near { fill: var(--ridge-near); }
.ridge .sun { fill: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .ridge .sun { animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { transform: translateY(26px); } to { transform: translateY(0); } }
}

.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero-logo { width: clamp(150px, 20vw, 230px); height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: settle 1s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { transform: translateY(10px); } to { transform: none; } }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-logo { order: -1; width: 110px; }
}

/* Sections */
section { padding-block: 64px; }
.band { background: var(--ridge-near); color: #eef4f0; }
.band a { color: var(--gold); }
.section-head { display: grid; gap: 8px; margin-bottom: 32px; max-width: 60ch; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.05;
  margin: 0; text-wrap: balance;
}
.section-head p { margin: 0; color: var(--muted); }
.band .section-head p { color: #c6d8cf; }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.app {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: grid; gap: 12px; align-content: start;
}
.app.featured { border: 2px solid var(--gold); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line);
}
.app-icon svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.status { font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.status.dev { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.app h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; letter-spacing: -0.01em; }
.app p { margin: 0; color: var(--muted); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.principle h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 6px; }
.principle p { margin: 0; color: #c6d8cf; }
.principle .alt { font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: 0.85rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about p { max-width: 62ch; }
.waypoints { margin: 0; padding: 20px; list-style: none; border-left: 3px solid var(--gold); display: grid; gap: 14px; background: var(--surface); border-radius: 0 12px 12px 0; }
.waypoints strong { display: block; font-family: var(--font-display); }
.waypoints span { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Prose pages (support, privacy) */
.prose { max-width: 68ch; padding-block: 40px 72px; }
.prose h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; margin: 0 0 12px; text-wrap: balance; }
.prose h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 40px 0 8px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 24px 0 4px; }
.prose .meta { color: var(--muted); margin: 0 0 24px; }
.prose ul { padding-left: 1.2em; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 20px 24px; margin: 24px 0;
}
.contact-card p { margin: 4px 0; }
.contact-card .email { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
