:root {
  --paper: #f4f1e8;
  --ink: #173432;
  --muted: #61716b;
  --line: #c7cec5;
  --water: #2e7770;
  --water-light: #96bdb2;
  --white: #fffdf7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 5%, rgba(150, 189, 178, .24), transparent 26rem),
    var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 720;
  letter-spacing: .01em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  letter-spacing: .12em;
}

nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--ink); }

.hero { padding: clamp(80px, 12vw, 150px) 0 74px; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--water);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 { max-width: 850px; margin-bottom: 28px; font-size: clamp(52px, 8vw, 104px); letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.03em; }
h3 { margin-bottom: 18px; font-size: 28px; }
h3 a { text-decoration-thickness: 1px; text-underline-offset: 5px; }

.intro { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }

.river-line { height: 58px; margin-top: 58px; overflow: hidden; }
.river-line::before,
.river-line::after,
.river-line span {
  content: "";
  display: block;
  width: 118%;
  height: 1px;
  margin-left: -9%;
  border-radius: 50%;
  background: var(--water-light);
  transform: rotate(-1.4deg);
}
.river-line::after { margin-top: 18px; transform: rotate(.8deg); opacity: .65; }
.river-line span { margin-top: 20px; transform: rotate(-.25deg); opacity: .38; }

.journal { padding: 74px 0 96px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 44px; }

.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.entries article {
  min-height: 350px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 253, 247, .55);
}
.entries article:nth-child(2) { transform: translateY(18px); }
.entries article p:not(.entry-meta) { color: var(--muted); }
.entry-meta { margin: 0 0 44px; color: var(--water); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.read-more { margin-top: auto; font-size: 14px; font-weight: 700; text-decoration: none; }

.about {
  margin-bottom: 96px;
  padding: 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--ink);
  color: var(--white);
}
.about .eyebrow { color: var(--water-light); }
.about > p { margin: 0; color: #cbd7d1; font-size: 18px; }

footer {
  padding: 30px 0 44px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.article-page main { max-width: 760px; padding: 84px 0 110px; }
.article-page h1 { font-size: clamp(46px, 7vw, 76px); }
.article-page .article-meta { color: var(--water); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.article-page article { color: #304844; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.article-page article p:first-of-type::first-letter { float: left; margin: 9px 10px 0 0; color: var(--water); font-size: 64px; line-height: .72; }
.back-link { display: inline-block; margin-top: 34px; color: var(--water); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 700; }

.not-found { min-height: 72vh; display: grid; place-content: center; text-align: center; }
.not-found strong { color: var(--water); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.not-found h1 { margin: 18px 0; font-size: clamp(58px, 11vw, 120px); }
.not-found p { max-width: 480px; color: var(--muted); }

@media (max-width: 780px) {
  .site-header, main, footer { width: min(100% - 28px, 680px); }
  nav { gap: 16px; }
  .hero { padding-top: 72px; }
  .entries { grid-template-columns: 1fr; }
  .entries article { min-height: 280px; }
  .entries article:nth-child(2) { transform: none; }
  .about { padding: 36px 28px; grid-template-columns: 1fr; }
  footer { gap: 16px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
