/* ==========================================================================
   Ι.Λ.Ε.Τ. — Ιστορική & Λαογραφική Εταιρία Τζουμέρκων
   Paper, ink and the madder-red / ochre of Epirote weaving.
   ========================================================================== */

:root {
  /* Paper & ink */
  --paper: #f5efe3;
  --paper-deep: #ebe2cf;
  --surface: #fbf8f2;
  --ink: #1d1915;
  --ink-soft: #3d362f;
  --muted: #6b6155;
  --rule: #d6c9b1;
  --rule-soft: #e6dccb;

  /* Textile accents */
  --madder: #8b2316;
  --madder-deep: #5b1810;
  --ochre: #b27b26;
  --ochre-light: #e2b765;

  /* Night (footer, facts band) */
  --night: #1a1613;
  --night-text: #e9dfcc;
  --night-muted: #a99d89;

  /* Type */
  --font-display: 'Noto Serif Display', 'EB Garamond', Georgia, serif;
  --font-text: 'Literata', Georgia, 'Times New Roman', serif;
  --font-ui: 'Commissioner', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-sm: 0.9375rem;
  --text-base: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --text-lg: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 2px;

  /* Ornament: a woven diamond band */
  --textile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Crect width='28' height='14' fill='%231a1613'/%3E%3Cpath d='M14 1.5 19.5 7 14 12.5 8.5 7Z' fill='%238b2316'/%3E%3Cpath d='M14 4.6 16.4 7 14 9.4 11.6 7Z' fill='%23e2b765'/%3E%3Cpath d='M0 0h4L0 4zM28 0h-4l4 4zM0 14h4l-4-4zM28 14h-4l4-4z' fill='%238b2316'/%3E%3Ccircle cx='0' cy='7' r='1.4' fill='%23e2b765'/%3E%3Ccircle cx='28' cy='7' r='1.4' fill='%23e2b765'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-base);
  font-optical-sizing: auto;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--madder); color: var(--paper); }

img, svg { max-width: 100%; }

a {
  color: var(--madder);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover { color: var(--madder-deep); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 1px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem); line-height: 1.22; }

p { margin: 0 0 1em; text-wrap: pretty; }

em { font-style: italic; }
strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); }
.section-flush { padding-top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* ---------- Small type: labels, eyebrows ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--madder);
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow-light { color: var(--ochre-light); }

.label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--madder); border-color: var(--madder); color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-block: 0.3rem;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow span { transition: transform 0.25s ease; }
.link-arrow:hover { color: var(--madder); border-color: currentColor; }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow-light { color: var(--paper); border-color: rgba(245, 239, 227, 0.35); }
.link-arrow-light:hover { color: var(--ochre-light); }

/* ---------- Header / masthead ---------- */

.site-header { position: relative; z-index: 20; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-seal { width: 46px; height: 46px; flex: none; color: var(--ink); }
.brand-peaks { fill: var(--madder); transition: fill 0.2s; }
.brand:hover .brand-peaks { fill: var(--ochre); }
.brand-text { display: grid; gap: 0.2rem; }
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
}
.brand-name {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.masthead-meta {
  margin: 0;
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--muted);
}
.masthead-meta a { color: var(--ink-soft); }

.primary-nav {
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.primary-nav a {
  position: relative;
  display: block;
  padding-block: 0.95rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--madder);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.primary-nav a:hover { color: var(--madder); }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a[aria-current='page'] { color: var(--madder); font-weight: 600; }
.primary-nav a[aria-current='page']::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Ridge silhouette & seal ---------- */

.ridge { display: block; width: 100%; }
.ridge-far { fill: #ddd0b7; }
.ridge-mid { fill: #a69476; }
.ridge-near { fill: var(--night); }

.seal { display: block; color: var(--ink); overflow: visible; }
.seal-ring-text {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  fill: currentColor;
}
.seal-mark {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 2px;
  fill: currentColor;
}
.seal-year {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  fill: var(--madder);
}
.seal-peaks { fill: var(--madder); }

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16.5rem;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero-title {
  font-size: clamp(2.6rem, 1rem + 4.2vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 0.45em;
}
.hero-title .line { display: block; }
.hero-title em {
  font-weight: 400;
  color: var(--madder);
}
.hero-lead {
  max-width: 34em;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}
.hero-emblem { justify-self: end; width: 100%; }
.hero-seal { width: 100%; height: auto; }
.hero-ridge {
  height: clamp(110px, 15vw, 230px);
  margin-top: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: -1px;
}

/* ---------- Home: facts band ---------- */

.facts {
  position: relative;
  margin-top: -1px;
  background: var(--night);
  color: var(--night-text);
}
.facts-grid {
  list-style: none;
  margin-block: 0;
  padding-block: 0.5rem 3.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts-grid li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 0.5rem 1.5rem 0.25rem;
  border-left: 1px solid rgba(233, 223, 204, 0.16);
}
.facts-grid li:first-child { border-left: 0; padding-left: 0; }
.fact-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 2.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ochre-light);
  font-variant-numeric: lining-nums;
}
.fact-value sup { font-size: 0.45em; vertical-align: super; line-height: 0; margin-left: 0.04em; }
.fact-label {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--night-muted);
  max-width: 16rem;
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ink);
}
.section-head h2,
.section-head h3 { margin: 0; }
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-meta {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- Home: news ---------- */

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.news-date {
  margin: 0 0 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--madder);
}
.news-feature-title {
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 0.6em;
}
.news-feature-body {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.news-feature-body::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--madder);
}
.news-list {
  display: grid;
  align-content: start;
  padding-left: clamp(2rem, 4vw, 3.5rem);
  border-left: 1px solid var(--rule);
}
.news-item {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.news-item:first-child { padding-top: 0; border-top: 0; }
.news-item:last-child { padding-bottom: 0; }
.news-title { font-size: 1.375rem; margin-bottom: 0.45em; }
.news-body {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Home: mission ---------- */

.mission {
  position: relative;
  background: var(--madder-deep);
  color: var(--paper);
  padding-block: calc(var(--section-space) + 14px) var(--section-space);
}
.mission::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background: var(--textile) repeat-x left center / auto 14px;
}
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.mission h2 {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
}
.mission-intro p {
  color: rgba(245, 239, 227, 0.84);
  margin-bottom: 2rem;
}

/* Greek-numeral lists (Α΄, Β΄, Γ΄ …) */
.numbered-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.numbered-list li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
}
.numbered-list li:last-child { border-bottom: 1px solid var(--rule); }
.numbered-list .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1;
  color: var(--madder);
}
.numbered-list-light li { border-color: rgba(245, 239, 227, 0.2); }
.numbered-list-light li:last-child { border-bottom-color: rgba(245, 239, 227, 0.2); }
.numbered-list-light .num { color: var(--ochre-light); }
.numbered-list-light li > span:last-child { color: rgba(245, 239, 227, 0.92); }

/* ---------- Inner page header ---------- */

.page-header {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4.5rem, 9vw, 7.5rem);
  border-bottom: 1px solid var(--ink);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { max-width: 24ch; margin-bottom: 0.45em; }
.page-header .lead {
  max-width: 38em;
  margin: 0;
  font-size: var(--text-lg);
  color: var(--ink-soft);
}
.page-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(70px, 10vw, 140px);
}
.page-ridge .ridge-far { fill: #ece3d2; }
.page-ridge .ridge-mid { fill: #e4d9c4; }
.page-ridge .ridge-near { fill: #dacdb5; }

/* ---------- Prose ---------- */

.prose { max-width: 40rem; }
.prose p { font-variant-numeric: oldstyle-nums; }
.prose h2 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }

.dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.4em;
  line-height: 0.8;
  padding: 0.07em 0.1em 0 0;
  color: var(--madder);
}

.closing {
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--madder);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.75rem);
  font-style: italic;
  line-height: 1.38;
  color: var(--ink);
}

/* ---------- History ---------- */

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 40rem) minmax(0, 20rem);
  justify-content: space-between;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.chronology {
  position: sticky;
  top: 2rem;
  align-self: start;
  padding-top: 1.25rem;
  border-top: 3px double var(--ink);
}
.chronology h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.chronology ol { list-style: none; margin: 0; padding: 0; }
.chronology li {
  position: relative;
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--rule);
}
.chronology .year {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--madder);
  font-variant-numeric: lining-nums;
}
.chronology p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Boards ---------- */

.board-current {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--madder);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.board-current-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
}
.board-current-head h2 { margin: 0; }
.board-current-period {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  font-style: italic;
  line-height: 1.2;
  color: var(--madder);
  font-variant-numeric: lining-nums;
}

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  column-gap: 2.5rem;
  margin: 0;
}
.roster > div {
  display: flex;
  flex-direction: column;
  padding-block: 0.95rem;
  border-top: 1px solid var(--rule);
}
.roster dt {
  margin-bottom: 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.roster dd {
  margin: auto 0 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
}
.roster-compact { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); column-gap: 2rem; }
.roster-compact > div { padding-block: 0.7rem; }
.roster-compact dd { font-family: var(--font-text); font-size: 1rem; }
.roster-wide { grid-column: 1 / -1; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: 2.25rem;
  border-top: 1px solid var(--ink);
}
.timeline-item:first-child { border-top: 0; padding-top: 0; }
.timeline-period { display: grid; align-content: start; gap: 0.5rem; }
.timeline-years {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.35rem + 0.8vw, 2.1rem);
  line-height: 1.05;
  font-variant-numeric: lining-nums;
}
.board-note {
  margin: 1rem 0 0;
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--muted);
}

/* ---------- Publications ---------- */

.pub-intro {
  display: grid;
  grid-template-columns: minmax(0, 40rem) minmax(0, 22rem);
  justify-content: space-between;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-bottom: var(--section-space);
}
.award {
  position: relative;
  padding: 2rem 2rem 2.25rem;
  background: var(--madder-deep);
  color: var(--paper);
  text-align: center;
}
.award::before,
.award::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--textile) repeat-x center / auto 10px;
}
.award::before { top: 0; }
.award::after { bottom: 0; }
.award-mark {
  display: block;
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--ochre-light);
}
.award-mark sup { font-size: 0.42em; vertical-align: super; line-height: 0; }
.award .label { color: var(--ochre-light); display: block; margin-bottom: 0.75rem; }
.award p { margin: 0; font-size: var(--text-sm); color: rgba(245, 239, 227, 0.88); }
.award .award-title {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--paper);
}

.issues {
  list-style: none;
  margin: 0 0 var(--section-space);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
  gap: 1rem;
}
.issue {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px var(--rule-soft);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.issue::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--madder);
  opacity: 0.85;
}
.issue:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px var(--rule-soft), 0 14px 24px -14px rgba(29, 25, 21, 0.45);
}
.issue-series {
  font-family: var(--font-ui);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}
.issue-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.issue-year {
  width: 100%;
  padding-top: 0.45rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.issue-featured {
  grid-column: span 2;
  aspect-ratio: auto;
  background: var(--madder-deep);
  border-color: var(--madder-deep);
  color: var(--paper);
  box-shadow: inset 0 0 0 5px var(--madder-deep), inset 0 0 0 6px rgba(226, 183, 101, 0.45);
}
.issue-featured:hover {
  box-shadow: inset 0 0 0 5px var(--madder-deep), inset 0 0 0 6px rgba(226, 183, 101, 0.45), 0 14px 24px -14px rgba(29, 25, 21, 0.55);
}
.issue-featured::before { background: var(--ochre-light); }
.issue-featured .issue-series { color: var(--ochre-light); }
.issue-featured .issue-number { font-size: 4rem; color: var(--paper); }
.issue-featured .issue-year { color: var(--paper); border-color: rgba(245, 239, 227, 0.25); }
.issue-note {
  display: block;
  margin: 0.35rem 0 0;
  letter-spacing: 0;
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.4;
  color: rgba(245, 239, 227, 0.85);
}

.pub-list {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
}
.pub-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule);
}
.pub-item:last-child { border-bottom: 1px solid var(--rule); }
.pub-item .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.2;
  color: var(--madder);
}
.pub-item h3 { margin-bottom: 0.35rem; }
.pub-author { margin: 0 0 0.4rem; font-style: italic; color: var(--ink-soft); }
.pub-desc { margin: 0; color: var(--muted); max-width: 44rem; }

.footnote {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
}

/* ---------- Photos ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 2.75rem 2rem;
  margin-bottom: 4rem;
}
.gallery-card { display: grid; align-content: start; gap: 1.1rem; }
.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--paper-deep);
  box-shadow: inset 0 0 0 1px rgba(29, 25, 21, 0.08);
  transition: transform 0.35s ease;
}
.gallery-card:hover .gallery-thumb { transform: translateY(-4px); }
.gallery-index {
  position: absolute;
  left: 1.1rem;
  bottom: 0.8rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-style: italic;
  line-height: 1;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}
.gallery-body h3 { margin-bottom: 0.4rem; }
.gallery-body p { margin: 0; font-size: var(--text-sm); color: var(--muted); }

/* Archive: sepia plate */
.thumb-1 {
  background:
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(20, 12, 6, 0.55) 100%),
    repeating-linear-gradient(0deg, rgba(255, 240, 210, 0.05) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #9a7a55 0%, #6c5133 55%, #3e2c1a 100%);
}
.thumb-1::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 240, 210, 0.35);
}
/* Landscape: ridge at dusk */
.thumb-2 { background: linear-gradient(180deg, #f1d39a 0%, #e0a066 45%, #b8684a 100%); }
.thumb-2 .ridge { position: absolute; inset: auto 0 0; height: 62%; }
.thumb-2 .ridge-far { fill: #b87c5c; }
.thumb-2 .ridge-mid { fill: #6e4232; }
.thumb-2 .ridge-near { fill: #2a1b15; }
/* Events: madder lattice */
.thumb-3 {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 0 32 16 16 32 0 16Z' fill='none' stroke='%23f5efe3' stroke-opacity='.2'/%3E%3Cpath d='M16 10.5 21.5 16 16 21.5 10.5 16Z' fill='%23e2b765' fill-opacity='.4'/%3E%3C/svg%3E"),
    linear-gradient(150deg, #9c2a1b, #5b1810);
}
/* Museum (Mavropanou): ochre chevrons */
.thumb-4 {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16'%3E%3Cpath d='M0 12 12 4 24 12' fill='none' stroke='%231d1915' stroke-opacity='.22' stroke-width='1.5'/%3E%3C/svg%3E"),
    linear-gradient(150deg, #d19a45, #a46d22);
}
/* Folklore museum: woven kilim */
.thumb-5 { background: var(--textile) 0 0 / 56px 28px; }
.thumb-5 .gallery-index { text-shadow: 0 0 18px #1a1613, 0 0 6px #1a1613; }

/* ---------- Links ---------- */

.link-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  column-gap: 3rem;
  border-bottom: 1px solid var(--rule);
}
.link-grid li { border-top: 1px solid var(--rule); margin-bottom: -1px; }
.link-grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  padding-block: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.link-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  transition: color 0.2s;
}
.link-host {
  grid-column: 1;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.link-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--madder);
  transition: transform 0.25s ease;
}
.link-grid a:hover .link-label { color: var(--madder); }
.link-grid a:hover .link-icon { transform: translate(3px, -3px); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-list { margin: 0; border-bottom: 1px solid var(--rule); }
.contact-list > div { padding-block: 1.1rem; border-top: 1px solid var(--rule); }
.contact-list dt { margin-bottom: 0.3rem; }
.contact-list dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
}
.contact-form h2 { margin-bottom: 0.25rem; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover,
.field textarea:hover { border-color: #bfae90; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(178, 123, 38, 0.28);
}
.contact-form .btn { justify-self: start; margin-top: 0.25rem; }

/* ---------- 404 ---------- */

.not-found { text-align: center; }
.not-found .eyebrow { justify-content: center; }
.not-found .eyebrow::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
}
.not-found-code {
  display: block;
  margin-bottom: 0.1em;
  font-family: var(--font-display);
  font-size: clamp(6rem, 4rem + 9vw, 11rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
  color: var(--madder);
}
.not-found p { color: var(--ink-soft); }
.not-found .btn { margin-top: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--night);
  color: var(--night-text);
  padding-top: 14px;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background: var(--textile) repeat-x left center / auto 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.footer-seal { width: 6.5rem; height: auto; color: var(--night-text); }
.footer-seal .seal-year,
.footer-seal .seal-peaks { fill: var(--ochre-light); }
.footer-title {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  color: #fff;
}
.footer-brand p:not(.footer-title) { font-size: var(--text-sm); color: var(--night-muted); }
.footer-heading {
  margin-bottom: 1rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-light);
}
.footer-col p { margin-bottom: 0.5rem; font-size: var(--text-sm); color: var(--night-muted); }
.site-footer a { color: var(--night-text); text-decoration-color: rgba(233, 223, 204, 0.3); }
.site-footer a:hover { color: var(--ochre-light); }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
}
.footer-links a { text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(233, 223, 204, 0.14);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--night-muted);
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .primary-nav a { font-size: 0.875rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
}

@media (max-width: 960px) {
  .masthead-meta { display: none; }
  .nav-toggle { display: inline-flex; }
  .masthead { border-bottom: 1px solid var(--ink); }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 0;
    box-shadow: 0 18px 30px -18px rgba(29, 25, 21, 0.4);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding-block: 0.5rem; }
  .primary-nav li + li { border-top: 1px solid var(--rule); }
  .primary-nav a { padding-block: 0.9rem; font-size: 1.0625rem; }
  .primary-nav a::after { display: none; }
  .primary-nav a[aria-current='page']::before {
    content: '';
    position: absolute;
    left: calc(var(--gutter) * -1);
    top: 0.75rem;
    bottom: 0.75rem;
    width: 3px;
    background: var(--madder);
  }

  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .facts-grid li:nth-child(3) { border-left: 0; padding-left: 0; }

  .news-grid,
  .mission-grid,
  .article-grid,
  .pub-intro,
  .contact-grid { grid-template-columns: 1fr; }

  .chronology { position: static; }
  .timeline-item { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand-seal { width: 40px; height: 40px; }
  .brand-mark { font-size: 1.4rem; }
  .brand-name { font-size: 0.75rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid li { border-left: 0; padding-left: 0; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(233, 223, 204, 0.16); }
  .facts-grid li:last-child { border-bottom: 0; }
  .form-row { grid-template-columns: 1fr; }
  .issues { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .issue { justify-content: center; gap: 0.5rem; padding: 0.75rem 0.5rem; }
  .issue:not(.issue-featured) .issue-series { display: none; }
  .issue-number { font-size: 2.25rem; }
  .issue-featured { grid-column: 1 / -1; padding-block: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-template-columns: 1fr; }
  .footer-seal { width: 5.5rem; }
}

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

@media print {
  body { background: #fff; }
  .site-header nav, .nav-toggle, .skip-link, .hero-ridge, .page-ridge, .hero-emblem { display: none !important; }
  .site-footer { background: #fff; color: #000; }
}

/* ---------- News archive & posts ---------- */

.news-feature-title a,
.news-title a,
.archive-title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s ease, color 0.2s ease; }
.news-feature-title a:hover,
.news-title a:hover,
.archive-title a:hover { color: var(--madder); background-size: 100% 1px; }
.section-head .link-arrow { flex-shrink: 0; }

.eyebrow-link { color: inherit; text-decoration: none; }
.eyebrow-link:hover { color: var(--madder-deep); text-decoration: underline; text-underline-offset: 0.25em; }

.archive-year { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.archive-year-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
}
.archive-year-head h2 { margin: 0; font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); font-variant-numeric: lining-nums; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-item {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.archive-item .news-date { margin: 0.35rem 0 0; }
.archive-title { margin: 0 0 0.4em; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.25; }
.archive-excerpt { margin: 0; max-width: 46rem; font-size: var(--text-sm); line-height: 1.6; color: var(--muted); }

.post-title { max-width: 32ch; font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem); line-height: 1.12; }
.post-meta { margin: 0; font-family: var(--font-ui); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--muted); }
.post-body { max-width: 44rem; }
.post-body p, .post-body li { font-variant-numeric: lining-nums; }
.post-body figure { margin: 2rem 0; }
.post-body img { display: block; max-width: 100%; height: auto; margin-inline: auto; box-shadow: 0 1px 0 var(--rule), 0 18px 30px -22px rgba(29, 25, 21, 0.5); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: 0.4em; }
.post-body a { color: var(--madder); text-underline-offset: 0.2em; }
.post-body a:hover { color: var(--madder-deep); }
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 44rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.post-nav-link { display: grid; gap: 0.35rem; align-content: start; color: inherit; text-decoration: none; }
.post-nav-older { grid-column: 2; text-align: right; }
.post-nav-title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; }
.post-nav-link:hover .post-nav-title { color: var(--madder); }

/* ---------- Publications: PDF links ---------- */

.issues-hint { margin: 0 0 1.25rem; font-family: var(--font-ui); font-size: var(--text-sm); color: var(--muted); }
.issue-pdf { color: inherit; text-decoration: none; }
.issue-pdf::after { content: ''; position: absolute; inset: 0; }
.issue:focus-within { outline: 2px solid var(--madder); outline-offset: 3px; }
.issue-pdf:focus-visible { outline: none; }
.issue-featured:focus-within { outline-color: var(--ochre-light); }
.pub-download { margin: 0.9rem 0 0; }

/* ---------- Photos: covers, galleries, lightbox ---------- */

.gallery-link { display: block; color: inherit; }
.gallery-body h3 a { color: inherit; text-decoration: none; }
.gallery-body h3 a:hover { color: var(--madder); }
.gallery-thumb.has-photo { background: var(--ink); }
.gallery-thumb.has-photo::after { display: none; }
.gallery-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(20, 14, 8, 0.55) 0%, transparent 45%);
}
.gallery-count { margin-top: 0.6rem !important; font-family: var(--font-ui); font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--madder) !important; }
.gallery-card-pending .gallery-count { color: var(--muted) !important; }
.gallery-card-pending .gallery-thumb { opacity: 0.75; filter: saturate(0.7); }

.photo-grid {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem 1.25rem;
  align-items: start;
}
.photo-item a { display: block; overflow: hidden; background: var(--paper-deep); box-shadow: inset 0 0 0 1px rgba(29, 25, 21, 0.08); }
.photo-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.photo-item a:hover img { transform: scale(1.04); }
.photo-caption { margin: 0.6rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 11, 9, 0.94);
  color: var(--paper);
}
.lightbox[open] { display: grid; grid-template-columns: 4rem minmax(0, 1fr) 4rem; align-items: center; }
.lightbox::backdrop { background: rgba(14, 11, 9, 0.94); }
.lightbox figure { grid-column: 2; margin: 0; display: grid; gap: 0.9rem; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 82dvh; object-fit: contain; }
.lightbox figcaption { max-width: 48rem; text-align: center; font-size: var(--text-sm); line-height: 1.5; color: var(--night-text, #e9dfcc); }
.lightbox figcaption:empty { display: none; }
.lightbox button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 2.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.8;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; color: var(--ochre-light); }
.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }
.lightbox-close { position: absolute; top: 0.75rem; right: 1rem; z-index: 2; }

@media (max-width: 720px) {
  .archive-item { grid-template-columns: 1fr; gap: 0.35rem; padding-block: 1.25rem; }
  .archive-item .news-date { margin-top: 0; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-older { grid-column: 1; text-align: left; }
  .lightbox[open] { grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; }
  .lightbox button { font-size: 2rem; padding: 0.25rem; }
}

/* ---------- Contact form feedback ---------- */

.form-alert { margin: 0 0 1.5rem; padding: 0.9rem 1.1rem; border-left: 4px solid; font-family: var(--font-ui); font-size: var(--text-sm); line-height: 1.5; }
.form-alert-ok { border-color: #2f6b3a; background: #e8f1e6; color: #1f4a28; }
.form-alert-error { border-color: var(--madder); background: #f6e4df; color: var(--madder-deep); }
