/* Everest Consortium site. Marco, 2026-11-13.
   Colours come from the logo: ink #231f20, teal #43bfb2 (decorative only, 2.25:1 on white),
   #1f7a70 for anything teal that has to be read (5.15:1). White page on purpose: the hero GIF has a baked white background. */

@font-face {
  font-family: "Cinzel";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Cinzel-Bold.woff2") format("woff2");
}

:root {
  --ink: #231f20;
  --teal: #43bfb2;
  --teal-text: #1f7a70;
  --muted: #5b5657;
  --line: #e6e3e0;
  --s45-bg: #111111;
  --pa-bg: #0a0a0a;
  --pa-ink: #f4f4f0;
  --pa-red: #ff1f1f;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--ink);
  font: 400 1rem/1.6 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal-text); outline-offset: 3px; }
main { flex: 1; }
.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }

/* header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.home-link { display: block; line-height: 0; }
.home-link img { width: 40px; height: auto; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: .75rem 1rem;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--teal); }

/* hero */
.hero { text-align: center; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.75rem); }
.hero h1 { margin: 0; line-height: 0; }
.hero img { width: min(280px, 64vw); height: auto; }

/* brand blocks */
.brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: min(1000px, 100% - 3rem);
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 7vw, 5.5rem);
}
.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  min-height: clamp(220px, 28vw, 300px);
  padding: 2.5rem 1.5rem;
  border-radius: 4px;
  color: var(--pa-ink);
  text-decoration: none;
}
.brand--s45 { background: var(--s45-bg); }
.brand--pa { background: var(--pa-bg); }
/* url pinned to the bottom so both blocks line up whatever the logo height */
.brand .url {
  position: absolute;
  inset: auto 0 1.25rem 0;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .06em;
  color: #b9b6ae;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
/* hover and keyboard focus: the url lights up, so the block reads as a link */
.brand:hover .url,
.brand:focus-visible .url { color: #ffffff; text-decoration-color: var(--teal); }
.brand--s45 img { width: min(100%, 300px); height: auto; }

/* Punk Aficionado wordmark: set the same way as punkaficionado.com (Cinzel Bold, caps, line-height .82) */
.pa-mark {
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: .82;
  letter-spacing: .01em;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  text-align: center;
}
.pa-mark span { display: block; }
.pa-mark .l2 { color: var(--pa-red); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer a { color: var(--muted); text-decoration-color: var(--teal); text-underline-offset: 3px; }

/* contact page */
.contact { max-width: 40rem; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem); }
.contact h1 { margin: 0 0 1rem; font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.contact p { margin: 0 0 1.5rem; font-size: 1.125rem; }
.mail {
  display: inline-block;
  font-size: clamp(1.35rem, 4.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 4px;
  text-decoration-skip-ink: none;
  text-underline-offset: 6px;
}
.mail:hover { color: var(--teal-text); }
.contact .also { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.contact .also a { text-decoration-color: var(--teal); text-underline-offset: 3px; }

@media (max-width: 719px) {
  .brands { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .brand .url { transition: none; }
}
