@font-face{
  font-family: "GreekText";
  src: url("fonts/GreekText.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  /* ===== BLUE + GOLD THEME ===== */
  --bg:#07101d;
  --bg2:#050b14;
  --text:#f6f3e6;
  --subtle: rgba(246,243,230,.84);

  --gold:#FFD84A;
  --gold2:#f2c94c;
  --blue:#1b4fa3;
  --blue2:#0f2e66;

  --panel: rgba(255,255,255,.055);
  --panel2: rgba(255,255,255,.032);
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 980px;

  --focus: 0 0 0 4px rgba(255,216,74,.35);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  line-height: 1.5;

  background:
    radial-gradient(900px 700px at 0% 50%, rgba(27,79,163,.30), transparent 60%),
    radial-gradient(900px 700px at 100% 50%, rgba(255,216,74,.14), transparent 60%),
    linear-gradient(90deg, var(--bg2) 0%, var(--bg) 50%, var(--bg2) 100%),
    url("images/background.webp");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

a{color:inherit}
img{max-width:100%; display:block}
.u{ text-decoration: underline; text-underline-offset: 3px; }

/* ===== HEADER ===== */
header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:10;
  overflow:visible;
  backdrop-filter: blur(12px);
  background: rgba(6,10,16,.68);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.nav-logo{
  position:absolute;
  left:12px;
  top:15px;
  z-index:999;
  display:flex;
  align-items:flex-end;
  gap:10px;
}
.nav-logo-img{
  width:auto;
  max-width:none;
  display:block;
  background:transparent;
  padding:0;
  border-radius:0;
  box-shadow:none;
  height:140px;
}

.nav{
  max-width: var(--max);
  margin:0 auto;
  padding: .8rem 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
}

.brand{
  display:flex;
  align-items:center;
  gap:.7rem;
}

.columnIcon{
  width:34px; height:34px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid rgba(255,216,74,.28);
  background: linear-gradient(135deg, rgba(27,79,163,.30), rgba(255,216,74,.16));
  box-shadow: 0 10px 22px rgba(0,0,0,.45);
  flex:0 0 auto;
}
.columnIcon img{
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

.brandText{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brandKicker{
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: rgba(246,243,230,.72);
}
.brandTitle{font-weight:1000}
.brandSub{
  font-size:.9rem;
  font-weight:500;
  color: rgba(246,243,230,.72);
  margin-top:.08rem;
}

.nav a.btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.55rem .85rem;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  white-space:nowrap;
}
.nav a.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,216,74,.35);
}
.nav a.btn:focus{outline:none; box-shadow: var(--focus)}

@media (max-width: 720px){
  .nav{ padding-left: 190px; }
  .nav-logo-img{ height:110px; }
}

/* ===== MAIN ===== */
main{max-width: var(--max); margin:0 auto; padding: 110px 1rem 4rem;}

.card{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

h1{
  font-family: "GreekText", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  margin:.65rem 0 .35rem;
  font-size: clamp(2.45rem, 5.0vw, 3.9rem);
  line-height:1.1;
  letter-spacing: 1px;
}

h2{margin:.15rem 0 .6rem; font-size:1.25rem; letter-spacing:-.2px}
p{color: rgba(246,243,230,.90)}

.center{text-align:center}
.strong{font-weight:1000}

/* ===== HERO ===== */
.hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:1.1rem;
  align-items:stretch;
  margin-top:1rem;
}
@media (max-width: 860px){ .hero{grid-template-columns:1fr} }

.hero-left{padding:1.2rem 1.2rem 1.1rem}

.kicker{
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  padding:.25rem .6rem;
  border-radius: 999px;
  background: rgba(27,79,163,.24);
  border: 1px solid rgba(255,216,74,.25);
  color: rgba(255,216,74,.92);
  font-weight:1000;
  font-size:.92rem;
}

.sub{
  margin:0 0 .9rem;
  color: var(--subtle);
  font-size:1.04rem;
  max-width: 65ch;
}

.bigIdeaWrap{margin-top:.8rem}
.bigIdeaGraphic{
  width:150px;
  height:92px;
  margin: .2rem auto .35rem;
  background:none;
  border:none;
  padding:0;
  min-height:0;
  display:block;
}
.bigIdeaGraphic img{
  width:150px;
  height:92px;
  display:block;
  object-fit:contain;
}
.bigIdeaText{
  margin-top:.1rem;
  color: rgba(255,216,74,.98);
  font-weight:1000;
  background:none;
  border:none;
  padding:0;
}

.pillrow{display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.95rem}
.pill{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.33rem .62rem;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  font-weight:900;
  font-size:.92rem;
}

.hero-right{
  padding: 1rem;
  display: grid;
  gap: .55rem;
}
.portraitWrap{display:grid; gap:.55rem}

.portrait{
  /* UPDATED: portrait orientation (800x1200 = 2:3) */
  aspect-ratio: 2 / 3;
  width:100%;
  border-radius: calc(var(--radius) - 4px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(700px 320px at 18% 0%, rgba(27,79,163,.20), transparent 55%),
    radial-gradient(700px 320px at 86% 20%, rgba(255,216,74,.14), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  display:grid;
  place-items:center;
}
.portrait img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Prev/Next buttons */
.portraitButtons{
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  gap:.5rem;
  margin-top:.45rem;
}
.pbtn{
  width: calc((100% - 1rem) / 3);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.22rem;
  padding:.48rem .55rem .52rem;
  height: 56px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size:.82rem;
  font-weight:1000;
  text-decoration:none;
  line-height:1.15;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.pbtn:hover{
  background: rgba(255,255,255,.09);
  transform: translateY(-1px);
  border-color: rgba(255,216,74,.28);
}
.pbtn:focus{outline:none; box-shadow: var(--focus)}
.pbtnTop{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  width:100%;
  text-align:center;
  font-weight:1000;
}
.pbtnTop .label{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pbtnSub{
  font-size:.78rem;
  font-weight:900;
  color: rgba(246,243,230,.55);
  text-align:center;
  margin-top:.05rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
.pbtn.spacer{visibility:hidden; pointer-events:none;}
.pbtn.is-hidden{visibility:hidden; pointer-events:none;}

.jumpRow{display:flex; justify-content:center; margin-top:.35rem}

.full{margin-top: 1rem}
.section{padding:1.1rem 1.2rem}

/* ===== IMAGE/TEXT SECTIONS (GRID) ===== */
.mediaRow{
  display:grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  align-items: stretch;
  margin: .6rem 0 1.0rem;
}
.mediaRow.reverse{
  grid-template-columns: 1fr 250px;
}
.mediaRow.reverse .mediaImg{order:2}
.mediaRow.reverse .mediaText{order:1}

/* ✅ THIS is the breakpoint you care about (was 860px). Now 700px. */
@media (max-width: 700px){
  .mediaRow, .mediaRow.reverse{grid-template-columns:1fr}
  .mediaRow.reverse .mediaImg,
  .mediaRow.reverse .mediaText{order:unset}
}

/* Keep images top-aligned inside grid rows */
.mediaImg{ align-self: start; }

/* Default image sizing for ALL non-wrapped sections */
.mediaImg img{
  width: 100%;
  max-width: 250px;
  height: auto;
  display:block;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

/* Make grid text align cleanly with image top */
.mediaText{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  height:100%;
}
.mediaText p{ margin: .5rem 0; }
.mediaText p:first-child{ margin-top: 0; }
.mediaText p:last-child{ margin-bottom: 0; }

/* ===== TITANOMACHY (TEXT WRAPS AROUND IMAGE) ===== */
.mediaWrap{
  position: relative;
  margin: .6rem 0 1.0rem;
}
.mediaWrap .mediaImg{
  float: left;
  margin: 0 20px 12px 0;
}
.mediaWrap .mediaImg img{
  width: 240px;
  max-width: 40vw;
  height: auto;
}

/* Neutralize flex only here so floats wrap correctly */
.mediaWrap .mediaText{
  display: block;
  height: auto;
}
.mediaWrap .mediaText p:first-child{ margin-top: 0; }

.mediaWrap::after{
  content:"";
  display:block;
  clear: both;
}

/* ✅ Match the same breakpoint for wrapped sections */
@media (max-width: 700px){
  .mediaWrap .mediaImg{
    float: none;
    margin: 0 0 12px 0;
  }
  .mediaWrap .mediaImg img{
    width: 100%;
    max-width: 100%;
  }
}

/* ===== TWO-COLUMN PANELS ===== */
.grid2{
  margin-top:1rem;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:1rem;
}
@media (max-width: 700px){
  .grid2{grid-template-columns:1fr}
}

.factsList{display:grid; gap:.55rem}
.factItem{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding:.55rem .7rem;
  color: rgba(246,243,230,.92);
}

.vocab{display:grid; gap:.55rem}
.term{
  background: rgba(27,79,163,.14);
  border: 1px solid rgba(27,79,163,.28);
  border-radius: 14px;
  padding:.55rem .7rem;
  color: rgba(246,243,230,.92);
}

/* Hover definitions */
.vocabWord{
  position:relative;
  font-weight:1000;
  color: rgba(255,216,74,.98);
  cursor: help;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.vocabWord::after{
  content: attr(data-def);
  position:absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(340px, 72vw);
  background: rgba(0,0,0,.88);
  border: 1px solid rgba(255,216,74,.35);
  border-radius: 12px;
  padding: .65rem .75rem;
  color: rgba(246,243,230,.95);
  font-weight: 750;
  line-height: 1.35;
  box-shadow: 0 14px 30px rgba(0,0,0,.55);
  opacity:0;
  transform: translateY(4px);
  pointer-events:none;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 5;
}
.vocabWord:hover::after{opacity:1; transform: translateY(0)}
.vocabWord::before{
  content:"";
  position:absolute;
  left: 18px;
  bottom: calc(100% + 3px);
  border-width: 7px 7px 0 7px;
  border-style: solid;
  border-color: rgba(0,0,0,.88) transparent transparent transparent;
  opacity:0;
  transition: opacity .12s ease;
  z-index: 6;
}
.vocabWord:hover::before{opacity:1}

/* Did you know */
.didYouKnow{
  margin-top: 1rem;
  padding: 1.1rem 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,216,74,.22);
  background: linear-gradient(135deg, rgba(15,46,102,.58), rgba(27,79,163,.26));
  box-shadow: 0 16px 44px rgba(0,0,0,.48);
  text-align:center;
}
.didYouKnow .dykImg{
  width: 200px;
  height: 78px;
  margin: 0 auto .45rem;
}
.didYouKnow .dykImg img{
  width:200px;
  height:78px;
  object-fit:contain;
}
.didYouKnow .fact{
  color: rgba(255,216,74,.98);
  font-weight:1000;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height:1.25;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}

/* ===== Olympians grid ===== */
.godGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 1rem;
}
.godGrid a{
  text-decoration:none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.godGrid a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,216,74,.24);
}
.godGrid img{
  width: 100%;
  height: auto;
}
.godGrid span{
  position: absolute;
  bottom: 10px;
  background-color: rgba(0, 0, 0, 0.62);
  color: white;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
}

/* ===== Footer ===== */
.site-footer{
  margin-top:0;
  padding:18px 1rem 40px;
  color: rgba(246,243,230,.78);
}
.footer-rule{
  border:none;
  height:1px;
  margin: 0 auto 16px;
  max-width: var(--max);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.footer-inner{
  max-width: var(--max);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap: 16px;
  flex-wrap:wrap;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.footer-logo-icon{height:40px; width:auto; display:block}
.footer-logo-text{height:22px; width:auto; display:block; opacity:.9}
.footer-copy{font-size:13px; line-height:1.4}
.footer-site{font-weight: 900}
@media (max-width: 640px){
  .footer-inner{flex-direction:column; align-items:flex-start; gap:12px}
  .footer-logo-icon{height:36px}
  .footer-logo-text{height:20px}
}

/* Anchor offset for fixed header */
#olympians{ scroll-margin-top: 140px; }
