/* Augmented Mind — fredrikwollsen personal umbrella site */

:root {
  --paper: #faf7f2;
  --paper-alt: #f2ebdf;
  --ink: #1a1a1a;
  --ink-muted: #5a5650;
  --rule: #e3dac6;
  --accent: #b8541f;
  --accent-hover: #8f3f16;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15130f;
    --paper-alt: #1d1a14;
    --ink: #f2eadb;
    --ink-muted: #aaa090;
    --rule: #3a342a;
    --accent: #e88a55;
    --accent-hover: #f4a778;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
a:hover { color: var(--accent-hover); }

/* ---- Hero ---- */

.hero {
  padding: 96px 0 48px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 36px;
  max-width: 620px;
}

.anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
}
.anchors a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.anchors a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- Sections ---- */

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.section--alt { background: var(--paper-alt); }

.section h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.section h3 {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 32px 0 14px;
}
.section h3:first-of-type { margin-top: 0; }

.section p { margin: 0 0 18px; }
.section p:last-child { margin-bottom: 0; }

.lead {
  font-size: 18px;
  line-height: 1.6;
}

.muted {
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---- Entries (timeline-ish rows) ---- */

.entries {
  list-style: none;
  padding: 0;
  margin: 0;
}
.entries > li {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: baseline;
}
.entries > li:last-child { border-bottom: 1px solid var(--rule); }

.entry-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.entry-body { font-size: 16.5px; line-height: 1.55; }

@media (max-width: 600px) {
  .entries > li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .entry-meta { font-size: 11.5px; }
}

/* ---- Product grid ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}
.card {
  padding: 22px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.section--alt .card { background: var(--paper); }
.card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 500;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ---- Footer ---- */

.footer {
  padding: 36px 0 56px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}

/* ---- Responsive hero ---- */

@media (max-width: 520px) {
  .hero { padding: 64px 0 36px; }
  .section { padding: 52px 0; }
}
