/* =========================================================
   Εκδόσεις ἀκολουθεῖν — style.css
   Χρώματα: αλλάζεις μόνο τις μεταβλητές στο :root
   ========================================================= */
:root {
  --paper: #f8f4ec;        /* φόντο */
  --paper-2: #efe8db;      /* δεύτερο φόντο (ζώνες) */
  --card: #fffdf8;
  --ink: #2a2320;          /* κείμενο */
  --ink-soft: #5f544c;
  --muted: #8a7d72;
  --accent: #6d1f25;       /* μπορντό — άλλαξέ το αν θέλεις */
  --accent-dark: #4d1418;
  --gold: #a8844b;
  --line: #ddd2c1;
  --radius: 6px;
  --shadow-book: 0 1px 2px rgba(40,25,15,.18), 0 12px 28px -8px rgba(40,25,15,.35);
  --max: 1180px;
  --font-display: "GFS Didot", "Noto Serif", Georgia, serif;
  --font-body: "Noto Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .9rem; display: block;
}
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(6px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { font-size: .66rem; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; margin-bottom: .3rem; }
.brand-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .98rem; padding: .3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .7rem; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; inset: 76px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: .95rem; letter-spacing: .02em; border: 1px solid var(--accent);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.more { font-size: .95rem; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.section-head h2 { margin: 0; }
.ornament { text-align: center; color: var(--gold); letter-spacing: .6em; font-size: .9rem; margin: 0; }

/* ---------- Hero (carousel) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-stage { position: relative; display: grid; }
.slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
  opacity: 0; visibility: hidden; transform: translateX(14px);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
  padding: 0 3.2rem;
}
.slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .6s ease, visibility 0s; }
.hero-title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: .2em; }
.hero .subtitle { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); color: var(--ink-soft); margin-bottom: 1.2rem; }
.hero .by { color: var(--muted); margin-bottom: 1.6rem; }
.hero .lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 36em; border-left: 2px solid var(--gold); padding-left: 1.2rem; font-style: italic; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-cover { position: relative; display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); }
.hero-cover img { position: relative; width: auto; max-width: min(100%, 340px); max-height: 480px; object-fit: contain; box-shadow: var(--shadow-book); border-radius: 2px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--accent);
  font-size: 1.9rem; line-height: 1; padding: 0 0 4px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(40,25,15,.08); transition: background .2s, color .2s;
}
.hero-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero-arrow.prev { left: 0; }
.hero-arrow.next { right: 0; }
.hero-count { grid-area: 2 / 1; display: flex; align-items: center; gap: .9rem; justify-content: center; margin-top: 2rem; font-size: .85rem; letter-spacing: .1em; color: var(--muted); }
.hero-bar { width: 120px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.hero-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); }
@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; padding: 0; gap: 1.5rem; }
  .hero-cover { order: -1; max-width: 380px; margin-inline: auto; padding: 1rem 2rem; }
  .hero-cover img { max-height: 340px; }
  .hero-arrow { top: 190px; width: 40px; height: 40px; font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .slide, .slide.active { transition: none; transform: none; } }

/* ---------- Books grid ---------- */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2.5rem 1.8rem; }
.book { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.book .cover { aspect-ratio: 2 / 3; background: var(--paper-2); border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-book); transition: transform .25s ease, box-shadow .25s ease; position: relative; }
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book:hover .cover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(40,25,15,.2), 0 20px 36px -10px rgba(40,25,15,.45); }
.book h3 { font-size: 1.12rem; margin: 1rem 0 .2rem; }
.book .sub { font-size: .88rem; color: var(--ink-soft); line-height: 1.45; margin: 0 0 .3rem; }
.book .auth { font-size: .82rem; color: var(--muted); }
.badge { position: absolute; top: .6rem; left: .6rem; background: var(--gold); color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 2px; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 2.5rem; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); border-radius: 999px; padding: .45rem 1rem; font: inherit; font-size: .9rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.search { margin-left: auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .5rem 1.1rem; font: inherit; font-size: .92rem; min-width: 220px; color: var(--ink); }
@media (max-width: 600px) { .search { margin-left: 0; width: 100%; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.news-side { display: grid; gap: 1.4rem; align-content: start; }
.post { display: grid; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.post:hover { border-color: var(--gold); transform: translateY(-2px); }
.post .thumb { background: var(--paper-2); overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .body { padding: 1.2rem 1.4rem 1.4rem; }
.post .meta { font-size: .78rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: .4rem; }
.post h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.post p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.post-lead .thumb { aspect-ratio: 16 / 10; }
.post-lead h3 { font-size: 1.55rem; }
.post-small { grid-template-columns: 120px 1fr; }
.post-small .thumb { min-width: 0; min-height: 96px; position: relative; }
.post-small .thumb img { position: absolute; inset: 0; }
.post-small .body { padding: .9rem 1.1rem; }
.post-small h3 { font-size: 1.02rem; margin: 0; }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; }
.news-list .thumb { aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Quote band ---------- */
.band { background: var(--accent); color: #f5ece0; text-align: center; }
.band blockquote { margin: 0 auto; max-width: 46rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.45; }
.band cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: #d9bf93; margin-top: 1.4rem; }
.band a { color: #fff; }

/* ---------- Authors ---------- */
.authors { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.author { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.author img { width: 120px; height: 150px; object-fit: cover; border-radius: 2px; filter: sepia(.15); }
.author h3 { margin-bottom: .4rem; }
.author p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Article / page ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head p { color: var(--ink-soft); max-width: 40em; margin: 0; }
.prose { max-width: 42rem; margin-inline: auto; font-size: 1.12rem; line-height: 1.85; }
.prose img { margin: 1.5rem auto; border-radius: 2px; max-height: 640px; width: auto; }
.prose h2, .prose h3, .prose h4 { margin-top: 2rem; }
.prose blockquote { margin: 1.8rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 2px solid var(--gold); color: var(--ink-soft); font-style: italic; }
.prose cite { display: block; font-style: normal; font-size: .9rem; color: var(--muted); margin-top: .8rem; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1.5rem 0; }
.article-head { max-width: 42rem; margin-inline: auto; text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.article-head .meta { color: var(--muted); font-size: .9rem; letter-spacing: .05em; }
.article-foot { max-width: 42rem; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: .8rem; }
.tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem; }

.book-detail { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.book-detail .cover img { box-shadow: var(--shadow-book); border-radius: 2px; width: 100%; }
.book-detail .subtitle { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink-soft); }
.book-detail .prose { margin: 0; }
.availability { margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--paper-2); border-radius: var(--radius); font-size: .95rem; }
.availability strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: .3rem; }
@media (max-width: 760px) { .book-detail { grid-template-columns: 1fr; } .book-detail .cover { max-width: 300px; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.5rem; }
.contact-card dt { color: var(--muted); font-size: .9rem; }
.contact-card dd { margin: 0; }
.biblio h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-top: 2rem; }
.biblio ol { padding-left: 1.3rem; font-size: .95rem; color: var(--ink-soft); }
.biblio li { margin-bottom: .35rem; }

.loading, .empty { color: var(--muted); font-style: italic; padding: 2rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: #241c19; color: #cbbfae; padding: 4rem 0 2rem; font-size: .93rem; }
.site-footer a { color: #e7d9c3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #a8957e; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand strong { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; color: #f2e6d4; display: block; margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid #3c312c; margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: #8f8172; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* κινητά: 2 βιβλία ανά σειρά */
@media (max-width: 520px) {
  .books { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.1rem; }
  .book h3 { font-size: 1rem; }
  .post-small { grid-template-columns: 96px 1fr; }
  .author { grid-template-columns: 90px 1fr; padding: 1.2rem; }
  .author img { width: 90px; height: 112px; }
}

/* λογότυπο: αν φορτώσει, κρύβεται το κείμενο */
.brand img { height: 54px; width: auto; max-width: 260px; object-fit: contain; }
.brand.has-logo .brand-text { display: none; }
.prose .intro { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.book-detail .prose blockquote { font-style: normal; }
.book-detail .prose { font-size: 1.02rem; line-height: 1.75; }
.book-detail .prose blockquote p { margin-bottom: .45em; }
