/* FIRE10 landing — fire10.dev palette, system fonts only (no third-party requests).
   Layout: one column on phones, grids from 720px up, container caps at 1200px. */
:root {
  --paper: #f5f0e5;
  --paper-deep: #e9e1cf;
  --ink: #18362d;
  --ink-soft: #50655b;
  --forest: #123c32;
  --lime: #c9e36c;
  --sun: #e9b949;
  --coral: #d96c4b;
  --line: #cfc4ae;
  --card: #fffdf7;
  --shadow: 5px 6px 0 rgba(24, 54, 45, 0.16);
  --font-display: ui-serif, Georgia, 'Times New Roman', serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(1rem, 2.2vw, 1.75rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1f1a;
    --paper-deep: #17302a;
    --ink: #e6efe9;
    --ink-soft: #a7bab1;
    --forest: #c9e36c;
    --line: #2c463e;
    --card: #142822;
    --shadow: 5px 6px 0 rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: var(--paper);
  background-image:
    linear-gradient(rgba(127, 140, 120, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 140, 120, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  font: 1rem/1.6 var(--font-sans);
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
h1, h2, h3 { color: var(--forest); font-family: var(--font-display); line-height: 1.1; }
p { margin-bottom: 0.8rem; }
code, kbd { font-family: var(--font-mono); font-size: 0.86em; padding: 0.05em 0.35em; background: var(--paper-deep); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
main > section { padding-top: clamp(3rem, 7vw, 5.5rem); }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.top-link { font-family: var(--font-mono); font-size: 0.9rem; }
.brand { font-family: var(--font-mono); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.brand span { color: var(--ink-soft); }

/* hero: stacked on phones, text | idea card side by side from 960px */
.hero { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 5rem); letter-spacing: -0.035em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.lead.strong { margin-top: 1rem; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--forest); line-height: 1.25; }
.idea { padding: 1.2rem 1.35rem 0.5rem; border: 2px solid var(--ink); background: var(--card); box-shadow: var(--shadow); }
.idea .status { display: flex; gap: 0.6rem; align-items: center; font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.btn {
  display: inline-block; padding: 0.75rem 1.25rem; border: 2px solid var(--ink);
  background: var(--lime); color: #123c32; font-family: var(--font-mono); font-weight: 700;
  text-decoration: none; box-shadow: var(--shadow); text-align: center;
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { transform: translate(-1px, -1px); }

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.25fr 1fr; }
}
@media (max-width: 480px) {
  .cta .btn { flex: 1 1 auto; }
}

/* intro */
.intro h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.intro h2 em { font-style: italic; color: var(--coral); }
.intro .lead { margin-top: 0.6rem; }

/* projects: 1 column on phones, 2 from 720px, 3 from 1180px; first card is featured */
.prompt { font-family: var(--font-mono); color: var(--ink-soft); margin-bottom: 1rem; }
.cards { list-style: none; padding: 0; display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.cards > li {
  display: flex; flex-direction: column;
  padding: 1.25rem 1.35rem 1rem; border: 2px solid var(--ink); background: var(--card); box-shadow: var(--shadow);
}
.cards .row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.cards h2 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.cards p { margin: 0.35rem 0 0; }
.cards .hook { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--forest); margin-top: 0.5rem; }
.feat { margin: 0.7rem 0 0.8rem; padding-left: 1.1rem; }
.feat li { margin-bottom: 0.35rem; }
.feat li::marker { content: "▸ "; color: var(--coral); }
.cards .stack { margin-top: auto; padding-top: 0.7rem; border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }
.tag { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.1rem 0.45rem; border: 1px solid var(--ink); white-space: nowrap; }
.tag.beta { background: var(--lime); color: #123c32; }
.tag.wip { background: var(--sun); color: #123c32; }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > li:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* roadmap */
.next { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.next div { padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--sun); }
.next div:first-child { border-top-color: var(--lime); }
.next div:last-child { border-top-color: var(--coral); }
.next dt { font-family: var(--font-mono); font-weight: 700; color: var(--forest); margin-bottom: 0.3rem; }
.next dd { margin: 0; }
@media (min-width: 720px) {
  .next { grid-template-columns: repeat(3, 1fr); }
}

/* contact */
.contact { display: grid; gap: 1.2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--forest); color: #fcf8ed; }
.contact h2 { color: var(--lime); font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 0.4rem; }
.contact .lead { margin: 0; }
.contact .btn { justify-self: start; overflow-wrap: anywhere; }
@media (min-width: 820px) {
  .contact { grid-template-columns: 1fr auto; }
}
@media (prefers-color-scheme: dark) {
  .contact { background: #1d3a31; }
}

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: clamp(3rem, 7vw, 5rem); padding-top: 1.2rem; padding-bottom: 2rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); }
