:root {
  --ink: #35333a;
  --muted: #766f72;
  --paper: #fffefb;
  --ground: #f1eee8;
  --aqua: #58d8cf;
  --aqua-dark: #198e8d;
  --berry: #bd167e;
  --lime: #c9df40;
  --line: #ded8ce;
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.66;
}

img { max-width: 100%; height: auto; }

a { color: #9e176d; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: #126f71; }

.page-shell {
  width: min(1080px, calc(100% - 30px));
  margin: 20px auto 42px;
  background: var(--paper);
  border: 1px solid #d9d2c8;
  box-shadow: 0 5px 18px rgba(72, 58, 52, .12);
}

.site-header {
  padding: 20px 34px 8px;
  text-align: center;
  border-top: 7px solid var(--aqua);
}

.site-logo {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto;
}

.tagline {
  margin: -4px 0 12px;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-nav {
  border-top: 1px dashed #bdb5ad;
  border-bottom: 4px double var(--aqua);
  background: #fbfaf6;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 11px 18px 9px;
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--berry);
  background: #f5f0ea;
}

.welcome-strip {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  align-items: center;
  margin: 28px 36px 8px;
  padding: 16px 22px;
  border: 1px solid #d6d1c7;
  border-left: 9px solid var(--lime);
  background: #f8f7f2;
}

.welcome-strip strong {
  color: var(--berry);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.welcome-strip p { margin: 4px 0 0; }

.notebook-mark {
  color: var(--aqua-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.15;
  text-align: center;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 36px;
  padding: 28px 36px 38px;
}

.journal { min-width: 0; }

.section-kicker,
.post-meta,
.archive-date,
.eyebrow {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-kicker,
.eyebrow { color: var(--berry); }

h1, h2, h3 {
  margin-top: 0;
  color: #2f2b2e;
  font-weight: 400;
  line-height: 1.12;
}

h1 { margin-bottom: 12px; font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: 31px; }
h3 { font-size: 22px; }

.lead-post {
  padding-bottom: 30px;
  border-bottom: 1px dashed #aaa39b;
}

.lead-photo {
  position: relative;
  margin: 0 0 22px;
  padding: 8px;
  background: #fff;
  border: 1px solid #cec7bd;
  box-shadow: 3px 3px 0 #e5e0d8;
}

.lead-photo img { display: block; width: 100%; }

.lead-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 5px 9px;
  color: #fff;
  background: #8b145f;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 11px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.post-meta { margin: 0 0 10px; color: var(--muted); }
.post-meta span { color: var(--aqua-dark); }
.post-deck { color: #555054; font-size: 19px; }
.text-link { font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 13px; font-weight: 700; }

.notebook-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 6px;
}

.notebook-heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--aqua);
}

.post-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px dotted #aaa39b;
}

.post-row figure { margin: 0; }
.post-row img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid #f2eee7; }
.post-row h3 { margin: 4px 0 8px; font-size: 25px; }
.post-row p { margin: 8px 0; }

.side-rail {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}

.rail-block {
  margin-bottom: 28px;
  padding-top: 14px;
  border-top: 5px solid var(--berry);
}

.rail-block:nth-child(2) { border-color: var(--aqua); }
.rail-block:nth-child(3) { border-color: var(--lime); }
.rail-block h2 { margin-bottom: 10px; font-size: 23px; font-style: italic; }
.rail-block p { margin-top: 0; font-size: 15px; }
.rail-list { margin: 0; padding: 0; list-style: none; }
.rail-list li { border-bottom: 1px dotted #c8c0b7; }
.rail-list a { display: block; padding: 8px 2px; font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 14px; text-decoration: none; }
.rail-list a::before { content: "+ "; color: var(--berry); }

.year-stack { display: grid; gap: 20px; }
.year-group { display: grid; grid-template-columns: 84px 1fr; gap: 22px; padding: 20px 0; border-top: 1px dashed #aaa39b; }
.year-label { color: var(--berry); font-size: 28px; font-style: italic; }
.archive-list { margin: 0; padding: 0; list-style: none; }
.archive-list li { display: grid; grid-template-columns: 94px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px dotted #c9c2b9; }
.archive-date { color: var(--muted); }
.image-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.archive-list a { font-weight: 700; text-decoration: none; }

.article-page .content-grid { grid-template-columns: minmax(0, 720px) 250px; justify-content: center; }
.article-head { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px dashed #aaa39b; }
.article-head h1 { font-size: clamp(38px, 5vw, 55px); }
.article-body p { margin: 0 0 1.25em; }
.article-body h2 { margin: 1.4em 0 .6em; font-size: 29px; }
.article-body ul { margin: 0 0 1.4em; }
.article-figure { margin: 25px 0; padding: 7px; background: #fff; border: 1px solid #ccc4ba; box-shadow: 3px 3px 0 #e6e1da; }
.article-figure img { display: block; width: 100%; }
.article-figure figcaption { padding: 8px 5px 2px; color: var(--muted); font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 12px; }
.article-figure.portrait { max-width: 440px; margin-right: auto; margin-left: auto; }
.article-note { margin: 28px 0; padding: 15px 18px; border-left: 8px solid var(--aqua); background: #f5f4ee; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 18px; border-top: 4px double var(--aqua); font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 13px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 36px;
  color: #696267;
  background: #f4f0ea;
  border-top: 5px solid var(--aqua);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 12px;
}

.site-footer p { margin: 0; }
.site-footer a { margin-left: 12px; }

@media (max-width: 820px) {
  .content-grid,
  .article-page .content-grid { grid-template-columns: 1fr; }
  .side-rail { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .welcome-strip { grid-template-columns: 1fr; }
  .notebook-mark { text-align: left; }
}

@media (max-width: 580px) {
  body { font-size: 16px; }
  .page-shell { width: 100%; margin: 0; border-right: 0; border-left: 0; }
  .site-header { padding: 15px 16px 5px; }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); }
  .site-nav a { padding: 9px 10px; text-align: center; }
  .welcome-strip { margin: 20px 18px 0; padding: 14px 16px; }
  .content-grid { gap: 24px; padding: 24px 18px 32px; }
  .post-row { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .image-pair { grid-template-columns: 1fr; }
  .post-row h3 { font-size: 21px; }
  .post-row p { display: none; }
  .year-group { grid-template-columns: 1fr; gap: 4px; }
  .archive-list li { grid-template-columns: 78px 1fr; }
  .site-footer { grid-template-columns: 1fr; padding: 18px; }
  .site-footer a { margin: 0 12px 0 0; }
}
