/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: #111;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FAEBC8; /* HSB(42,20,98) approx */
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  position: relative;
  min-height: 120px;              /* reduced now logo is 100px */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}

/* Menu pinned to the left */
.menu-wrap {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.menu-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-button:focus {
  outline: 2px solid rgba(0,0,0,0.25);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Dropdown opens from the left */
.menu-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 8px;
  display: none;
}

.menu-dropdown.open { display: block; }

.menu-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-size: 15px;
}

.menu-dropdown a:hover,
.menu-dropdown a:focus {
  background: rgba(250, 235, 200, 0.55);
  outline: none;
}

/* Brand group (logo + text) */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;

  /* keep clear space so it never overlaps the left menu */
  padding-left: 56px;
  padding-right: 16px;

  /* small left nudge */
  transform: translateX(-6px);

  max-width: 100%;
}

.brand-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex: 0 0 100px;
}

.brand-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px; /* overall tighter */
  min-width: 0;

  /* keeps text from sprawling weirdly */
  max-width: min(460px, calc(100vw - 190px));
}

/* Every header line: never wrap */
.brand-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* last-resort */
  line-height: 1.1;
}

/* Line 1 */
.brand-title {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #000;
  font-size: clamp(18px, 4.8vw, 30px);
}

/* Lines 2–3 (BOLD as requested, and tighter line-height) */
.brand-subtitle {
  font-weight: 800;           /* bold */
  color: #222;
  line-height: 1.05;          /* tighter between the two subtitle lines */
  font-size: clamp(14px, 3.2vw, 18px);
}

/* Line 4 (date): same size as subtitle, NOT bold */
.brand-date {
  font-weight: 400;           /* not bold */
  color: #222;
  line-height: 1.05;
  font-size: clamp(14px, 3.2vw, 18px); /* same as subtitle */
}

/* Page layout */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.intro p {
  font-size: 17px;
  margin: 0 0 14px 0;
}

/* Quick link buttons: auto-width, centred side-by-side */
.quick-links {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: #111;
  font-weight: 800;
  font-size: 18px;

  background: #FAEBC8;
  border: 2px solid #000;
  border-radius: 16px;

  padding: 14px 18px;
  width: auto;
}

.card-link:hover {
  filter: brightness(0.98);
}

/* Mobile tweaks */
@media (max-width: 420px) {
  .header-inner { padding: 10px 12px; }
  .brand { transform: translateX(-4px); }
  .brand-text { max-width: calc(100vw - 180px); }
}
