@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  color-scheme: light;
  --bg: #f3f5f1;
  --surface: #fafbf8;
  --ink: #1a221e;
  --muted: #5a655e;
  --accent: #1f6b5a;
  --rule: #d4dbd4;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(31, 107, 90, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}

a:hover {
  color: #155445;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--surface);
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
}

.skip:focus-visible {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.35rem;
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 245, 241, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.site-head.is-scrolled,
.site-head {
  border-bottom-color: var(--rule);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--accent);
}

.site-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-head nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-head nav a:hover {
  color: var(--ink);
}

.site-head nav a.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Main */
main {
  padding: 2.75rem 0 4rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 3.15rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.2rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.175rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.35rem;
  text-wrap: pretty;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.75rem 0 0;
  font-weight: 500;
}

.contact {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.975rem;
}

.contact a {
  font-weight: 500;
}

/* ── Home (niche spacing + timing) ─── */

.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-home .site-head {
  border-bottom-color: transparent;
}

.page-home .brand {
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3.5rem 0 4.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.home .now {
  margin: 0 0 1.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--accent);
}

.home h1 {
  font-size: clamp(3.4rem, 12vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 2rem;
}

.home .lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  max-width: 28rem;
  margin: 0 auto 1.1rem;
}

.home .home-body {
  max-width: 26rem;
  color: var(--muted);
  margin: 0 auto 2.75rem;
  font-size: 1.02rem;
}

.home-links {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--rule);
  width: 100%;
  max-width: 18rem;
}

.home-links li {
  border-bottom: 1px solid var(--rule);
}

.home-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.15rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  transition: color 0.2s ease, padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-links a:hover {
  color: var(--accent);
}

.home-links .arrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.home-links a:hover .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.home .contact {
  margin-top: auto;
  padding-top: 3rem;
  border-top: none;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.home .contact .sep {
  margin: 0 0.45rem;
  color: var(--rule);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home .in {
  opacity: 0;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

@media (min-width: 768px) {
  .home {
    padding: 5rem 0 5.5rem;
  }

  .home h1 {
    margin-bottom: 2.4rem;
  }

  .home .home-body {
    margin-bottom: 3.25rem;
  }
}

/* Entries */
.entry {
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
}

.entry:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.entry .meta {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.entry p {
  margin: 0;
  color: var(--ink);
}

.entry h2 a {
  color: var(--ink);
  text-decoration: none;
}

.entry h2 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section {
  margin-top: 2.5rem;
}

.section h2 {
  margin-bottom: 0.65rem;
}

.section p {
  margin-bottom: 0.55rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 2.5rem;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }

  .home .in {
    opacity: 1;
    animation: none;
  }

  .home-links a,
  .home-links .arrow {
    transition: none;
  }
}
