:root {
  --bg: #e9ede8;
  --ink: #15242a;
  --muted: #425861;
  --accent: #0d5a72;
  --paper: #fffdf8;
  --line: rgba(17, 33, 40, 0.14);
  --content-width: min(1120px, 92vw);
}

* { box-sizing: border-box; }

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Geist", sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(circle at 8% -12%, #f2e5c9 0, transparent 34%),
    radial-gradient(circle at 95% 4%, #cce4d8 0, transparent 34%),
    var(--bg);
}

.container {
  width: var(--content-width);
  margin: 0 auto;
}

.hero {
  padding: 0;
}

.hero-shell {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(10, 31, 38, 0.16);
  background: #7ed8aa;
  aspect-ratio: 16 / 9;
}

.hero-shell.flat {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-shell.hero-fullbleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  height: min(70svh, 820px);
}

.hero-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center bottom;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 26, 33, 0.05), rgba(9, 26, 33, 0.24));
  pointer-events: none;
}

.hero-brand {
  position: absolute;
  top: clamp(12px, 2vw, 26px);
  width: clamp(84px, 13vw, 190px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.hero-brand.left { left: clamp(12px, 2.4vw, 32px); }
.hero-brand.right { right: clamp(12px, 2.4vw, 32px); width: clamp(96px, 15vw, 212px); }

.hero-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 1040px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.23));
}

.hero-meta {
  position: absolute;
  bottom: clamp(12px, 2.4vw, 30px);
  z-index: 2;
  font-family: "EB Garamond", serif;
  font-weight: 500;
  color: #fff;
  font-size: clamp(1.2rem, 3.3vw, 3.1rem);
  line-height: 1;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
  letter-spacing: .01em;
}

.hero-meta.left { left: clamp(12px, 2.4vw, 34px); }
.hero-meta.right { right: clamp(12px, 2.4vw, 34px); }

.cards {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.88));
  border: 1px solid #d9e1e1;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(10, 26, 31, 0.08);
}

.card strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
}

section { padding: 3.5rem 0 4.2rem; }

h2 {
  margin: 0 0 .9rem;
  font-family: "Geist", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
}

.lead {
  max-width: 78ch;
  font-size: 1.08rem;
  color: #21363e;
}

.grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: 1.2rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem;
}

.panel h3 {
  margin: 0 0 .7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .84rem;
}

.topics { margin: 0; padding-left: 1rem; }
.topics li + li { margin-top: .45rem; }

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .65rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: .7rem;
  padding-bottom: .58rem;
  border-bottom: 1px dashed var(--line);
}

.timeline time { font-weight: 600; }

.cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.btn {
  text-decoration: none;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0f6984, #0d4256);
  box-shadow: 0 8px 22px rgba(14, 91, 114, .28);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.site-footer {
  margin-top: 1.5rem;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
}

.site-footer .container,
.site-footer .circular-paper {
  display: flex;
  justify-content: center;
  text-align: center;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Circular page */
.circular-main {
  padding: 0 0 2.4rem;
}

.circular-paper {
  width: var(--content-width);
  margin: 0 auto;
}

.circular-header {
  position: relative;
}

.hero-home-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.circular-header .hero-title { top: 50%; }

.circular-headnote {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .75rem 1rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #f7fbf9;
  color: var(--muted);
  font-size: .92rem;
  font-family: "Geist", sans-serif;
}

.circular-content {
  padding: 1.4rem 1.2rem 1.6rem;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: "Geist", sans-serif;
  font-size: 1.02rem;
  line-height: 1.64;
  font-weight: 400;
}

.circular-section + .circular-section {
  margin-top: 2rem;
  padding-top: .25rem;
}

.circular-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: .7rem;
  font-family: "Geist", sans-serif;
  font-weight: 700;
  color: #0f3f51;
  border-left: 4px solid rgba(13, 90, 114, 0.36);
  padding-left: .62rem;
  line-height: 1.15;
}

.circular-section h3 {
  margin: 1rem 0 .4rem;
  font-size: 1rem;
  color: #123b49;
  letter-spacing: .02em;
  font-family: "Geist", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

.circular-section p {
  margin: .5rem 0;
  color: #23373f;
  max-width: 78ch;
}

.circular-content a,
.circular-content td,
.circular-content th,
.circular-content li,
.circular-content p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dates-list,
.includes-list,
.program-list,
.excursion-list {
  margin: .4rem 0 0;
  padding-left: 1.1rem;
}

.dates-list li,
.includes-list li,
.program-list li,
.excursion-list li {
  margin: .32rem 0;
}

.program-list li,
.excursion-list li {
  padding: .42rem .55rem;
  border-radius: .45rem;
}

.program-list li:nth-child(odd),
.excursion-list li:nth-child(odd) {
  background: rgba(13, 90, 114, 0.05);
}

.info-grid {
  display: grid;
  gap: .85rem;
}

.info-item {
  padding: .8rem .85rem;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: #fff;
}

.info-item strong {
  display: block;
  margin-bottom: .32rem;
  color: var(--accent);
  font-family: "Geist", sans-serif;
  font-weight: 600;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .45rem;
  font-size: .97rem;
  font-family: "Geist", sans-serif;
  font-weight: 400;
}

.fees-table th,
.fees-table td {
  border-bottom: 1px solid var(--line);
  padding: .5rem .4rem;
  text-align: left;
  vertical-align: top;
}

.fees-table thead th {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.fees-table tbody tr:nth-child(even) td {
  background: rgba(13, 90, 114, 0.04);
}

.venue-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .9rem;
}

.venue-card {
  border: 1px solid var(--line);
  border-radius: .7rem;
  overflow: hidden;
  background: #fff;
}

.venue-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.venue-card figcaption {
  font-size: .9rem;
  padding: .45rem .55rem;
  color: #26414b;
  font-weight: 500;
}

.org-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(.55rem, 2.2vw, 1.25rem);
  margin-top: .8rem;
}

.izrk-logo-emblem {
  display: block;
  height: clamp(62px, 9.6vw, 84px);
  width: auto;
  max-width: 26vw;
  object-fit: contain;
}

.izrk-logo-main {
  display: block;
  height: clamp(58px, 8.9vw, 78px);
  width: auto;
  max-width: 64vw;
  object-fit: contain;
}

.org-logo-single {
  display: flex;
  justify-content: center;
  margin-top: .8rem;
}

.org-logo-single img {
  display: block;
  height: clamp(62px, 9.6vw, 84px);
  width: auto;
  max-width: 100%;
}

@media (max-width: 420px) {
  .izrk-logo-main {
    max-width: 62vw;
  }

  .izrk-logo-emblem {
    max-width: 24vw;
  }
}

.circular-footer {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .8rem 1.1rem 1rem;
  font-size: .92rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  font-family: "Geist", sans-serif;
}

.circular-mini-strip {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #74d3a5;
}

.circular-mini-strip img {
  width: 100%;
  height: auto;
  display: block;
}

.home-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(13, 90, 114, 0.35);
}

.home-link:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 920px) {
  .cards,
  .grid { grid-template-columns: 1fr; }

  .timeline li { grid-template-columns: 1fr; }

  .hero-title,
  .circular-header .hero-title { top: 50%; }

  .hero-shell.hero-fullbleed {
    height: min(48svh, 520px);
  }

  .circular-content {
    padding: 1rem .85rem 1.2rem;
  }

  .fees-table {
    font-size: .92rem;
  }

  .venue-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 800px) {
  :root {
    --content-width: min(900px, 90vw);
  }

  .cards {
    margin-top: .9rem;
    gap: .8rem;
  }

  .card {
    padding: .8rem;
  }

  .hero-meta {
    font-size: clamp(1rem, 2.7vw, 2.2rem);
  }

}

@media (max-height: 900px) {
  :root {
    --content-width: min(980px, 90vw);
  }
}

@media (max-height: 760px) {
  :root {
    --content-width: min(780px, 88vw);
  }

  .hero-meta {
    font-size: clamp(.92rem, 2.2vw, 1.7rem);
  }
}

@media (max-width: 240px) {
  :root {
    --content-width: 100vw;
  }

  .container,
  .circular-paper {
    width: 100vw;
  }

  .hero-brand {
    width: clamp(44px, 20vw, 84px);
  }

  .hero-brand.right {
    width: clamp(52px, 24vw, 96px);
  }

  .hero-meta {
    font-size: clamp(.68rem, 6vw, .92rem);
    bottom: 8px;
  }
}

@media (orientation: portrait) {
  .hero-shell.hero-fullbleed {
    aspect-ratio: 3 / 2;
    height: auto;
    max-height: min(56svh, 460px);
  }
}
