/* Magan landing page. Fonts are served from this site (fonts/, SIL Open Font License 1.1, texts beside them). */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }

:root {
  --night: #12142A;
  --panel: #1C1F40;
  --sand: #F3E9D2;
  --sand-2: #E6DCC4;
  --sand-3: #D9CFB8;
  --muted: #C9C2AE;
  --gold: #E8B64C;
  --ink: #14162B;
  --lapis: #A9BAFF;
  --lapis-hover: #D5DDFF;
  --tablet: #E9D6AE;
  --tablet-ink: #2A2118;
  --head: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--sand);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lapis); }
a:hover { color: var(--lapis-hover); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; }
p { margin: 0; }

/* top bar */
.top {
  max-width: 1160px; margin: 0 auto; padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-family: var(--head); font-weight: 700; font-size: 26px; color: var(--sand); text-decoration: none; letter-spacing: 0.02em; }
.brand:hover { color: var(--sand); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav a { color: var(--sand-3); text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--sand); }
.nav a.btn, .btn {
  background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none;
  padding: 12px 20px; border-radius: 10px;
}
.nav a.btn:hover { background: #F0C76A; color: var(--ink); }

/* the picture of the Square */
.hero { position: relative; min-height: 620px; display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; width: 100%; max-width: 1160px; margin: 0 auto; padding: 24px; }
.hero-panel {
  max-width: 640px; background: rgba(18, 20, 42, 0.88); border-radius: 16px; padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.lead { font-size: 19px; color: var(--sand-2); }
.note { font-size: 14px; color: var(--muted); }

/* sections */
.block { max-width: 1160px; margin: 0 auto; padding: 72px 24px 0; }
.block h2 { font-size: 34px; line-height: 1.15; }
.intro { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.intro p { color: var(--muted); max-width: 720px; }

/* not awake yet: the chronicle's sand tablet, and the two rehearsal pictures */
.now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.tablet {
  background: var(--tablet); color: var(--tablet-ink); border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.tablet h2 { color: var(--tablet-ink); }
.tablet p { font-size: 18px; line-height: 1.5; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.shot figcaption { color: var(--muted); font-size: 15px; }

/* the eight */
.seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.seat { background: var(--panel); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.seat img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.seat h3 { font-size: 24px; }
.seat .role { font-weight: 600; color: var(--gold); font-size: 15px; }
.seat p:not(.role) { color: var(--sand-3); font-size: 16px; }

/* what Magan is */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; align-items: center; }
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text p { color: var(--sand-2); }
.about-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }

/* the imprint page */
.page { min-height: 50vh; display: flex; flex-direction: column; gap: 16px; }
.page h1 { font-size: 40px; }
.page h2 { font-size: 26px; margin-top: 24px; }
.page p { color: var(--sand-2); max-width: 720px; }

/* footer */
.foot {
  max-width: 1160px; margin: 0 auto; padding: 72px 24px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  color: var(--muted); font-size: 15px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a { padding: 12px 0; display: inline-block; }

/* phone width */
@media (max-width: 640px) {
  .top { padding: 16px; gap: 8px; }
  .nav { gap: 4px 14px; font-size: 16px; }
  .nav a.btn { padding: 10px 14px; }
  .hero { display: block; min-height: 0; }
  .hero-img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .hero-inner { padding: 0 16px; margin-top: -48px; }
  .hero-panel { padding: 24px; gap: 16px; background: var(--night); }
  .lead { font-size: 18px; }
  .block { padding: 56px 16px 0; }
  .block h2 { font-size: 30px; }
  .now-grid { grid-template-columns: 1fr; }
  .tablet { padding: 22px; }
  .seats { grid-template-columns: 1fr; gap: 16px; }
  .seat { display: grid; grid-template-columns: 104px 1fr; column-gap: 16px; row-gap: 4px; align-content: start; }
  .seat img { grid-row: 1 / span 3; align-self: start; }
  .seat h3 { font-size: 22px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .foot { padding: 56px 16px 40px; }
}
