:root {
  --bg: #0a0a0c;
  --bg-soft: #15151a;
  --panel: rgba(21, 21, 26, 0.82);
  --panel-strong: rgba(27, 27, 33, 0.96);
  --border: rgba(232, 201, 168, 0.14);
  --text: #f5f2ec;
  --muted: rgba(245, 242, 236, 0.62);
  --faint: rgba(245, 242, 236, 0.38);
  --accent: #e8c9a8;
  --accent-deep: #c89c6f;
  --accent-soft: rgba(232, 201, 168, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 720px;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(232, 201, 168, 0.08), transparent 32%),
    linear-gradient(180deg, #0a0a0c 0%, #07070a 100%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; }

.page {
  width: min(100% - 28px, var(--container));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6e4cb 0%, #c89c6f 100%);
  box-shadow: 0 0 24px rgba(232, 201, 168, 0.45);
}

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

.nav a,
.inline-link {
  color: var(--accent);
}

.nav a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.button-link:hover,
.button-link:focus-visible {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.hero,
.content-shell {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero {
  padding: 36px 28px;
  margin-bottom: 20px;
}

.content-shell {
  padding: 32px 24px;
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero-title,
.page-title {
  font-family: "Instrument Serif", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
  color: var(--text);
}

.lede {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 56ch;
}

.section {
  margin-top: 28px;
}

.section h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.2px;
  margin: 0 0 10px;
  color: var(--text);
}

.section p,
.section li {
  font-size: 15px;
  color: var(--muted);
}

.section ul {
  padding-left: 18px;
  margin: 10px 0;
}

.section li {
  margin-bottom: 6px;
}

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

.meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(232, 201, 168, 0.45);
  text-underline-offset: 3px;
}

.site-footer {
  margin-top: 28px;
  padding: 0 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--faint);
  text-align: center;
}

/* In-app webview tweaks — Mira loads these inside a SwiftUI sheet,
   so we keep the canvas dark, hide overscroll bounce flashes, and
   ensure tap highlights match the brand. */
html, body {
  background: var(--bg);
  -webkit-tap-highlight-color: rgba(232, 201, 168, 0.18);
}

@media (max-width: 480px) {
  .hero-title,
  .page-title { font-size: 30px; }
  .hero { padding: 28px 22px; }
  .content-shell { padding: 24px 20px; }
}
