/* Highland · Ethiopia history site — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Ethiopic:wght@400;500;600&family=Fraunces:ital,wght@0,400;0,500;1,400&family=Spectral:ital,wght@0,400;0,500;1,400&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,300;1,6..72,400;1,6..72,500&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ivory: #f5f1e8;
  --paper: #ffffff;
  --ink: #0f1612;
  --ink-80: rgba(15, 22, 18, 0.8);
  --ink-60: rgba(15, 22, 18, 0.6);
  --ink-40: rgba(15, 22, 18, 0.4);
  --ink-20: rgba(15, 22, 18, 0.2);
  --ink-10: rgba(15, 22, 18, 0.1);
  --green: #1f3a2c;
  --moss: #5a7860;
  --rust: #a64a2a;
  --gold: #caa14a;

  --serif: 'Newsreader', 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}

.eyebrow.muted { color: var(--ink-60); }
.eyebrow.gold { color: var(--gold); }

/* === Header === */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 24px 56px;
  border-bottom: 1px solid var(--ink-10);
  background: var(--ivory);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.site-header.on-dark {
  background: var(--green);
  color: var(--ivory);
  border-bottom-color: rgba(245, 241, 232, 0.1);
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 13px;
  color: var(--ink-60);
}
.on-dark .nav-links { color: rgba(245, 241, 232, 0.7); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.on-dark .nav-links a:hover, .on-dark .nav-links a.active { color: var(--ivory); }
.cta-btn {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s ease;
}
.cta-btn:hover { background: var(--ink); color: var(--ivory); }
.on-dark .cta-btn { border-color: var(--ivory); color: var(--ivory); }
.on-dark .cta-btn:hover { background: var(--ivory); color: var(--ink); }

.hl-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--ink-20, rgba(28,28,28,0.2));
  background: transparent;
  color: var(--ink-60, rgba(28,28,28,0.6));
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hl-search-btn:hover { border-color: var(--ink); color: var(--ink); }
.hl-search-btn .kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid currentColor;
  opacity: 0.6;
}

.header-actions {
  justify-self: end;
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  gap: 14px;
}

@media (max-width: 1180px) {
  .site-header { padding: 20px 32px; }
  .nav-links { gap: 22px; font-size: 12px; }
  .hl-search-btn .kbd { display: none; }
}
@media (max-width: 980px) {
  .hl-search-btn span:nth-child(2) { display: none; }
  .cta-btn { padding: 9px 14px; font-size: 11px; }
}
.on-dark .hl-search-btn {
  border-color: rgba(245, 241, 232, 0.25);
  color: rgba(245, 241, 232, 0.7);
}
.on-dark .hl-search-btn:hover {
  border-color: var(--ivory);
  color: var(--ivory);
}

/* === More button + Mega menu === */
.site-header { position: sticky; }
.more-btn {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-60);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.more-btn:hover, .more-btn.active, .more-btn.open { color: var(--ink); }
.on-dark .more-btn { color: rgba(245, 241, 232, 0.7); }
.on-dark .more-btn:hover, .on-dark .more-btn.open { color: var(--ivory); }
.more-caret { font-size: 10px; transition: transform 0.2s ease; }
.more-btn.open .more-caret { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ivory);
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-20);
  box-shadow: 0 24px 48px -16px rgba(15, 22, 18, 0.16);
  z-index: 60;
  animation: megaIn 0.18s ease;
}
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  padding: 48px 56px;
  max-width: 1280px;
  margin: 0 auto;
}
.mega-col { }
.mega-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 8px;
}
.mega-blurb {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-60);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-10);
}
.mega-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-10);
  transition: color 0.12s ease, transform 0.12s ease;
}
.mega-link:hover { transform: translateX(4px); }
.mega-link.on .mega-link-label { color: var(--rust); }
.mega-link-label {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.mega-link:hover .mega-link-label { color: var(--rust); }
.mega-link-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-60);
  margin-top: 4px;
}

/* === Headings === */
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
  margin: 0;
}
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.h-feature {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
em.italic { font-style: italic; font-weight: 300; }

/* === Paragraphs === */
.lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-80);
}
.body-text { font-size: 15px; line-height: 1.7; color: var(--ink-80); }
.body-text + .body-text { margin-top: 16px; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 16px 28px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--mono);
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: all 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }

/* === Layout primitives === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
section { padding: 80px 0; }
.divider-top { border-top: 1px solid var(--ink-10); }

/* Placeholder image */
.ph {
  position: relative;
  overflow: hidden;
  background: #e8ddc9;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 8px,
    rgba(122, 106, 79, 0.18) 8px,
    rgba(122, 106, 79, 0.18) 14px
  );
}
.ph .ph-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(122, 106, 79, 0.95);
  text-align: center; padding: 16px;
}
.ph.tone-deep { background: #3a2d1f; }
.ph.tone-deep::before { background-image: repeating-linear-gradient(45deg, transparent 0, transparent 8px, rgba(214, 198, 165, 0.18) 8px, rgba(214, 198, 165, 0.18) 14px); }
.ph.tone-deep .ph-label { color: rgba(214, 198, 165, 0.9); }
.ph.tone-green { background: #2f3d31; }
.ph.tone-green::before { background-image: repeating-linear-gradient(45deg, transparent 0, transparent 8px, rgba(205, 214, 192, 0.16) 8px, rgba(205, 214, 192, 0.16) 14px); }
.ph.tone-green .ph-label { color: rgba(205, 214, 192, 0.9); }
.ph.tone-terra { background: #b25a3a; }
.ph.tone-terra::before { background-image: repeating-linear-gradient(45deg, transparent 0, transparent 8px, rgba(244, 230, 214, 0.18) 8px, rgba(244, 230, 214, 0.18) 14px); }
.ph.tone-terra .ph-label { color: rgba(244, 230, 214, 0.95); }
.ph.tone-parch { background: #f1e9d8; }
.ph.tone-parch::before { background-image: repeating-linear-gradient(45deg, transparent 0, transparent 8px, rgba(138, 122, 93, 0.18) 8px, rgba(138, 122, 93, 0.18) 14px); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 96px 56px 80px;
}
.hero-left .h-display { font-size: 96px; }
.hero-sub {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-80);
  max-width: 480px;
  margin-top: 32px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--ink-20);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-80);
}

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 56px;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}
.stat-num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-top: 12px;
}

/* Place card */
.place-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.place-card {
  background: var(--paper);
  border: 1px solid var(--ink-10);
}
.place-card .ph { height: 220px; }
.place-body { padding: 28px; }
.place-region {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
}
.place-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.place-text { font-size: 14px; line-height: 1.6; color: var(--ink-60); margin: 0; }

/* Footer */
.site-footer {
  padding: 80px 56px 56px;
  border-top: 1px solid var(--ink-10);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 16px;
}
.foot-link { display: block; font-size: 13px; color: var(--ink-80); margin-bottom: 8px; transition: color 0.15s ease; }
.foot-link:hover { color: var(--ink); }
.foot-blurb { font-size: 13px; color: var(--ink-60); max-width: 320px; margin-top: 16px; }
.foot-bottom {
  grid-column: 1 / -1;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-10);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  display: flex; justify-content: space-between;
}

/* Page hero (for sub-pages) */
.page-hero {
  padding: 80px 56px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  border-bottom: 1px solid var(--ink-10);
}
.page-hero .h-display { font-size: 80px; }
.crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 24px;
}
.crumb a:hover { color: var(--ink); }

/* Long-form column */
.longform {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding: 80px 56px;
  border-bottom: 1px solid var(--ink-10);
}
.longform aside { position: sticky; top: 96px; align-self: start; }
.longform aside .eyebrow { display: block; margin-bottom: 16px; }
.longform aside .meta-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-60);
  margin-bottom: 8px;
}
.longform .article p { font-size: 17px; line-height: 1.65; color: var(--ink-80); margin: 0 0 20px; }
.longform .article h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 84px;
  line-height: 0.85;
  float: left;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--rust);
  font-weight: 400;
}
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 300;
  border-left: 2px solid var(--rust);
  padding-left: 24px;
  margin: 40px 0;
  color: var(--ink);
}
.caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-top: 12px;
}

/* Panels */
.panel {
  margin: 0 56px;
  padding: 80px 64px;
  border-radius: 4px;
}
.panel.green { background: var(--green); color: var(--ivory); }
.panel.green .stat-label { color: rgba(245, 241, 232, 0.6); }

/* Timeline */
.timeline-wrap { padding: 96px 56px; position: relative; }
.timeline-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-bottom: 64px;
}
.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 271px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--ink-10);
}
.era {
  display: grid;
  grid-template-columns: 240px 64px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--ink-10);
}
.era-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding-top: 8px;
}
.era-region {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-40);
  margin-top: 6px;
}
.era-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 14px;
  justify-self: center;
  position: relative;
  z-index: 1;
}
.era-dot.rust { background: var(--rust); }
.era-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.era-text { font-size: 15px; line-height: 1.65; color: var(--ink-80); max-width: 640px; }


/* === Almanac strip === */
.almanac {
  background: var(--ink);
  color: var(--ivory);
  padding: 32px 56px 36px;
  border-top: 1px solid var(--ink-10);
  position: relative;
}
.almanac-mark {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(202, 161, 74, 0.85);
  margin-bottom: 20px;
}
.almanac-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.alm-cell {
  padding: 4px 28px;
  border-left: 1px solid rgba(245, 241, 232, 0.13);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.alm-cell:first-child { border-left: none; padding-left: 0; }
.alm-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  margin-bottom: 10px;
}
.alm-big {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-bottom: 6px;
}
.alm-festival .alm-big { color: var(--gold, #caa14a); font-style: italic; }
.alm-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245, 241, 232, 0.6);
  line-height: 1.4;
}
.alm-cta {
  justify-content: center;
  gap: 8px;
}
.alm-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ivory);
  border-bottom: 1px solid rgba(245, 241, 232, 0.3);
  padding-bottom: 4px;
  width: fit-content;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.alm-link:hover { color: var(--gold, #caa14a); border-color: var(--gold, #caa14a); }
.alm-link-sub { color: rgba(245, 241, 232, 0.6); font-size: 11px; }
@media (max-width: 980px) {
  .almanac-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .alm-cell { border-left: none; padding: 0 20px; }
}


/* === Thirteen months section === */
.thirteen {
  background: var(--green, #2c3a30);
  color: var(--ivory);
  padding: 120px 56px;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
}
.thirteen-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.gold-on-dark { color: var(--gold, #caa14a); }
.thirteen-title { color: var(--ivory); }
.thirteen-blurb {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.8);
  max-width: 520px;
  margin: 0;
  justify-self: end;
}
.thirteen-blurb strong { color: var(--gold, #caa14a); font-weight: 500; }
.thirteen-blurb em { color: var(--ivory); font-style: italic; }
.thirteen-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  border-top: 1px solid rgba(245, 241, 232, 0.18);
  border-bottom: 1px solid rgba(245, 241, 232, 0.18);
}
.month-cell {
  position: relative;
  padding: 28px 14px 24px;
  border-left: 1px solid rgba(245, 241, 232, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  transition: background 0.18s ease;
}
.month-cell:first-child { border-left: none; }
.month-cell:hover { background: rgba(245, 241, 232, 0.04); }
.month-cell.is-pagume {
  background: rgba(166, 74, 42, 0.18);
}
.month-cell.is-pagume:hover { background: rgba(166, 74, 42, 0.26); }
.month-cell.is-now::before {
  content: "★";
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--gold, #caa14a);
  font-size: 14px;
}
.month-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(245, 241, 232, 0.45);
}
.month-name {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: var(--ivory);
}
.month-geez {
  font-family: serif;
  font-size: 22px;
  color: var(--gold, #caa14a);
  line-height: 1;
}
.month-greg {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 232, 0.55);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(245, 241, 232, 0.15);
}
.month-season {
  width: 100%;
  height: 3px;
  margin-top: 4px;
}
.s-tseday, .month-season.s-tseday { background: #6e9e7a; }
.s-bega,   .month-season.s-bega   { background: #caa14a; }
.s-belg,   .month-season.s-belg   { background: #a64a2a; }
.s-kiremt, .month-season.s-kiremt { background: #4a6478; }
.thirteen-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 232, 0.6);
  flex-wrap: wrap;
  gap: 16px;
}
.leg-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.leg-swatch {
  display: inline-block;
  width: 14px;
  height: 4px;
  margin-right: 4px;
  margin-left: 14px;
}
.leg-row > .leg-swatch:first-child { margin-left: 0; }
.leg-note { color: rgba(245, 241, 232, 0.5); font-style: italic; }

@media (max-width: 1100px) {
  .thirteen-grid { grid-template-columns: repeat(7, 1fr); }
  .month-cell { min-height: 180px; }
}
@media (max-width: 720px) {
  .thirteen-grid { grid-template-columns: repeat(4, 1fr); }
  .thirteen-head { grid-template-columns: 1fr; gap: 24px; }
  .thirteen-blurb { justify-self: start; }
}
