/* ---------- Fonts ---------- */
/* Gotham Pro for Latin; GothamGreek via unicode-range for Greek. Browser picks per-character. */

/* --- Latin (Gotham Pro) --- */
@font-face {
  font-family: 'Gotham Pro';
  src: url('fonts/GothamPro-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('fonts/GothamPro-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('fonts/GothamPro-Bold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('fonts/GothamPro-Black.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2100-214F;
}

/* --- Greek (GothamGreek via unicode-range) --- */
@font-face {
  font-family: 'Gotham Pro';
  src: url('fonts/GothamGreek-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('fonts/GothamGreek-Book.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('fonts/GothamGreek-Bold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('fonts/GothamGreek-Black.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #F4F1EA;
  --bg-soft: #EEEAE1;
  --ink: #121210;
  --ink-muted: #6F6C65;
  --ink-faint: #B8B4AB;
  --rule: rgba(18, 18, 16, 0.12);
  --rule-faint: rgba(18, 18, 16, 0.06);

  --sans: 'Gotham Pro', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif: var(--sans);
  --serif-italic: var(--sans);

  --heading: var(--sans);
  --heading-weight: 400;
  --heading-tracking: -0.01em;

  --edge: clamp(24px, 4vw, 64px);
  --gap: clamp(16px, 1.6vw, 28px);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Typography ---------- */
/* Slightly larger sizes to keep presence with EB Garamond's x-height. */
.h-display {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 0.98;
  font-size: clamp(48px, 9vw, 160px);
  font-style: normal;
  margin: 0;
}
.h-1 {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.02;
  font-size: clamp(36px, 5.8vw, 92px);
  margin: 0;
}
.h-2 {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.1;
  font-size: clamp(28px, 3.2vw, 48px);
  margin: 0;
}
.lede {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.meta {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.meta-strong { color: var(--ink); }
.body-prose {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 58ch;
  text-wrap: pretty;
}
.body-prose p + p { margin-top: 1.1em; }

/* Accent / emphasis — no italic, no extra weight. Kept as identity classes for future styling hooks. */
.accent { font-weight: 400; font-style: normal; }
.italic { font-weight: 400; font-style: normal; letter-spacing: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 28px var(--edge);
  pointer-events: none;
  color: var(--ink);
  min-height: clamp(80px, 9vw, 120px);
  transition: background 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease),
              -webkit-backdrop-filter 0.35s var(--ease),
              box-shadow 0.35s var(--ease),
              padding 0.35s var(--ease),
              min-height 0.35s var(--ease);
}
.nav::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}
.nav.is-scrolled {
  background: rgba(244, 241, 234, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  box-shadow: none;
  padding-top: 16px;
  padding-bottom: 16px;
  min-height: clamp(70px, 7vw, 90px);
}
.nav.is-scrolled::before { opacity: 0; }
.nav.is-scrolled .nav-logo img { width: clamp(160px, 14vw, 230px); transition: width 0.35s var(--ease); }
.nav-logo img { transition: width 0.35s var(--ease); }
.nav > * { pointer-events: auto; align-self: center; }
.nav-logo { display: block; line-height: 0; }
.nav-logo img { width: clamp(200px, 18vw, 300px); height: auto; display: block; max-width: none; }
.nav-logo svg { width: clamp(200px, 18vw, 300px); height: auto; display: block; fill: currentColor; }
.nav-links {
  justify-self: end;
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.4s var(--ease);
}
.nav-link:hover::after { right: 0; }
.nav-link.is-active::after { right: 0; }

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.lang-btn {
  padding: 4px 6px;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}
.lang-btn.is-active { opacity: 1; }
.lang-sep { opacity: 0.4; padding: 0 2px; }

/* ---------- Motion utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Image parallax wrapper */
.parallax {
  overflow: hidden;
  position: relative;
}
.parallax > img,
.parallax > .parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, var(--p, 0), 0) scale(1.08);
  transition: transform 0.06s linear;
}

/* Language visibility */
[data-lang="en"] .gr-only { display: none; }
[data-lang="gr"] .en-only { display: none; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--rule);
  padding: 48px var(--edge) 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-top: 120px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 820px;
}
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col .meta { margin-bottom: 8px; }
.foot-col a, .foot-col span { font-size: 13px; color: var(--ink); }
.foot-col a:hover { color: var(--ink-muted); }
.foot-mark { font-family: var(--serif); font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
@media (max-width: 820px) {
  .foot { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 18px 20px;
  width: 260px;
  display: none;
  font-family: var(--sans);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.tweaks-panel.is-open { display: block; }
.tweaks-title {
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-muted); margin-bottom: 14px;
}
.tweak-row { margin-bottom: 14px; }
.tweak-label { font-size: 11px; letter-spacing: 0.12em; margin-bottom: 6px; color: var(--ink); }
.tweak-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opt {
  font-size: 11px; padding: 6px 10px;
  border: 1px solid var(--rule);
  letter-spacing: 0.08em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tweak-opt.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .parallax > img, .parallax > .parallax-img { transform: none !important; }
}
