:root {
  --paper: #102832;
  --ink: #eff2ed;
  --muted: #aab9b7;
  --accent: #77c7b3;
  --line: rgba(239, 242, 237, 0.2);
  --code: #173943;
  --light-paper: #edf0ea;
  --light-ink: #17313a;
  --warm: #ed765d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 4%, rgba(119, 199, 179, 0.14), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

::selection { background: var(--warm); color: #fff; }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.shell {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

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

.wordmark { font-weight: 650; letter-spacing: -0.025em; }

.archive-header nav { display: flex; gap: 28px; color: var(--muted); font-size: 0.875rem; }
.archive-header nav a:hover, .archive-site-footer a:hover { color: var(--accent); }

.eyebrow,
.article-meta,
.archive-item-meta,
.back-link,
.post-nav span {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow { color: var(--accent); }

.archive-intro { max-width: 850px; padding-block: clamp(80px, 12vw, 150px); }

.archive-intro h1,
.article-header h1 {
  margin: 22px 0 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.archive-intro h1 { font-size: clamp(3.5rem, 8vw, 7.5rem); }
.archive-intro > p:last-child { max-width: 680px; color: var(--muted); font-size: 1.05rem; }

.archive-year {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 56px;
  padding-block: 70px;
  border-top: 1px solid var(--line);
  background: var(--light-paper);
  box-shadow: 0 0 0 100vmax var(--light-paper);
  clip-path: inset(0 -100vmax);
  color: var(--light-ink);
}

.archive-year h2 {
  margin: 0;
  color: #287c6f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 400;
}

.archive-list { border-top: 1px solid rgba(23, 49, 58, 0.2); }

.archive-item {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) auto;
  gap: 28px;
  padding-block: 28px;
  border-bottom: 1px solid rgba(23, 49, 58, 0.2);
  transition: color 160ms ease, padding-left 160ms ease;
}

.archive-item:hover { padding-left: 7px; color: var(--accent); }
.archive-item-meta { display: flex; flex-direction: column; gap: 4px; color: #617176; }
.archive-item-copy { display: block; }
.archive-item-copy strong { display: block; margin-bottom: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 400; line-height: 1.25; }
.archive-item-copy > span { display: block; max-width: 650px; color: #617176; font-size: 0.88rem; }

.article { max-width: 920px; padding-block: clamp(65px, 9vw, 120px); }
.article-header { margin-bottom: 65px; }
.back-link { display: inline-block; margin-bottom: 55px; color: var(--accent); }
.article-meta { display: flex; gap: 22px; color: var(--muted); }
.article-header h1 { max-width: 900px; font-size: clamp(3rem, 7vw, 6.5rem); }

.archive-notice {
  max-width: 660px;
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.92rem;
}

.article-hero { margin: 0 0 70px; }
.article-hero img { display: block; width: 100%; max-height: 620px; object-fit: cover; }

.article-body { max-width: 760px; margin-inline: auto; color: #d9e1de; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.article-body > *:first-child { margin-top: 0; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body pre, .article-body table { margin-block: 1.4em; }
.article-body h2, .article-body h3, .article-body h4 { margin: 2.2em 0 0.7em; color: var(--ink); line-height: 1.2; }
.article-body h2 { font-size: 1.8rem; }
.article-body h3 { font-size: 1.35rem; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 2em auto; }
.article-body figure { max-width: 100%; margin: 2em 0; }
.article-body figcaption { margin-top: -1.3em; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.78rem; text-align: center; }
.article-body blockquote { padding: 0.15em 0 0.15em 1.25em; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.article-body pre { max-width: 100%; overflow-x: auto; padding: 20px; background: var(--code); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.8rem; line-height: 1.55; white-space: pre; }
.article-body code { padding: 0.1em 0.25em; background: var(--code); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.86em; }
.article-body pre code { padding: 0; background: transparent; }
.article-body iframe, .article-body video { width: 100%; max-width: 100%; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.86rem; }
.article-body th, .article-body td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }

.article-footer { max-width: 760px; margin: 90px auto 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.article-footer > p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 55px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.post-nav a:hover strong { color: var(--accent); }
.post-nav span { color: var(--muted); }
.post-nav strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 400; line-height: 1.3; }

.archive-site-footer {
  display: flex;
  justify-content: space-between;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.archive-site-footer p { margin: 0; }

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 1120px); }
  .archive-year { grid-template-columns: 1fr; gap: 24px; }
  .archive-item { grid-template-columns: 1fr auto; }
  .archive-item-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .article-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .post-nav { grid-template-columns: 1fr; }
  .archive-site-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
