/* Queer Connected — shared styles (all pages)
   Identity: Ink #141110 · Cream #F6EFE6 · QC Orange #D07048
   One family: Archivo (condensed 800 for headlines, 400 body). No italics, 2 weights. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  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;
}

:root {
  --ink: #141110;
  --cream: #F6EFE6;
  --orange: #D07048;
  --gutter: clamp(16px, 4vw, 64px);
  --section-y: clamp(32px, 4vw, 60px);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale: every heading on the site uses one of these */
  --fs-display: clamp(44px, 6.2vw, 96px);   /* Home hero only */
  --fs-h1: clamp(34px, 3.6vw, 52px);        /* page titles */
  --fs-h2: clamp(30px, 3.2vw, 46px);        /* section titles, end blocks */
  --fs-h3: clamp(20px, 1.8vw, 24px);        /* sub-sections, FAQ questions, Tickets */
  --fs-h4: clamp(17px, 1.4vw, 20px);        /* card, feature and step titles, filters */
  --fs-lead: clamp(16px, 1.25vw, 19px);     /* intro paragraphs */
  --fs-small: 14px;                          /* card details, meta lines */
  --fs-note: 13px;                           /* notes under forms and tickets */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: 10px 14px;
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type ---------- */
.h {
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -.01em;
  line-height: .9;
  text-transform: uppercase;
  margin: 0;
}
.lab {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.orange { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  border: 2px solid transparent;
  font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn--cream   { background: var(--cream); color: var(--ink); }
.btn--ink     { background: var(--ink); color: var(--cream); }
.btn--orange  { background: var(--orange); color: var(--ink); }
.btn--line    { background: transparent; border-color: currentColor; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  background: var(--ink); color: var(--cream);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px;
  padding: 14px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand span { font-size: 19px; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.site-nav > a[aria-current="page"] { color: var(--orange); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 2px solid currentColor; padding: 0; cursor: pointer;
}
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* Event account dropdown */
.acct { position: relative; }
.acct-btn { padding: 10px 14px; min-height: 0; }
.acct-btn svg { flex-shrink: 0; transition: transform .15s; }
.acct-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 260px; background: var(--cream); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--orange);
  display: none; flex-direction: column;
}
.acct-menu.is-open { display: flex; }
.acct-menu a { display: block; padding: 14px 16px; }
.acct-menu a + a { border-top: 1px solid var(--ink); }
.acct-menu a:hover { background: var(--ink); color: var(--cream); text-decoration: none; }
.acct-menu strong { display: block; font-weight: 800; font-stretch: 75%; font-size: 19px; text-transform: uppercase; line-height: 1; }
.acct-menu small { display: block; font-size: 13px; margin-top: 4px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid rgba(246, 239, 230, .25);
    margin-top: 2px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a {
    font-size: 14px; padding: 14px 0;
    border-bottom: 1px solid rgba(246, 239, 230, .25);
  }
  .acct { padding-top: 16px; }
  .acct-btn { width: 100%; justify-content: space-between; padding: 14px 16px; }
  .acct-menu { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section--ink { background: var(--ink); color: var(--cream); }

/* ---------- Corner bug (QC | …) ---------- */
.bug {
  position: absolute; top: 0; left: 0; z-index: 1;
  background: var(--orange); color: var(--ink); padding: 8px 12px;
}

/* ---------- End block: List your event / Get the app (Home, Events) ---------- */
.end { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.end > div {
  padding: clamp(28px, 3.2vw, 46px) var(--gutter);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.end-host { background: var(--orange); color: var(--ink); }
.end-app  { background: var(--cream); color: var(--ink); }
.end h2 { font-size: var(--fs-h2); }
.end p { max-width: 440px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--cream);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px 32px;
  padding: 16px var(--gutter);
}
.site-footer .brand { gap: 8px; }
.site-footer .brand img { height: 18px; }
.site-footer .brand span { font-size: 15px; }
.site-footer .copy { font-size: var(--fs-small); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.site-footer .social { justify-content: flex-end; }
@media (max-width: 700px) {
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px var(--gutter); }
  .site-footer .social { justify-content: center; }
}
.footer-nav a[aria-current="page"] { color: var(--orange); }
.social { display: flex; gap: 20px; }
.social a { color: var(--orange); }

@media (max-width: 1100px) {
  body { font-size: 15px; }
  .btn { min-height: 40px; padding: 9px 14px; font-size: 11px; }
}

/* Keep the footer at the bottom of the window on short pages */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Two weights only (400 + 800): bold tags use 800, never the browser's 700/900 */
strong, b { font-weight: 800; }
input, select, textarea { font: inherit; color: inherit; }

/* Headline look for elements styled as headlines without the .h class */
.copy .lead, .faq summary, .step-n, .acct-menu strong { letter-spacing: -.01em; line-height: .95; }

/* Phone browsers: black behind the page so the area around the footer and under the
   browser's bottom bar matches the footer; header and footer clear notches and the home bar */
html { background: var(--ink); }
.site-header {
  padding-top: max(14px, env(safe-area-inset-top, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.site-footer {
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (max-width: 700px) { .site-footer { padding-bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 8px)); } }

/* iPhone Safari tints the strip under its bottom bar with the body colour, so the body is
   black and only the content area is cream. Looks the same; the bottom bar now matches the footer. */
body { background: var(--ink); }
main { background: var(--cream); }
