/* styles.css
 * Version 0.04.00   Datecode 2026.10.21.04.01.32 UTC
 * ©2026 Elvish Software, all rights reserved.  https://elvishSoftware.com  Author: smal.
 * Styles for the Elvish Software static site.  Brand tokens mirror the logo suite palette.
 */
:root {
  --leaf: #33B87A; --leaf-deep: #1F8F5E; --berry: #FF6F91; --bit: #6C5CE7;
  --gold: #FFC24B; --ink: #23303B; --paper: #EAF7EF; --sky: #F4FBF7; --red: #F0524B;

  --bg: #ffffff;
  --bg-soft: var(--sky);
  --bg-mint: var(--paper);
  --text: var(--ink);
  --muted: #566270;
  --line: #dfece6;
  --accent: var(--leaf);
  --accent-ink: #0f2a1e;

  --maxw: 1040px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 143, 94, 0.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161e24; --bg-soft: #1b242b; --bg-mint: #192b23;
    --text: #eaf2ee; --muted: #9fb0ab; --line: #27343c; --accent-ink: #eafff4;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--leaf-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--bit); outline-offset: 2px; border-radius: 6px; }
img, svg { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 184px; max-width: 46vw; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--text); padding: 8px 12px; border-radius: 999px; font-weight: 600; }
.nav a:hover { background: var(--bg-mint); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--leaf-deep); background: var(--bg-mint); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; border: 2px solid transparent;
  cursor: pointer; transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--leaf); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--leaf-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--leaf); }
.btn .chev { font-size: .9em; }

/* hero */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); margin: 0 0 26px; max-width: 42ch; }
.hero-art {
  background: var(--bg-mint); border: 1px solid var(--line); border-radius: 24px;
  padding: 10px; box-shadow: var(--shadow);
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* sections */
section.band { padding: 46px 0; }
.band-mint { background: var(--bg-mint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--leaf-deep); margin: 0 0 8px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 14px; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 14px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 8px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* app page */
.app-hero { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.app-hero .appicon { width: 96px; height: 96px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-mint); padding: 8px; }
.note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* footer */
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.foot-contact a { white-space: nowrap; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .app-hero { grid-template-columns: 72px 1fr; }
  .app-hero .appicon { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
