@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/InstrumentSerif-Italic.woff2") format("woff2");
}

:root {
  --bg: #022417;
  --bg-2: #033020;
  --bg-3: #053d29;
  --fg: #ffffff;
  --fg-2: #e6ebe7;
  --fg-muted: #8aa89a;
  --fg-dim: #5a7567;
  --accent: #f56f42;
  --accent-soft: #f89373;
  --sage: #d8e8c0;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);

  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: var(--sans);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1320px;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); min-height: 100vh; }
body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono { font-family: var(--mono); font-style: normal; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

.page-enter { animation: pageIn 0.5s cubic-bezier(.2,.7,.2,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #1a0d05; }
.btn-primary:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(216,232,192,0.06); border-color: var(--sage); }
.btn-arrow { display: inline-block; transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.rule { height: 1px; background: var(--line); width: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-dim); }
