@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
}

:root {
  --stock: #f7f2e7;
  --fluoro: #ff48b0;
  --teal: #0078bf;
  --teal-ink: #00639e;
  --overprint: #5a3d8c;
  --charcoal: #2b2b2b;
  --straw: #f3d36b;
  --pink-dots: radial-gradient(circle, var(--fluoro) 2.6px, transparent 3px) 0 0 / 11px 11px;
  --teal-dots: radial-gradient(circle, var(--teal) 2.6px, transparent 3px) 0 0 / 11px 11px;
  --poster: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --print: "Source Serif 4", Georgia, serif;
}

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

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

body {
  margin: 0;
  background: var(--stock);
  color: var(--charcoal);
  font-family: var(--print);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--overprint);
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--poster);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--overprint);
  text-shadow: 2px 2px 0 var(--teal);
}

h1 {
  font-size: clamp(2.5rem, 9vw, 5.4rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.masthead {
  border-bottom: 3px solid var(--charcoal);
  padding: 10px 0;
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--poster);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--overprint);
  text-shadow: 2px 2px 0 var(--teal);
}

.wordmark img {
  width: 40px;
  height: 40px;
}

.tag {
  padding: 2px 10px;
  border: 2px solid var(--charcoal);
  background: var(--fluoro);
  color: var(--charcoal);
  font-family: var(--poster);
  font-weight: 700;
  font-size: 1rem;
}

.masthead nav {
  flex-basis: 100%;
}

.masthead ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 3px solid transparent;
  font-family: var(--poster);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--charcoal);
  text-decoration: none;
}

.masthead nav a:hover {
  border-color: var(--charcoal);
}

.masthead nav a[aria-current="page"] {
  border-color: var(--charcoal);
  background: var(--straw);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 36px 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18px;
  right: 0;
  width: 72%;
  height: 210px;
  background: var(--pink-dots);
}

.lede {
  max-width: 40em;
  font-size: 1.25rem;
}

.hero p {
  padding: 4px 0;
  background: var(--stock);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 20px;
  border: 3px solid var(--charcoal);
  border-radius: 0;
  background: var(--fluoro);
  color: var(--charcoal);
  font-family: var(--poster);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--charcoal);
}

.btn:hover {
  background: var(--straw);
  color: var(--charcoal);
  box-shadow: 2px 2px 0 var(--charcoal);
}

.sheet {
  padding: 36px 0 12px;
}

.sheet + .sheet {
  border-top: 3px solid var(--charcoal);
}

.sheet h2 {
  position: relative;
  z-index: 0;
  padding-top: 6px;
}

.sheet h2::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8px;
  left: -10px;
  width: 4.5em;
  height: 1.5em;
  background: var(--pink-dots);
}

.sheet:nth-of-type(even) h2::before {
  background: var(--teal-dots);
}

.map {
  max-width: 720px;
  margin: 8px auto 36px;
}

.map svg {
  width: 100%;
}

.map text {
  font-family: var(--poster);
}

.map a:hover .plate,
.map a:focus-visible .plate {
  fill: var(--straw);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 3px solid var(--charcoal);
  background: var(--stock);
  box-shadow: 6px 6px 0 var(--teal);
}

.card:hover,
.card:focus-within {
  box-shadow: 3px 3px 0 var(--teal);
}

.card img {
  width: 96px;
  height: 96px;
}

.card h3,
.card p,
.card ul {
  margin: 0;
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.by {
  font-family: var(--poster);
  font-weight: 700;
  color: var(--teal-ink);
}

.facts {
  padding-left: 1.2em;
  list-style: square;
}

.facts li::marker {
  color: var(--fluoro);
}

.pen-no {
  font-family: var(--poster);
  font-weight: 700;
  color: var(--overprint);
}

.rules {
  max-width: 44em;
  padding: 20px 20px 20px 48px;
  border: 3px solid var(--charcoal);
  background: var(--straw);
  font-family: var(--poster);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
  box-shadow: 6px 6px 0 var(--fluoro);
}

.rules li + li {
  margin-top: 10px;
}

.asked h3 {
  margin-top: 1.2em;
  font-size: 1.35rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--poster);
  font-weight: 700;
  font-size: 1rem;
}

.crumbs li {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.crumbs li + li::before {
  content: "\203A";
  margin: 0 10px;
  color: var(--overprint);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.pen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 16px 0 8px;
}

.pen-head img {
  width: 104px;
  height: 104px;
}

.pen-head h1,
.pen-head p {
  margin: 0;
}

.pen-frame {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 3 / 4;
  min-height: 480px;
  margin: 24px 0 14px;
  border: 3px solid var(--charcoal);
  background: var(--teal-dots), var(--stock);
  box-shadow: 6px 6px 0 var(--fluoro);
}

.pen-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.frame-wait {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
}

.frame-wait span {
  max-width: 26em;
  padding: 16px 20px;
  border: 3px solid var(--charcoal);
  background: var(--stock);
  font-family: var(--poster);
  font-weight: 700;
  text-align: center;
}

.frame-line {
  max-width: 1000px;
  font-size: 1rem;
}

.table-wrap {
  max-width: 100%;
  margin: 0 0 20px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid var(--charcoal);
}

th,
td {
  padding: 10px 12px;
  border: 2px solid var(--charcoal);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--straw);
  font-family: var(--poster);
  font-weight: 700;
}

.pen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 0;
  list-style: none;
}

.programme {
  display: grid;
  gap: 32px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.card-wide img {
  width: 128px;
  height: 128px;
}

.legal {
  max-width: 48em;
}

code {
  padding: 0 4px;
  background: var(--straw);
  font-family: Consolas, "Courier New", monospace;
  font-size: 1em;
}

.legal h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.dated {
  font-family: var(--poster);
  font-weight: 700;
  color: var(--overprint);
}

.form {
  display: grid;
  gap: 6px;
  max-width: 36em;
  margin: 8px 0 24px;
  padding: 20px;
  border: 3px solid var(--charcoal);
  box-shadow: 6px 6px 0 var(--teal);
}

.form label {
  margin-top: 10px;
  font-family: var(--poster);
  font-weight: 700;
  font-size: 1.0625rem;
}

.form input,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 3px solid var(--charcoal);
  border-radius: 0;
  background: #fffdf8;
  color: var(--charcoal);
  font-family: var(--print);
  font-size: 1.125rem;
}

.form .btn {
  justify-self: start;
  margin-top: 16px;
}

.foot {
  position: relative;
  margin-top: 56px;
  padding: 44px 0 28px;
  background: var(--teal-ink);
  color: var(--stock);
}

.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: var(--pink-dots);
}

.foot a {
  color: var(--stock);
}

.foot a:hover {
  color: var(--stock);
  text-decoration-thickness: 4px;
}

.foot :focus-visible {
  outline-color: var(--straw);
}

.foot-mark {
  margin: 0 0 8px;
  font-family: var(--poster);
  font-weight: 800;
  font-size: clamp(2rem, 10vw, 5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--fluoro);
}

.foot-line {
  max-width: 40em;
}

.foot-cols {
  display: grid;
  gap: 20px;
  margin: 28px 0;
}

.foot h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  color: var(--stock);
  text-shadow: 2px 2px 0 var(--fluoro);
}

.foot-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.pledges {
  max-width: 50em;
  padding: 16px 16px 16px 40px;
  border: 3px solid var(--stock);
  list-style: square;
}

.pledges li + li {
  margin-top: 8px;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}

.foot-base p {
  margin: 0;
}

.badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--fluoro);
  color: var(--charcoal);
  font-family: var(--poster);
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 4px 4px 0 var(--teal);
}

.reset {
  min-height: 44px;
  padding: 6px 14px;
  border: 3px solid var(--stock);
  border-radius: 0;
  background: transparent;
  color: var(--stock);
  font-family: var(--poster);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.reset:hover {
  background: var(--stock);
  color: var(--teal-ink);
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: 16px;
  overflow-y: auto;
  background: radial-gradient(circle, rgba(0, 120, 191, 0.6) 2.6px, transparent 3px) 0 0 / 11px 11px, rgba(43, 43, 43, 0.3);
}

.gate:not([hidden]) {
  display: flex;
}

.pass {
  width: 100%;
  max-width: 440px;
  margin: auto;
  border: 4px solid var(--charcoal);
  background: var(--stock);
  box-shadow: 8px 8px 0 var(--teal);
}

.pass-band {
  margin: 0;
  padding: 10px 20px;
  border-bottom: 3px solid var(--charcoal);
  background: var(--fluoro);
  color: var(--charcoal);
  font-family: var(--poster);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.2em;
}

.pass-body {
  padding: 12px 20px 24px;
}

.pass-age {
  margin: 0;
  font-family: var(--poster);
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  color: var(--teal-ink);
  text-shadow: 3px 3px 0 var(--fluoro);
}

.pass-go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.pass-go a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--poster);
  font-weight: 700;
}

.notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 14px 16px;
  border-top: 3px solid var(--charcoal);
  background: var(--teal-ink);
  color: var(--stock);
}

.notice:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}

.notice p {
  max-width: 60em;
  margin: 0;
  font-size: 1rem;
}

.notice a {
  color: var(--stock);
}

.cuppa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  max-width: min(340px, calc(100% - 32px));
  padding: 18px;
  border: 3px solid var(--charcoal);
  background: var(--straw);
  font-family: var(--poster);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
  box-shadow: 6px 6px 0 var(--fluoro);
}

.cuppa p {
  margin: 0 0 14px;
}

@media (min-width: 700px) {
  .wrap {
    padding: 0 24px;
  }

  .pen-frame {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .card-wide {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: start;
    gap: 14px 28px;
  }

  .card-wide img {
    grid-row: span 6;
  }

  .card-wide .btn {
    justify-self: start;
  }

  .foot-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero::before {
    width: 58%;
    height: 260px;
  }
}

@media (min-width: 960px) {
  .masthead nav {
    flex-basis: auto;
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }
}
