/* Aegean Journal — editorial styles */
:root {
  --ink: #0F1C28;
  --ink-soft: #243646;
  --tide: #0D5C6D;
  --tide-deep: #083F4C;
  --mist: #E6ECF0;
  --paper: #F3F5F7;
  --chalk: #FAFBFC;
  --gold: #C49A2C;
  --clay: #A65D3F;
  --mute: #5C6B76;
  --line: rgba(15, 28, 40, 0.12);
  --shadow: 0 18px 50px rgba(15, 28, 40, 0.12);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(13, 92, 109, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 154, 44, 0.07), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 35%, var(--chalk) 100%);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; border: none; background: none; color: inherit; }
button { cursor: pointer; }
ul { list-style: none; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--tide); color: #fff; padding: 0.5rem 1rem; z-index: 200;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Sticky nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(243, 245, 247, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; flex-direction: column; gap: 0.1rem; min-width: 0;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.45rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1;
}
.brand-name span { color: var(--tide); font-style: italic; font-weight: 500; }
.brand-tag {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute); font-weight: 500;
}
.nav-panel {
  display: flex; align-items: center; gap: 1.25rem;
}
.nav-links {
  display: flex; align-items: center; gap: 1.35rem;
}
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -0.3rem;
  width: 100%; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--tide); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-search {
  display: flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--line); background: var(--chalk);
  padding: 0.4rem 0.7rem; border-radius: 999px; min-width: 160px;
}
.nav-search input {
  width: 100%; outline: none; font-size: 0.85rem; color: var(--ink);
}
.nav-search input::placeholder { color: var(--mute); }
.nav-toggle {
  display: none; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line); border-radius: 0.5rem;
  place-items: center; gap: 5px; flex-direction: column;
}
.nav-toggle span {
  display: block; width: 1.1rem; height: 1.5px; background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: grid; align-items: end;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 30, 0.25) 0%, rgba(8, 20, 30, 0.15) 35%, rgba(8, 20, 30, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 63, 76, 0.45), transparent 55%);
}
.hero-content {
  position: relative; z-index: 2;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 3.5rem;
  max-width: 720px;
}
.issue-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 1.1rem;
}
.issue-pill i {
  width: 1.6rem; height: 1px; background: var(--gold); display: inline-block;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 560; line-height: 0.98;
  letter-spacing: -0.03em; margin-bottom: 1rem;
}
.hero h1 em {
  font-style: italic; font-weight: 450; color: #F0D78A;
}
.hero-lead {
  font-size: 1.08rem; max-width: 34rem;
  color: rgba(255,255,255,0.88); margin-bottom: 1.75rem;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold); color: var(--ink);
}
.btn-gold:hover { background: #d4ab3a; }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.45); color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-tide {
  background: var(--tide); color: #fff;
}
.btn-tide:hover { background: var(--tide-deep); }
.btn-line {
  border: 1px solid var(--line); color: var(--ink);
  background: var(--chalk);
}
.btn-line:hover { border-color: var(--tide); color: var(--tide); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.kicker {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--tide); margin-bottom: 0.55rem;
}
.section-head h2, .page-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 560;
}
.section-head p, .lede {
  color: var(--mute); max-width: 36rem; font-size: 1.02rem;
}

/* Featured spread */
.featured {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 0; min-height: 520px;
  background: var(--ink); color: #fff; overflow: hidden;
  border-radius: 1.25rem; box-shadow: var(--shadow);
}
.featured-media { position: relative; min-height: 320px; }
.featured-media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 100%;
}
.featured-copy {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex; flex-direction: column; justify-content: center;
  background:
    linear-gradient(160deg, #0F1C28 0%, #16424F 100%);
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1rem;
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--mute);
  margin: 0.85rem 0 1rem;
}
.meta-row.light { color: rgba(255,255,255,0.65); }
.meta-row span { position: relative; }
.meta-row span:not(:last-child)::after {
  content: "·"; margin-left: 1rem; opacity: 0.5;
}
.featured-copy h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 0.85rem;
}
.featured-copy p { color: rgba(255,255,255,0.78); margin-bottom: 1.4rem; }

/* Cards */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem;
}
.chip {
  padding: 0.45rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.82rem; font-weight: 600;
  color: var(--ink-soft); background: rgba(255,255,255,0.55);
  transition: all 0.25s var(--ease);
}
.chip:hover, .chip.active {
  background: var(--tide); color: #fff; border-color: var(--tide);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  border-radius: 1rem; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-media {
  aspect-ratio: 4/3; overflow: hidden; position: relative;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--clay); margin-bottom: 0.45rem;
}
.card h3 {
  font-family: var(--display);
  font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.015em;
  margin-bottom: 0.55rem; font-weight: 560;
}
.card p {
  color: var(--mute); font-size: 0.95rem; margin-bottom: 1rem; flex: 1;
}
.card-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem;
  font-size: 0.78rem; color: var(--mute); border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

/* Essay / article */
.article-hero {
  padding: 2.5rem 0 0;
}
.article-hero .wrap { max-width: 820px; }
.article-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.05; letter-spacing: -0.025em; margin: 0.6rem 0 1rem;
}
.article-cover {
  margin: 2rem auto 0;
  width: min(1180px, calc(100% - 2.5rem));
  border-radius: 1.15rem; overflow: hidden;
  max-height: 560px;
}
.article-cover img {
  width: 100%; height: 560px; object-fit: cover;
}
.article-body {
  width: min(720px, calc(100% - 2.5rem));
  margin: 2.75rem auto 4rem;
  font-size: 1.08rem;
}
.article-body p { margin-bottom: 1.25rem; color: var(--ink-soft); }
.article-body h2 {
  font-family: var(--display);
  font-size: 1.65rem; margin: 2.2rem 0 0.85rem; letter-spacing: -0.02em;
}
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 0 1.25rem 1.35rem;
  border-left: 3px solid var(--gold);
  font-family: var(--display);
  font-size: 1.45rem; font-style: italic; line-height: 1.35;
  color: var(--tide-deep);
}
.share-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem;
  margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.share-bar span { font-size: 0.8rem; font-weight: 600; color: var(--mute); margin-right: 0.25rem; }
.share-btn {
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 700; color: var(--tide);
  transition: all 0.25s var(--ease);
}
.share-btn:hover { background: var(--tide); color: #fff; border-color: var(--tide); }

/* About */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.team-card {
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--line);
  border-radius: 1rem; padding: 1.5rem;
}
.team-card h3 {
  font-family: var(--display); font-size: 1.4rem; margin-bottom: 0.2rem;
}
.team-role {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--tide); margin-bottom: 0.75rem;
}
.team-card p { color: var(--mute); font-size: 0.95rem; }

/* Newsletter */
.newsletter {
  background:
    linear-gradient(135deg, rgba(13, 92, 109, 0.95), rgba(8, 63, 76, 0.98)),
    var(--tide-deep);
  color: #fff; border-radius: 1.25rem; padding: clamp(2rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem; align-items: center;
}
.newsletter h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15; margin-bottom: 0.6rem;
}
.newsletter p { color: rgba(255,255,255,0.78); }
.news-form {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.news-form input {
  flex: 1; min-width: 180px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px; padding: 0.85rem 1.1rem; color: #fff;
  outline: none;
}
.news-form input::placeholder { color: rgba(255,255,255,0.55); }
.news-note {
  font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 0.65rem;
}

/* Legal */
.legal {
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto 4rem;
}
.legal h2 {
  font-family: var(--display); font-size: 1.5rem;
  margin: 2rem 0 0.75rem; letter-spacing: -0.015em;
}
.legal p, .legal li {
  color: var(--ink-soft); margin-bottom: 0.9rem; font-size: 1rem;
}
.legal ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal li { list-style: disc; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink); color: rgba(255,255,255,0.78);
  padding: 3rem 0 2rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer .brand-name { color: #fff; }
.footer .brand-tag { color: rgba(255,255,255,0.45); }
.footer h4 {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 0.9rem;
}
.footer a {
  display: block; font-size: 0.92rem; margin-bottom: 0.45rem;
  color: rgba(255,255,255,0.78); transition: color 0.2s;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
}

/* Cookie */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  background: rgba(15, 28, 40, 0.96); color: #fff;
  border-radius: 1rem; padding: 1rem 1.15rem;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: var(--shadow); max-width: 920px; margin: 0 auto;
}
.cookie.show { display: flex; }
.cookie p { font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.cookie a { color: var(--gold); text-decoration: underline; }

/* Reveals */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s 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; }

.page-banner {
  padding: 3.5rem 0 1.5rem;
}
.page-banner .wrap { max-width: 820px; }

.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--tide), var(--gold));
  z-index: 90;
}

.hidden-card { display: none !important; }

@media (max-width: 960px) {
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 280px; max-height: 340px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display: grid; }
  .nav-links, .nav-search {
    display: none;
  }
  .nav.open .nav-panel {
    display: flex;
  }
  .nav-panel {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(243, 245, 247, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem;
  }
  .nav.open .nav-search { display: flex; width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; text-align: left; }
  .article-cover img { height: 360px; }
}
