/* Cyber Challenge Ireland: colours sampled directly from the 2026 poster. */

@font-face{font-family:'Chakra Petch';src:url('/fonts/chakra-petch-600.woff2') format('woff2');
  font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Chakra Petch';src:url('/fonts/chakra-petch-700.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('/fonts/ibm-plex-sans-var.woff2') format('woff2');
  font-weight:100 700;font-style:normal;font-display:swap}

:root{
  --ink:#0A0E15;
  --raise:#121926;
  --rule:#1E2736;
  --paper:#E9EEF5;
  --mute:#8C9AAE;

  --c-cyan:#60C6DE;
  --c-violet:#A06BC8;
  --c-lime:#AECC48;
  --c-amber:#F6DE42;
  --c-magenta:#E44896;
  --c-azure:#5B9BE0;

  --gutter:clamp(1.25rem,5vw,4rem);
  --wide:74rem;
}

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

/* Accent utilities. These exist as classes rather than inline style attributes
   so the page can keep a CSP without 'unsafe-inline'. */
.a-cyan{--accent:var(--c-cyan)}
.a-violet{--accent:var(--c-violet)}
.a-lime{--accent:var(--c-lime)}
.a-amber{--accent:var(--c-amber)}
.a-magenta{--accent:var(--c-magenta)}
.a-azure{--accent:var(--c-azure)}

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

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font:400 1.0625rem/1.65 'IBM Plex Sans',system-ui,sans-serif;
  /* faint signal-grid, a quiet nod to the poster's screen-wall photography */
  background-image:
    linear-gradient(transparent 95%,rgba(96,198,222,.045) 95%),
    linear-gradient(90deg,transparent 95%,rgba(96,198,222,.045) 95%);
  background-size:52px 52px;
}

h1,h2,h3,h4{font-family:'Chakra Petch',system-ui,sans-serif;font-weight:700;margin:0}

a{color:inherit}

.skip{position:absolute;left:-9999px;top:0;background:var(--c-lime);color:#0A0E15;
  padding:.65rem 1rem;z-index:10;font-weight:600}
.skip:focus{left:0}

:where(a,button):focus-visible{outline:3px solid var(--c-lime);outline-offset:3px}

/* ---------------------------------------------------------------- masthead */
.masthead{
  display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem 2rem;
  flex-wrap:wrap;
  padding:1.5rem var(--gutter);
  max-width:var(--wide);margin-inline:auto;
}
.mark{font-family:'Chakra Petch';font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;font-size:.9rem}
.mark__ie{color:var(--c-cyan)}
.masthead__nav{display:flex;gap:1.5rem;font-size:.95rem}
.masthead__nav a{color:var(--mute);text-decoration:none;padding-bottom:2px;
  border-bottom:1px solid transparent}
.masthead__nav a:hover{color:var(--paper);border-bottom-color:var(--c-cyan)}

/* -------------------------------------------------------------------- hero */
.hero{
  max-width:var(--wide);margin-inline:auto;
  padding:clamp(1rem,4vw,3rem) var(--gutter) clamp(3rem,7vw,5rem);
  display:grid;gap:clamp(2rem,5vw,4rem);
  grid-template-columns:1fr;
  align-items:center;
}
@media (min-width:62rem){
  .hero{grid-template-columns:1fr 1.02fr}
}

.hero__head{
  font-size:clamp(2.75rem,7.5vw,5.25rem);
  line-height:.94;
  letter-spacing:-.02em;
  text-wrap:balance;
}
.hero__lede{
  font-size:clamp(1.0625rem,1.6vw,1.1875rem);
  color:#C3CDDA;max-width:34ch;margin:1.75rem 0 0;
}
/* Sits tight under the lede, as a gloss on "aged 14 to 18" rather than a
   separate claim. */
.hero__who{color:var(--mute);margin:.7rem 0 0;font-size:.95rem;max-width:36ch}
.hero__note{
  display:inline-block;margin:1.5rem 0 0;
  font-family:'Chakra Petch';font-weight:600;font-size:.95rem;
  letter-spacing:.06em;
  color:#0A0E15;background:var(--c-lime);
  padding:.4rem .85rem;
  transform:rotate(-1.4deg);
}
.hero__count{color:var(--mute);margin:1.75rem 0 0;font-size:.98rem;max-width:32ch}

/* --------------------------------------------------------------- hero map */
.hero__map{margin:0}
.hero__map svg{width:100%;height:auto;display:block;max-height:min(74vh,40rem)}
.hero__map figcaption{
  color:var(--mute);font-size:.85rem;margin-top:.75rem;max-width:30ch;
}
.map__land circle{fill:#3A7085}
.map__node-hit{fill:transparent}
.map__ring{fill:none;stroke:var(--accent);stroke-width:1.6;opacity:.6}
.map__dot{fill:var(--accent);filter:drop-shadow(0 0 5px var(--accent))}
.map__label{
  font-family:'Chakra Petch';font-weight:600;font-size:13px;
  fill:var(--paper);paint-order:stroke;stroke:var(--ink);stroke-width:4px;
}
.map__node{text-decoration:none}
.map__node:hover .map__ring,.map__node:focus-visible .map__ring{opacity:1;stroke-width:2.4}
.map__node:hover .map__label,.map__node:focus-visible .map__label{fill:var(--accent)}
.map__node:focus-visible{outline:none}
.map__node:focus-visible .map__dot{stroke:var(--c-lime);stroke-width:3}

/* the single orchestrated moment: markers arrive one after another */
@media (prefers-reduced-motion:no-preference){
  .map__node{animation:node-in .5s both cubic-bezier(.2,.9,.3,1.3)}
  .map__node:nth-child(1){animation-delay:.15s}
  .map__node:nth-child(2){animation-delay:.28s}
  .map__node:nth-child(3){animation-delay:.41s}
  .map__node:nth-child(4){animation-delay:.54s}
  .map__node:nth-child(5){animation-delay:.67s}
}
@keyframes node-in{
  from{opacity:0;transform:translateY(-9px)}
  to{opacity:1;transform:none}
}

/* ---------------------------------------------------------------- sections */
section{max-width:var(--wide);margin-inline:auto;padding:0 var(--gutter) clamp(3.5rem,8vw,6rem)}
.section__head{font-size:clamp(1.65rem,3.6vw,2.5rem);letter-spacing:-.01em;margin-bottom:.75rem}
.section__lede{color:var(--mute);max-width:52ch;margin:0 0 2.5rem}

/* ------------------------------------------------------------------- heats */
.daygroup{margin-bottom:3rem}
.daygroup__date{
  display:inline-block;
  font-size:clamp(1.05rem,2.2vw,1.4rem);letter-spacing:.01em;
  color:#0A0E15;background:var(--accent);
  padding:.35rem 1rem;margin-bottom:1.5rem;
  transform:skewX(-9deg);
}
.daygroup__date > *{display:inline-block;transform:skewX(9deg)}
.daygroup__date--tbc{background:none;color:var(--mute);border:1px dashed var(--rule);
  transform:none}

.daygroup__list{display:grid;gap:1.25rem;grid-template-columns:1fr}
@media (min-width:46rem){.daygroup__list{grid-template-columns:1fr 1fr}}

.heat{
  background:var(--raise);
  border-left:4px solid var(--accent);
  padding:1.5rem 1.6rem 1.6rem;
}
.heat:target{outline:2px solid var(--accent);outline-offset:3px}
.heat__region{font-size:1.4rem;color:var(--accent);margin-bottom:.4rem}
.heat__venue{margin:0;font-weight:500}
.heat__town{margin:.1rem 0 0;color:var(--mute)}

/* -------------------------------------------------------------- categories */
.cats{list-style:none;margin:0;padding:0;display:grid;gap:2rem 2.5rem;
  grid-template-columns:repeat(auto-fit,minmax(15rem,1fr))}
.cat{position:relative;padding-top:3.25rem}
/* hexagon swatch, echoing the poster's six hex badges */
.cat::before{
  content:"";position:absolute;top:0;left:0;width:30px;height:34px;
  background:var(--accent);
  clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
.cat__name{font-size:1.1rem;color:var(--accent);margin-bottom:.5rem;letter-spacing:.01em}
.cat__blurb{margin:0;color:#B7C2D1;font-size:.98rem;max-width:34ch}

/* --------------------------------------------------------------------- day */
.facts{display:grid;gap:2rem 3rem;grid-template-columns:repeat(auto-fit,minmax(17rem,1fr))}
.fact__head{font-size:1.05rem;margin-bottom:.45rem}
.fact__body{margin:0;color:var(--mute);max-width:36ch}

/* ------------------------------------------------------------------ footer */
.foot{
  border-top:1px solid var(--rule);
  max-width:var(--wide);margin-inline:auto;
  padding:3rem var(--gutter) 4rem;
  display:grid;gap:2rem 3rem;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));
}
.foot__head{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--c-cyan);margin-bottom:.75rem;font-weight:600}
.foot__names{margin:0;color:var(--mute)}

/* ---------------------------------------------------------- partner strip */
/* The poster sets its eight marks on a white band, because several of them
   have no usable reverse version. Repeating that here keeps every logo on the
   background its owner's artwork was drawn for. */
/* Full-bleed, and pure white rather than --paper: several of these files are
   flattened artwork on an opaque white box, which shows as a patch on any
   off-white. */
/* max-width/margin are reset explicitly: the element selector `section` above
   caps every section at --wide, and this one is full-bleed. */
.plogos{max-width:none;margin-inline:0;
  background:#fff;padding:2.25rem var(--gutter) 2.5rem}
.plogos__head{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;
  color:#4A5768;font-weight:600;text-align:center;margin-bottom:1.9rem}
/* A fixed grid, not flex-wrap: left to reflow, nine marks land as 6+3 or
   5+4 and read as an afterthought. Three by three is deliberate, and it puts
   TU Dublin next to GroSafe, its own project. */
.plogos__strip{
  display:grid;grid-template-columns:repeat(2,1fr);place-items:center;
  gap:2.1rem 1.5rem;max-width:54rem;margin-inline:auto;
}
/* An odd count leaves a widow in a 2-up: centre it across both columns. */
.plogos__strip > :last-child:nth-child(odd){grid-column:1/-1}
@media (min-width:36rem){
  .plogos__strip{grid-template-columns:repeat(3,1fr)}
  .plogos__strip > :last-child:nth-child(odd){grid-column:auto}
}
/* Sized one by one: these marks range from a square crest to a wordmark five
   times as wide, so a single fixed box would make half of them look wrong. */
.plogo{display:block;width:auto;object-fit:contain}
.plogo--nicsc{height:46px}
.plogo--techfirst{height:30px}
.plogo--zerodays{height:42px}
.plogo--swc{height:52px}
.plogo--src{height:48px}
.plogo--mtu{height:50px}
.plogo--tudublin{height:54px}
.plogo--setu{height:46px}
.plogo--grosafe{height:36px}
@media (max-width:36rem){
  .plogos{padding-inline:1rem}
  .plogos__strip{gap:1.6rem 1rem}
  .plogo{height:34px;max-width:100%}
  .plogo--swc,.plogo--tudublin{height:42px}
  .plogo--mtu{height:38px}
  .plogo--grosafe{height:32px}
  .plogo--techfirst{height:24px}
}
