/* Usable Again — shared styles (design tokens from Home Reset Deck design system) */

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-sunken: #f3efe7;

  --text: #2a2722;
  --text-secondary: #4a443b;
  --text-muted: #756e62;
  --text-subtle: #a39a8b;

  --border: #e9e3d7;
  --border-strong: #d9d1c1;

  --accent: #57705f;
  --on-accent: #ffffff;
  --caution: #ab7551;

  --font-sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(42, 39, 34, 0.12);
}

.brand span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.primary-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.primary-nav a:hover { text-decoration: underline; }

.primary-nav a[aria-current="page"] {
  font-weight: 600;
  color: var(--text);
}

/* ---- Main column ---- */

main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

/* Landing uses a slightly wider shell */
body.landing .header-inner,
body.landing .footer-inner { max-width: 760px; }

body.landing main {
  max-width: 760px;
  padding-top: 44px;
}

/* ---- Typography ---- */

h1 {
  font-size: 32px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
}

body.support h2 { margin-top: 40px; }

p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 16px;
  text-wrap: pretty;
}

ul, ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-secondary);
}

li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

p a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.effective-date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.overline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.tight { margin-bottom: 12px; }
.flush { margin-bottom: 0; }
.ink { color: var(--text); }

/* ---- Landing: hero ---- */

.hero {
  background: radial-gradient(120% 170% at 26% 28%, #9fb499 0%, #8aa083 55%, #7b9075 100%);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 52px);
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 44px);
  flex-wrap: wrap;
  box-shadow: 0 18px 44px -24px rgba(74, 68, 59, 0.4);
}

.hero img {
  display: block;
  width: clamp(96px, 18vw, 136px);
  height: clamp(96px, 18vw, 136px);
  border-radius: 30px;
  box-shadow: 0 16px 32px -14px rgba(35, 44, 34, 0.5);
  flex-shrink: 0;
}

.hero-text {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 42px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0;
}

.hero-lead {
  font-size: clamp(17px, 3vw, 19px);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 44ch;
}

.hero-body {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  margin: 4px 0 0;
  max-width: 52ch;
}

/* ---- Landing: helpful links ---- */

.links-section { margin-top: 48px; }

.links-section h2 { margin: 0 0 16px; }

.link-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.link-card:hover { border-color: var(--border-strong); }

.link-card .arrow {
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ---- Landing: premium panel ---- */

.premium-panel {
  margin-top: 48px;
  padding: 24px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.premium-panel .overline {
  color: var(--caution);
  margin-bottom: 10px;
}

.premium-panel h2 { margin: 0 0 12px; }

.premium-panel p { margin-bottom: 12px; }

.premium-panel p:last-child { margin-bottom: 0; }

/* ---- Support: contact card ---- */

.contact-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px -14px rgba(74, 68, 59, 0.28);
}

.contact-email {
  font-size: 18px;
  margin: 0 0 18px;
}

.contact-email a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.after-card { margin-top: 28px; }

/* ---- Support: feedback format block ---- */

.mono-block {
  padding: 16px 18px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }

.copyright {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtle);
}
