/* ────────────────────────────────────────────────
   Στένωμα Ευρυτανίας
   ──────────────────────────────────────────────── */

:root {
  --paper:    #f7f4ed;
  --paper-2:  #efe9dd;
  --card:     #fdfcf9;
  --ink:      #26221b;
  --ink-2:    #5c554a;
  --ink-3:    #91887a;
  --line:     #e0d8c9;
  --fir:      #2f4f3c;
  --fir-2:    #48705a;
  --fir-3:    #86a892;
  --clay:     #a5713a;
  --sky-a:    #e9ecdf;
  --sky-b:    #f5f1e4;
  --radius:   6px;
  --shadow:   0 1px 2px rgba(46,38,22,.06), 0 14px 34px -18px rgba(46,38,22,.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #171613;
    --paper-2: #1f1d18;
    --card:    #211f1a;
    --ink:     #ebe6db;
    --ink-2:   #b2a999;
    --ink-3:   #837b6c;
    --line:    #35322a;
    --fir:     #9cc2a9;
    --fir-2:   #b7d4c1;
    --fir-3:   #5d7a68;
    --clay:    #cf9a5c;
    --sky-a:   #20241f;
    --sky-b:   #1b1e1a;
    --shadow:  0 1px 2px rgba(0,0,0,.4), 0 14px 34px -18px rgba(0,0,0,.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Commissioner", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.06rem;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }

.shell  { max-width: 71rem; margin: 0 auto; padding-inline: clamp(1.2rem, 4.5vw, 2.75rem); }
.prose  { max-width: 41rem; }

/* ─── header ─── */

.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .shell {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .4rem 2rem; padding-block: 1.05rem;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand b {
  font-family: "Literata", Georgia, serif;
  font-weight: 500; font-size: 1.3rem; letter-spacing: .01em;
}
.brand span {
  display: block; font-size: .68rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-3); margin-top: .1rem;
}
.top nav ul {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: .1rem 1.6rem; margin: 0; padding: 0; font-size: .92rem;
}
.top nav a {
  text-decoration: none; color: var(--ink-2);
  padding-block: .35rem; border-bottom: 1.5px solid transparent;
}
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--clay); }

/* ─── hero (front page) ─── */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero svg.scape { display: block; width: 100%; height: clamp(20rem, 52vw, 32rem); }
.hero .copy {
  position: absolute; inset: 0;
  display: grid; align-content: start; justify-content: center; text-align: center;
  padding: clamp(2.6rem, 9vw, 6rem) 1.5rem 0; pointer-events: none;
}
.hero h1 {
  font-family: "Literata", Georgia, serif;
  font-weight: 500; letter-spacing: .015em;
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  line-height: 1; margin: 0 0 .6rem; color: var(--ink);
}
.hero .where {
  font-size: .74rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 1.1rem;
}
.hero .line { font-size: clamp(1rem, 2.3vw, 1.16rem); color: var(--ink-2); margin: 0; }

.hero-note {
  text-align: center; font-size: .8rem; color: var(--ink-3);
  padding: .55rem 1rem; border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.hero-note code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; }

/* page hero (inner pages) */
.pagehead { padding-block: clamp(2.8rem, 7vw, 4.6rem) 0; }
.pagehead .kicker {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 .8rem; font-weight: 500;
}
.pagehead h1 {
  font-family: "Literata", Georgia, serif; font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05;
  letter-spacing: -.01em; margin: 0 0 1rem;
}
.pagehead .lead { font-size: clamp(1.1rem, 2.4vw, 1.28rem); line-height: 1.6; color: var(--ink-2); margin: 0; }

/* ─── sections ─── */

.section { padding-block: clamp(3rem, 8vw, 5.2rem); }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--paper-2); }

h2 {
  font-family: "Literata", Georgia, serif; font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.05rem); line-height: 1.18;
  letter-spacing: -.008em; margin: 0 0 1rem;
}
h3 {
  font-family: "Literata", Georgia, serif; font-weight: 500;
  font-size: 1.22rem; margin: 2.1rem 0 .45rem;
}
p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--fir); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--clay); }
ul, ol { padding-left: 1.15rem; margin: 0 0 1.15rem; }
li { margin-bottom: .45rem; }

.eyebrow {
  display: block; font-size: .72rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--clay); margin-bottom: .8rem;
}

/* ─── split layout ─── */

.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 6fr 5fr; }
  .split.flip { grid-template-columns: 5fr 6fr; }
  .split.flip > figure { order: -1; }
}

/* ─── facts strip ─── */

.facts {
  display: flex; flex-wrap: wrap; gap: 0;
  border-block: 1px solid var(--line); margin: 2.4rem 0;
}
.facts > div {
  flex: 1 1 10rem; padding: 1.3rem 1.6rem 1.3rem 0;
  margin-right: 1.6rem; border-right: 1px solid var(--line);
}
.facts > div:last-child { border-right: 0; margin-right: 0; }
.facts .n {
  font-family: "Literata", Georgia, serif; font-weight: 500;
  font-size: 1.9rem; line-height: 1.1; display: block; color: var(--ink);
}
.facts .l {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-top: .3rem; display: block;
}
@media (max-width: 40rem) {
  .facts > div { flex-basis: 40%; border-right: 0; padding-block: .9rem; }
}

/* ─── photo placeholders ─── */

figure { margin: 0; }
.photo {
  position: relative; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: var(--ar, 4/3);
  background: linear-gradient(165deg, var(--sky-b) 0%, var(--sky-a) 58%, var(--fir-3) 165%);
  display: grid; place-items: center; text-align: center; padding: 1.4rem;
}
.photo svg.hills {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 46%;
  opacity: .5;
}
.photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.photo .tag { position: relative; max-width: 24rem; }
.photo .tag .cam { width: 1.7rem; height: 1.7rem; margin: 0 auto .6rem; color: var(--ink-3); }
.photo .tag em {
  display: block; font-family: "Literata", Georgia, serif;
  font-style: italic; font-size: .98rem; line-height: 1.5; color: var(--ink-2);
}
.photo .tag code {
  display: block; margin-top: .55rem; font-size: .7rem; color: var(--ink-3);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
figcaption { font-size: .86rem; color: var(--ink-3); margin-top: .7rem; line-height: 1.55; }

.gallery {
  display: grid; gap: 1.1rem; margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
}

/* ─── timeline ─── */

.years { list-style: none; padding: 0; margin: 2.4rem 0 0; max-width: 43rem; }
.years > li {
  position: relative; margin: 0;
  padding: 0 0 1.8rem 2rem; border-left: 1px solid var(--line);
}
.years > li:last-child { border-left-color: transparent; padding-bottom: .2rem; }
.years > li::before {
  content: ""; position: absolute; left: -5px; top: .5rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--fir-2);
}
.section.tint .years > li::before { background: var(--paper-2); }
.years .y {
  display: block; font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--clay);
  margin-bottom: .15rem;
}
.years p { margin: 0; color: var(--ink-2); max-width: 38rem; }
.years strong { color: var(--ink); font-weight: 500; }

/* ─── table ─── */

.tablewrap { overflow-x: auto; margin: 1.8rem 0; }
table { border-collapse: collapse; width: 100%; max-width: 34rem; font-size: .97rem; }
th, td { text-align: left; padding: .65rem 1.4rem .65rem 0; border-bottom: 1px solid var(--line); }
thead th {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; border-bottom-color: var(--ink-3);
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
tfoot td { border-bottom: 0; font-size: .82rem; color: var(--ink-3); padding-top: .8rem; }
.geo {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .76rem; white-space: nowrap;
}

/* ─── cards ─── */

.cards {
  display: grid; gap: 1.3rem; margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--fir-3); box-shadow: var(--shadow); }
.card .photo { border-radius: 0; box-shadow: none; --ar: 16/9; padding: 1rem; }
.card .photo .tag em { font-size: .85rem; }
.card .photo .tag code { display: none; }
.card .body { padding: 1.15rem 1.3rem 1.35rem; }
.card h3 { margin: 0 0 .3rem; font-size: 1.14rem; }
.card p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
.card .go { margin-top: .8rem; font-size: .85rem; color: var(--fir); font-weight: 500; }
.card:hover .go { color: var(--clay); }

/* ─── quote ─── */

.pull {
  max-width: 36rem; margin: 2.2rem 0;
  padding-left: 1.5rem; border-left: 2px solid var(--clay);
  font-family: "Literata", Georgia, serif; font-style: italic;
  font-size: clamp(1.18rem, 2.6vw, 1.42rem); line-height: 1.5; color: var(--ink);
}
.pull cite {
  display: block; margin-top: .8rem; font-style: normal;
  font-family: "Commissioner", sans-serif; font-size: .8rem;
  letter-spacing: .05em; color: var(--ink-3);
}

/* ─── boxes ─── */

.box {
  max-width: 41rem; margin: 2rem 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.7rem;
}
.section.tint .box { background: var(--card); }
.box h3 { margin-top: 0; }
.box.quiet { background: transparent; border-style: dashed; }

.todo {
  display: inline-block; font-size: .64rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--clay);
  border: 1px solid color-mix(in srgb, var(--clay) 40%, transparent);
  border-radius: 99px; padding: .18rem .65rem; margin-bottom: .9rem;
}

/* ─── buttons / payment ─── */

.row {
  display: grid; gap: .7rem; margin-top: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
}
.btn {
  display: block; text-align: center; text-decoration: none;
  padding: .8rem 1rem; border-radius: var(--radius);
  font-size: .93rem; font-weight: 500;
  background: var(--fir); color: var(--paper); border: 1px solid var(--fir);
}
.btn:hover { background: var(--fir-2); border-color: var(--fir-2); color: var(--paper); }
.btn small { display: block; font-weight: 400; font-size: .72rem; opacity: .8; }
.btn[aria-disabled="true"] {
  background: transparent; color: var(--ink-3);
  border: 1px dashed var(--line); cursor: not-allowed;
}
.btn[aria-disabled="true"]:hover { background: transparent; color: var(--ink-3); }

.bank { margin: 1.6rem 0 0; font-size: .95rem; }
.bank dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: .9rem; }
.bank dd { margin: .15rem 0 0; }

/* ─── sources ─── */

.srccols {
  display: grid; gap: 2rem 3rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.srccols h3 { margin: 0 0 .6rem; font-size: 1.02rem; }
.srccols ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.srccols li { margin-bottom: .55rem; color: var(--ink-2); line-height: 1.55; }

/* ─── next link ─── */

.next {
  display: inline-block; margin: 2.6rem 0 3.2rem;
  font-size: .95rem; font-weight: 500; text-decoration: none;
}
.section .next { margin-bottom: 0; }

/* ─── footer ─── */

.foot {
  border-top: 1px solid var(--line); background: var(--paper-2);
  padding: 3rem 0 3.4rem; font-size: .92rem; color: var(--ink-2);
}
.foot .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.foot h4 {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 .7rem; font-weight: 600;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .35rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--fir); text-decoration: underline; }
.foot .fine {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--ink-3);
}
.foot .fine p { margin: .25rem 0; }

/* ─── zoomable photo + lightbox ─── */

/* A photo that opens the lightbox. The button is invisible: the image fills it. */
.zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; color: inherit; font: inherit;
}
.zoom .photo { transition: box-shadow .18s ease, transform .18s ease; }
.zoom:hover .photo, .zoom:focus-visible .photo { box-shadow: var(--shadow), 0 0 0 2px var(--fir-3); }
.zoom:focus-visible { outline: none; }

/* Small "μεγέθυνση" hint in the corner of the photo. */
.zoom .hint {
  position: absolute; right: .6rem; bottom: .6rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .55rem; border-radius: 100px;
  background: rgba(20,18,14,.62); color: #fff;
  font-size: .74rem; line-height: 1; letter-spacing: .02em;
  opacity: 0; transition: opacity .18s ease;
}
.zoom:hover .hint, .zoom:focus-visible .hint { opacity: 1; }
.zoom .hint svg { width: .95rem; height: .95rem; }
@media (hover: none) { .zoom .hint { opacity: 1; } }

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  gap: .9rem; padding: clamp(.75rem, 2.5vw, 2rem);
  background: rgba(14,12,9,.97);
  animation: lb-in .18s ease-out;
}
@keyframes lb-in { from { opacity: 0 } to { opacity: 1 } }

.lightbox img {
  grid-row: 1; justify-self: center; align-self: center;
  min-height: 0; max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.8);
}
.lightbox figcaption {
  grid-row: 2; margin: 0; text-align: center;
  max-width: 60ch; justify-self: center;
  color: #e6e0d3; font-size: .9rem; line-height: 1.55;
}
.lightbox .close {
  position: absolute; top: clamp(.5rem, 2vw, 1.1rem); right: clamp(.5rem, 2vw, 1.1rem);
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.35rem; line-height: 1;
}
.lightbox .close:hover { background: rgba(255,255,255,.26); }
.lightbox .close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lightbox { animation: none; }
  .zoom .photo, .zoom .hint { transition: none; }
}

@media print {
  .top, .foot, .next, .hero-note, .zoom .hint, .lightbox { display: none; }
  body { background: #fff; color: #000; }
}
