:root {
  --ink: #1c2422;
  --muted: #5a6562;
  --line: #d5ddd9;
  --paper: #f7f6f2;
  --wash: #eef2ef;
  --accent: #2f5c52;
  --accent-soft: #dce8e4;
  --font-display: "Literata", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, #e4ebe7 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, #e8e4dc 0%, transparent 50%),
    var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:hover {
  color: #1f4039;
}

.wrap {
  width: min(680px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* —— Top bar —— */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.35rem 0 0;
  font-size: 0.9rem;
}

.top nav {
  display: flex;
  gap: 1.25rem;
}

.top a {
  text-decoration: none;
  color: var(--muted);
}

.top a:hover {
  color: var(--ink);
}

.mark {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

/* —— Intro —— */
.intro {
  padding: clamp(3.5rem, 12vh, 6.5rem) 0 2.75rem;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.9s var(--ease) 0.08s forwards;
}

.intro h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.15rem, 6vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.role {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.role + .role {
  margin-bottom: 1.35rem;
  font-size: 1rem;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  max-width: 42ch;
  color: #3d4744;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: 0.95rem;
}

.links a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.links a:hover {
  border-color: var(--accent);
}

/* —— Sections —— */
.section {
  padding: 2rem 0 0.5rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.9s var(--ease) forwards;
}

.section:nth-of-type(1) { animation-delay: 0.2s; }
.section:nth-of-type(2) { animation-delay: 0.32s; }
.section:nth-of-type(3) { animation-delay: 0.44s; }

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section p {
  margin: 0 0 0.9rem;
  color: #3d4744;
}

.section p:last-child {
  margin-bottom: 0;
}

.meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.note {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.tool-list {
  display: grid;
  gap: 0.75rem;
}

.tool {
  display: block;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.tool:hover {
  border-color: #a8bfb7;
  background: #fff;
  color: inherit;
}

.tool strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

.tool span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.15rem 0.45rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
}

.foot {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--accent);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .intro,
  .section,
  .foot {
    opacity: 1;
    transform: none;
  }
}
