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

:root {
  --ink: #121214;
  --muted: #5c554480;
  --muted-text: #6b6149;
  --paper-top: #fbf7ec;
  --paper-bot: #efe5cc;
  --card: #fffdf7;
  --line: #e6dcc2;
  --red:#ef4444; --amber:#f59e0b; --green:#10b981; --cyan:#06b6d4; --blue:#3b82f6; --violet:#8b5cf6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-top), var(--paper-bot));
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.hero {
  text-align: center;
  padding: clamp(3rem, 9vw, 6.5rem) 1.5rem 1.5rem;
}
.lockup {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem; flex-wrap: wrap;
}
.mark { width: clamp(64px, 11vw, 104px); height: auto; }
.wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 6rem);
  margin: 0; line-height: 1;
}
.wordmark em { font-style: italic; }
.tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  margin: 1.4rem auto 0.3rem; max-width: 32ch;
}
.byline { color: var(--muted-text); margin: 0; }

main { max-width: 1040px; margin: 0 auto; padding: 1.5rem; }

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.app {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex; flex-direction: column;
}
.app h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400; font-size: 1.9rem; margin: 0 0 0.5rem; line-height: 1;
}
.app h2 em { font-style: italic; }
.app p { margin: 0 0 1rem; color: #2c2a25; flex: 1; }

.stage {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 999px;
  border: 1px solid currentColor;
}
.stage.live  { color: var(--green); }
.stage.beta  { color: var(--blue); }
.stage.alpha { color: var(--amber); }

.links { margin-top: 1rem; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.links a { font-weight: 600; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.links a::after { content: " ↗"; color: var(--muted-text); }
.links a:hover { text-decoration: none; border-bottom-color: var(--ink); }

.ethos {
  margin: 3rem auto 0; max-width: 56ch; text-align: center;
  font-size: 1.15rem; color: #2c2a25;
}

footer {
  text-align: center; padding: 3rem 1.5rem;
  color: var(--muted-text); font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3ecda; --muted-text: #b7ad93;
    --paper-top: #1c1c22; --paper-bot: #101015;
    --card: #1d1d23; --line: #2c2c34;
  }
  .app p, .ethos { color: #d8d2c2; }
}
