/* Daniel Danyon — digital garden personal site. 2026 refresh. */
:root {
  --bg: #f2f4ea;
  --card: #fbfcf6;
  --ink: #2b352a;
  --muted: #6d7a68;
  --moss: #5f7f3f;
  --moss-deep: #46612c;
  --spruce: #2f3e2e;
  --rule: #dde2cf;
  --max: 950px;
  --narrow: 670px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b211a;
    --card: #242c22;
    --ink: #e7ebdf;
    --muted: #9dab93;
    --moss: #9dc06a;
    --moss-deep: #b3d284;
    --spruce: #cfdac2;
    --rule: #33402f;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 17px/1.72 "Atkinson Hyperlegible", system-ui, sans-serif; }
a { color: var(--moss-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }

header.site { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.wordmark { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.wordmark span { color: var(--moss); }
.wordmark:hover { text-decoration: none; }
nav.top { display: flex; gap: 1rem; flex-wrap: wrap; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 0.84rem; font-weight: 500; }
nav.top a { color: var(--muted); }
nav.top a:hover { color: var(--moss-deep); text-decoration: none; }

.sprout {
  display: inline-block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss-deep);
}

/* Hero */
.hero { padding: 3.2rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.6rem; align-items: center; }
.hero h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.7rem 0 1rem;
}
.hero h1 span { color: var(--moss-deep); }
.hero-sub { color: var(--muted); max-width: 30em; }
.hero-art { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--rule); }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }

main { padding: 0 0 3.4rem; }

.bio { max-width: var(--narrow); margin: 0 auto 3rem; }
.bio p { margin-bottom: 1.1rem; }

/* Note cards — the signature */
.garden > h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1.5rem;
}
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; max-width: 860px; margin: 0 auto; }
.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.note:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(47, 62, 46, 0.14); }
.note img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.note-body { padding: 1.05rem 1.25rem 1.3rem; }
.note h3 { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin: 0.3rem 0 0.4rem; }
.note:hover h3 { color: var(--moss-deep); }
.note p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 680px) { .notes { grid-template-columns: 1fr; } }

/* Note pages */
article.leaf { max-width: var(--narrow); margin: 2.6rem auto 0; }
article.leaf header { margin-bottom: 1.4rem; }
article.leaf h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: 0.4rem;
}
.page-hero { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--rule); margin: 1.5rem 0 1.9rem; }
article.leaf p { margin: 0 0 1.1rem; }
article.leaf h2 { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; margin: 1.9rem 0 0.6rem; }
article.leaf ul.tidy { margin: 0 0 1.1rem 1.2rem; }
article.leaf ul.tidy li { margin-bottom: 0.4rem; }
blockquote {
  background: var(--card);
  border-left: 4px solid var(--moss);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
  font-style: italic;
}
blockquote cite { display: block; font-style: normal; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }

.blogroll dt { font-weight: 700; margin-top: 1.1rem; }
.blogroll dd { color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }
.note-aside { font-size: 0.88rem; font-style: italic; color: var(--muted); }

.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.1rem;
  font-family: "Space Grotesk", system-ui, sans-serif; font-size: 0.88rem; font-weight: 700;
}

footer.site { border-top: 1px solid var(--rule); padding: 1.5rem 0 2rem; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 0.8rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .note { transition: none; } }
