:root {
  --bg:      #f5f2ee;
  --fg:      #1a1a1a;
  --mid:     #555555;
  --faint:   #aaaaaa;
  --line:    #e2ddd8;
  --accent:  #2d6a4f;
  --sans:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); }
a:hover { opacity: 0.7; }

.col { padding: 0 200px; }

/* ── nav ──────────────────────────────────────────────── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}
.logo-mark {
  display: block;
  width: 38px;
  height: 28px;
}
.nav-items { display: flex; gap: 22px; }
.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--faint);
  padding: 0;
  transition: color .15s;
  text-decoration: none;
}
.nav-btn:hover  { color: var(--accent); opacity: 1; }
.nav-btn.active { color: var(--accent); }

.fi {
  opacity: 0;
  animation: rise .28s ease forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ── sec label ────────────────────────────────────────── */
.sec-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

/* ── view intro ───────────────────────────────────────── */
.view-intro {
  font-size: 15.5px;
  color: var(--mid);
  line-height: 1.82;
  padding: 56px 0 38px;
}
.view-intro a { color: var(--mid); }

.e-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ── expandable entries ───────────────────────────────── */
.entries { border-top: 1px solid var(--line); }
.entry   { border-bottom: 1px solid var(--line); }

.entry-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--sans);
}
.entry-btn:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 4px; }

.entry-meta { flex: 1; }
.e-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 3px;
  transition: opacity .15s;
}
.e-org {
  display: block;
  font-size: 12.5px;
  color: var(--faint);
}
.e-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.e-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
}
.e-arrow {
  font-size: 13px;
  color: var(--faint);
  transition: transform .25s ease, color .15s;
  user-select: none;
}
.entry.open .e-arrow { transform: rotate(180deg); color: var(--accent); }

.entry-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
  overflow: hidden;
}
.entry.open .entry-body { grid-template-rows: 1fr; }

.entry-body-inner  { min-height: 0; overflow: hidden; }
.entry-body-content {
  padding-bottom: 26px;
  font-size: 14.5px;
  color: var(--mid);
  line-height: 1.82;
}
.entry-body-content p + p { margin-top: 12px; }
.entry-body-content a { color: var(--mid); }

/* ── sub-sections ─────────────────────────────────────── */
.sub-section { padding-top: 48px; }
.sub-entry {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--mid);
  line-height: 1.72;
}
.sub-entry:last-child { border-bottom: 1px solid var(--line); }
.sub-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 5px;
}
.sub-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
}
.sub-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.sub-entry a { color: var(--mid); }

/* ── footer ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 52px;
}
.foot-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--mid);
  flex-wrap: wrap;
}
.foot-links a { color: var(--mid); text-decoration: none; }
.foot-links a:hover { color: var(--fg); }
.foot-copy {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  .col { padding: 0 24px; }
  .site-nav { padding: 22px 24px 18px; }
  .nav-items { gap: 14px; }
  .sub-head { flex-direction: column; gap: 2px; }
  .e-right { gap: 10px; }
}
