/* Hippocampus Green Meeting website styles.
   Colours are taken from the seahorse banner: navy ink, seahorse blue, sky wash and the orange accent. */

@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --ink: #16284a;
  --ink-soft: #46566f;
  --blue: #2e5596;
  --sky: #ebf5fc;
  --mist: #d3e3f3;
  --orange: #f59f55;
  --paper: #ffffff;

  --font: "Commissioner", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --measure: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 380;
}
img { max-width: 100%; height: auto; display: block; }
strong, b { font-weight: 640; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.012em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem); font-weight: 680; margin: 2.5rem 0 1rem; }
h2 { font-size: 1.4rem; font-weight: 650; margin: 2.4rem 0 0.75rem; }
h3 { font-size: 1.1rem; font-weight: 620; margin: 1.6rem 0 0.4rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }
.meta { color: var(--ink-soft); font-size: 0.95rem; }

.skip {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 10;
  background: var(--ink); color: #fff; padding: 0.5rem 0.9rem;
}
.skip:focus { top: 0.5rem; }

/* Header: the seahorse banner, then the meeting name ------------------- */
.banner { height: clamp(78px, 11vw, 150px); overflow: hidden; background: var(--sky); }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.masthead { padding-block: 1.4rem 0; border-bottom: 1px solid var(--mist); }
.site-name {
  margin: 0; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 760; letter-spacing: -0.03em; line-height: 1.05;
}
.site-name a { color: var(--ink); text-decoration: none; }
.tagline { margin: 0.35rem 0 1.1rem; color: var(--ink-soft); font-size: 1.05rem; }

.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 0 1.6rem; list-style: none; margin: 0; padding: 0;
  font-size: 0.98rem; font-weight: 520;
}
.site-nav a {
  display: inline-block; padding-block: 0.55rem 0.6rem; color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--mist); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* Home ----------------------------------------------------------------- */
main { padding-bottom: 3.5rem; }
.home {
  display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem;
  padding-top: 2.25rem;
}
.home-main { max-width: var(--measure); }
.lede { font-size: 1.22rem; line-height: 1.55; }
.lede p { margin-bottom: 1.25rem; }

.status {
  background: var(--sky); border-radius: 8px; padding: 1.25rem 1.4rem 0.4rem; margin: 0 0 1.5rem;
}
.status-place {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 680; letter-spacing: -0.015em;
  line-height: 1.2; margin-bottom: 0.75rem;
}
.facts { margin: 0 0 1rem; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: 0.3rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }

.home-aside h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.home-aside section { padding-top: 1rem; border-top: 3px solid var(--orange); margin-bottom: 2rem; }
.home-aside section + section { border-top-color: var(--mist); }
.news-brief { list-style: none; padding: 0; margin: 0 0 0.75rem; font-size: 0.97rem; }
.news-brief li { margin-bottom: 0.75rem; line-height: 1.4; }
.news-brief time { display: block; color: var(--ink-soft); font-size: 0.88rem; }

.people { list-style: none; padding: 0; }
.people li { margin-bottom: 0.4rem; line-height: 1.45; }
.home-aside .people { font-size: 0.97rem; }

/* Registration --------------------------------------------------------- */
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  padding: 0.7rem 1.1rem; border-radius: 6px; line-height: 1.35; font-weight: 520;
}
.button:hover { background: var(--ink); }
.button-quiet { background: var(--paper); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.button-quiet:hover { background: var(--sky); }
.fees { padding-left: 1.2rem; }
.dates { margin: 0; }
.dates div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding-block: 0.5rem; border-bottom: 1px solid var(--mist); }
.dates dd { margin: 0; text-align: right; white-space: nowrap; justify-self: end; }
.dates .highlight dd { font-weight: 640; box-shadow: inset 0 -0.45em 0 var(--orange); }

/* Sponsors */
.sponsors {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem;
}
.sponsors img { height: 46px; width: auto; }

/* Program -------------------------------------------------------------- */
.jump ul { list-style: none; padding: 0; display: flex; gap: 1.25rem; margin: 0 0 1rem; }
.program { margin-top: 2.5rem; }
.program h2 { margin-bottom: 0.25rem; }
.timetable { border-collapse: collapse; width: 100%; max-width: 48rem; margin: 0 0 2rem; }
.timetable caption {
  text-align: left; font-size: 1.1rem; font-weight: 620; padding: 1.25rem 0 0.5rem;
}
.timetable tr { border-top: 1px solid var(--mist); }
.timetable tr:last-child { border-bottom: 1px solid var(--mist); }
.timetable th, .timetable td { padding: 0.6rem 0; vertical-align: top; text-align: left; }
.timetable th {
  width: 9rem; padding-right: 1.25rem; font-weight: 450; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.slot-break td { font-style: italic; color: var(--ink-soft); }
.slot-highlight td { font-weight: 640; }
.slot-social td { font-weight: 640; font-style: italic; }
.slot-session td { padding-block: 0.75rem; }
.group + .group { margin-top: 0.45rem; }
.group-heading { font-weight: 640; margin-right: 0.35rem; }
.speakers { display: inline; padding: 0; margin: 0; list-style: none; }
.speakers li { display: inline; }
.speakers li:not(:last-child)::after { content: ", "; }

/* News ----------------------------------------------------------------- */
.news { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.news li { border-top: 1px solid var(--mist); padding-block: 1.1rem 0.4rem; }
.news h2 { font-size: 1.15rem; margin: 0 0 0.2rem; }
.news .meta { margin-bottom: 0.5rem; }

/* Past meetings */
.past + .past { margin-top: 3rem; padding-top: 0.5rem; border-top: 1px solid var(--mist); }

/* Footer --------------------------------------------------------------- */
.site-footer { background: var(--sky); border-top: 3px solid var(--orange); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; padding-block: 1.75rem 1rem; }

/* Narrow screens ------------------------------------------------------- */
@media (max-width: 880px) {
  .home { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 560px) {
  .site-nav ul { gap: 0 1.1rem; }
  .facts div { grid-template-columns: 6rem 1fr; gap: 0.75rem; }
  .timetable, .timetable tbody, .timetable tr, .timetable th, .timetable td { display: block; width: auto; }
  .timetable th { padding: 0.65rem 0 0; }
  .timetable td { padding: 0.1rem 0 0.65rem; }
  .dates div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .dates dd { text-align: left; white-space: normal; justify-self: start; }
}

@media print {
  .banner, .site-nav, .skip { display: none; }
}
