/* ==========================================================================
   Göbekli Tepe — design system
   Ochre / limestone palette, Playfair Display headings + Inter body.
   Purpose-built for a content/education/visit site. EN-only MVP.
   ========================================================================== */

:root {
  --ochre: #8a5a2b;
  --ochre-light: #b07d45;
  --ochre-dark: #6f4720;
  --terracotta: #c1440e;
  --limestone: #f3ece0;
  --limestone-dark: #e6dcca;
  --stone: #6b7280;
  --ink: #221b12;
  --ink-soft: #5b5142;
  --white: #ffffff;
  --line: #e2d8c6;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 4px 22px rgba(60, 40, 15, 0.08);
  --shadow-lg: 0 18px 50px rgba(60, 40, 15, 0.14);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --maxw: 1140px;
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ochre-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.18; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tint { background: var(--limestone); }
.section--dark { background: var(--ochre-dark); color: #f6efe3; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--terracotta); margin-bottom: 10px; }
.center { text-align: center; }
.measure { max-width: 720px; }
.center.measure { margin-left: auto; margin-right: auto; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.22rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 0.96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--ochre-dark); }
.nav-cta { background: var(--ochre); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.nav-cta:hover { background: var(--ochre-dark); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--transition); }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.btn-primary { background: var(--ochre); color: #fff; }
.btn-primary:hover { background: var(--ochre-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: currentColor; color: var(--ochre-dark); }
.btn-outline:hover { background: var(--ochre); color: #fff; border-color: var(--ochre); }
.section--dark .btn-outline { color: #fff; }

/* ---- Hero ---- */
.hero { position: relative; color: #fff; padding: 116px 0 92px; background: linear-gradient(150deg, #2a1d10 0%, #6f4720 55%, #8a5a2b 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 20%, rgba(193,68,14,0.28), transparent 60%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,0.9); max-width: 56ch; margin-top: 14px; }
.hero .btn-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; }
.hero--photo {
  background:
    linear-gradient(150deg, rgba(42,29,16,0.90) 0%, rgba(111,71,32,0.74) 52%, rgba(138,90,43,0.64) 100%),
    url(/assets/gt-panorama.jpg) center/cover no-repeat #2a1d10;
}
.hero-credit { position: absolute; right: 14px; bottom: 10px; z-index: 2; margin: 0; font-size: 0.72rem; color: rgba(255,255,255,0.82); text-shadow: 0 1px 3px rgba(0,0,0,0.55); }
.hero-credit a { color: rgba(255,255,255,0.88); text-decoration: underline; }

/* ---- Cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: var(--transition); display: block; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card h3 { margin-bottom: 8px; }
.card .tag { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--terracotta); background: #f7e6dd; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* ---- Stat strip ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center; }
.stat .num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 800; color: var(--ochre); display: block; }
.stat .label { color: var(--ink-soft); font-size: 0.95rem; }

/* ---- Prose (article body) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 2.2rem 0 0.8rem; }
.prose h3 { margin: 1.6rem 0 0.6rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote { border-left: 4px solid var(--ochre-light); background: var(--limestone); padding: 14px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.4rem 0; color: var(--ink-soft); font-style: italic; }
.note { background: #fbf4d9; border: 1px solid #ecdca0; border-radius: var(--radius-sm); padding: 14px 18px; margin: 1.4rem 0; font-size: 0.95rem; }
.note strong { color: var(--ochre-dark); }

/* ---- Inline page photo ---- */
.page-photo { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
figure.photo { margin: 30px 0 0; }
figure.photo figcaption { font-size: 0.78rem; color: var(--stone); margin-top: 8px; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 0.85rem; color: var(--stone); padding: 16px 0 0; }
.breadcrumb a { color: var(--stone); }
/* A breadcrumb rendered inside the dark hero (interior pages) must stay legible
   whether or not the page added an inline light-colour override. */
.hero .breadcrumb, .hero .breadcrumb a { color: #f0c9a8; }
/* Eyebrow terracotta on the limestone tint is borderline for AA at this size —
   darken it on tinted sections. */
.section--tint .eyebrow { color: var(--ochre-dark); }

/* ---- Footer ---- */
.site-footer { background: #2a1d10; color: #d8ccb8; padding: 56px 0 28px; font-size: 0.94rem; }
.site-footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #d8ccb8; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #a89a82; font-size: 0.85rem; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Respect reduced-motion: show content immediately, no scroll/transition. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px; transform: translateY(-130%); transition: var(--transition); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 13px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
