/* Plantist — plantist.com
   Palette: paper #F6F4EE, ink #1A1A1A, accent green #1F5A47. */

:root {
  --bg: #F6F4EE;
  --ink: #1A1A1A;
  --muted: #5C5B56;
  --rule: #DEDAD0;
  --card: #FBFAF6;
  --accent: #1F5A47;
  --accent-tint: rgba(31, 90, 71, 0.09);

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --measure: 720px;
  --wide: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161715;
    --ink: #F6F4EE;
    --muted: #A9A79F;
    --rule: #30322E;
    --card: #1D1F1C;
    /* The same green, lifted so it stays readable on a dark ground. */
    --accent: #7FC2A8;
    --accent-tint: rgba(127, 194, 168, 0.12);
  }
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

h1, h2, h3, p, ul, ol, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

a:hover {
  text-decoration-color: currentColor;
}

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

/* Layout containers */

.measure,
.wide {
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure {
  max-width: calc(var(--measure) + 2 * var(--gutter));
}

.wide {
  max-width: calc(var(--wide) + 2 * var(--gutter));
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.skip:focus {
  top: 8px;
}

/* Nav */

.nav {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  color: var(--accent);
  flex: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 15px;
}

.nav-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
}

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

/* Hero */

.hero {
  padding-block: clamp(56px, 12vw, 136px) clamp(64px, 11vw, 128px);
}

.proverb {
  position: relative;
}

.quote-mark {
  display: block;
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 112px);
  line-height: 0.8;
  height: 0.48em;
  color: var(--accent);
  margin-left: -0.04em;
}

.proverb blockquote p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(31px, 6.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.proverb figcaption {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.thesis {
  margin-top: clamp(40px, 7vw, 64px);
  padding-top: clamp(28px, 5vw, 40px);
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.32;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

.intro {
  margin-top: 18px;
  color: var(--muted);
  max-width: 60ch;
}

.hero-links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-weight: 500;
}

/* Sections */

.section {
  padding-block: clamp(56px, 9vw, 104px);
  border-top: 1px solid var(--rule);
}

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.prose p + p {
  margin-top: 1.1em;
}

.prose p {
  font-size: 18px;
  line-height: 1.7;
}

.section-note {
  color: var(--muted);
  margin-top: -12px;
  margin-bottom: 8px;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
}

.card h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.card p {
  margin-top: 10px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.card-soon {
  margin-top: auto;
  font-size: 15px;
  color: var(--muted);
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.pill-quiet {
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Writing */

.post {
  padding-block: 24px;
  border-top: 1px solid var(--rule);
}

.post:last-child {
  padding-bottom: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.post h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.post p {
  margin-top: 6px;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 32px 48px;
  font-size: 14.5px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* Small screens */

@media (max-width: 760px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 22px 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .nav {
    padding-block: 16px;
  }

  .nav-links {
    gap: 4px 18px;
    font-size: 14.5px;
  }

  .prose p {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .skip {
    display: none;
  }
}
