/* Astronomy on Tap Warsaw — site styles
   Palette and type follow the event posters: night sky, amber, cream. */
:root {
  --night: #0b1026;
  --deep: #151a44;
  --amber: #f5b13d;
  --amber-soft: #ffc96b;
  --foam: #fff4df;
  --mist: #b9bfe6;
  --line: rgb(255 244 223 / .16);
  --card: rgb(255 244 223 / .05);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Instrument Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--foam); font-family: var(--text); font-size: 17px; line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 78% -5%, #262d72 0%, transparent 65%),
    radial-gradient(900px 700px at 8% 30%, rgb(126 84 214 / .22), transparent 70%),
    linear-gradient(180deg, var(--deep) 0%, var(--night) 55%) fixed;
  background-color: var(--night);
}
img { max-width: 100%; display: block; }
a { color: var(--amber); }
a:hover { color: var(--amber-soft); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

/* header + nav */
.site-head { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px); background: rgb(11 16 38 / .82); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--foam); margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; display: block; }
.brand span { font-size: 13px; color: var(--mist); letter-spacing: .14em; text-transform: uppercase; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a { color: var(--foam); text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 15px; }
nav a:hover { background: var(--card); }
nav a[aria-current="page"] { background: var(--amber); color: var(--night); }

/* hero */
.hero { padding-block: 72px 56px; }
.hero h1 { font-family: var(--display); font-size: clamp(42px, 7vw, 76px); line-height: 1.03; margin: 0 0 18px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--mist); max-width: 60ch; margin: 0 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-grid > img { border-radius: 10px; border: 1px solid var(--line); }

/* generic page title */
.page-head { padding-block: 56px 26px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--display); font-size: clamp(34px, 5.5vw, 56px); margin: 0 0 10px; font-weight: 700; }
.page-head p { color: var(--mist); max-width: 65ch; margin: 0; font-size: 19px; }

section { padding-block: 48px; }
h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 16px; font-weight: 700; }
h3 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; font-weight: 700; }

/* buttons */
.btn { display: inline-block; background: var(--amber); color: var(--night); font-weight: 700; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; }
.btn:hover { background: var(--amber-soft); color: var(--night); }
.btn.ghost { background: transparent; color: var(--foam); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--card); color: var(--foam); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card p:last-child { margin-bottom: 0; }

/* event list */
.event { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event img { border-radius: 8px; border: 1px solid var(--line); }
.event .no { font-family: var(--display); font-size: 15px; color: var(--amber); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 4px; }
.event h3 { font-size: 26px; margin-bottom: 8px; }
.event .meta { color: var(--mist); margin: 0 0 14px; }
.talks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.talks li { padding-left: 16px; border-left: 2px solid var(--amber); }
.talks b { display: block; }
.talks span { color: var(--mist); }

/* team */
.role { display: grid; grid-template-columns: 230px 1fr; gap: 22px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.role:last-child { border-bottom: 0; }
.role .title { font-family: var(--display); font-size: 21px; font-weight: 700; }
.role .who { color: var(--amber); font-weight: 600; }

/* photo strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.strip img { border-radius: 10px; border: 1px solid var(--line); height: 260px; object-fit: cover; width: 100%; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--amber); font-weight: 700; }

/* placeholder marker — search the repo for "todo" to find what still needs filling in */
.todo { background: rgb(245 177 61 / .16); border: 1px dashed var(--amber); border-radius: 6px; padding: 2px 8px; color: var(--amber-soft); font-size: .92em; }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 34px 50px; color: var(--mist); font-size: 15px; }
.site-foot .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.site-foot a { color: var(--foam); }

@media (max-width: 760px) {
  .hero-grid, .event, .role, .timeline li { grid-template-columns: 1fr; }
  .hero { padding-block: 46px 34px; }
  .event img { max-width: 260px; }
}

/* role subtitle inside a card */
.card .who { color: var(--amber); font-weight: 600; margin: 0; }

/* inline brand icons next to social links */
.icon { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: .45em; }

/* big badge in the home hero */
.hero-logo { border: 0; background: none;
  width: 300px; height: auto; margin-bottom: 24px;
}
@media (max-width: 760px) { .hero-logo { border: 0; background: none; width: 210px; margin-bottom: 18px; } }

/* cards in a row share a baseline: the action sits at the bottom */
.cards .card { display: flex; flex-direction: column; }
.cards .card > p:last-child { margin-top: auto; margin-bottom: 0; }

/* upcoming event: placeholder where the poster will go */
.poster-soon {
  display: grid; place-items: center; text-align: center; aspect-ratio: 637 / 900;
  border: 2px dashed var(--amber); border-radius: 8px; color: var(--amber);
  font-family: var(--display); font-size: 20px; line-height: 1.3;
  background: rgb(245 177 61 / .06);
}
.event.next .no { color: var(--foam); background: var(--amber); color: var(--night);
  display: inline-block; padding: 3px 11px; border-radius: 999px; letter-spacing: .06em; }

/* "free" badge — the events never cost anything, so say it loudly */
.free-pill {
  display: inline-block; background: var(--amber); color: var(--night);
  font-weight: 700; font-size: .95em; padding: 5px 14px; border-radius: 999px;
  letter-spacing: .02em; margin-right: 10px;
}
.free-note { margin: 22px 0 0; color: var(--mist); }

/* "what happens on the night": one accent colour per card */
.icard { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.icard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent);
}
.icard::after {
  content: ""; position: absolute; width: 150px; height: 150px; right: -60px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%);
  pointer-events: none;
}

.icard h3 { color: var(--accent); position: relative; }

/* click a poster to see it full size */
img.poster { cursor: zoom-in; transition: transform .15s ease, border-color .15s ease; }
img.poster:hover { transform: scale(1.02); border-color: var(--amber); }
img.poster:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgb(5 7 20 / .93); padding: 28px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 820px); max-height: 92vh; width: auto; border-radius: 6px; cursor: default;
  box-shadow: 0 24px 70px rgb(0 0 0 / .6); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); color: var(--foam); border: 1px solid var(--line);
  font-size: 30px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: var(--amber); color: var(--night); }
.lightbox-close:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { img.poster { transition: none; } img.poster:hover { transform: none; } }

/* illustrations on the night cards */
.icard .illu { display: block; margin-bottom: 10px; }
.icard .illu svg { width: 96px; height: 96px; display: block; }
