:root {
  --bg: #12100e;
  --surface: #1b1917;
  --text: #f2efe9;
  --muted: #a29c93;
  --accent: #e2511e;
  --border: #2c2926;
  --radius: 10px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

a { color: var(--accent); }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.wordmark span { color: var(--accent); }

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero { max-width: 44rem; }

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Prose */
.prose { max-width: 42rem; }

.prose h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.2rem;
}

.prose li { margin-bottom: 0.35rem; }

/* Notes */
.note-form {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
}

.note-form input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
}

.note-form input:focus-visible,
.note-form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.note-form button {
  padding: 0.7rem 1.25rem;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.note-form button:hover { filter: brightness(1.1); }

.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.notes li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.notes p { margin: 0 0 0.35rem; }

.notes time {
  font-size: 0.8rem;
  color: var(--muted);
}

.empty { color: var(--muted); }

/* Footer */
.site-footer {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
