/* ==========================================================================
   Campaign page - same colours, panels and lettering as the election poster.
   To change a colour everywhere, change it once in the ":root" block below.
   ========================================================================== */

/* ---------- fonts (the files are in the "fonts" folder) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-800-italic.woff") format("woff"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-900.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros Condensed"; src: url("../fonts/heros-condensed-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- poster colours ---------- */
:root {
  color-scheme: light;
  color-scheme: only light;   /* phones should not turn the page dark by themselves */
  --navy: #14213D;
  --red: #E63329;
  --red-dark: #D62A21;
  --blue: #1F5FD1;
  --yellow: #FFC72C;
  --paper: #EDF0F5;
  --white: #FFFFFF;
  --line: 3px;            /* thickness of the panel outlines */
  --gap: 16px;            /* space between panels */
}

/* ---------- basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20, 33, 61, .09) 1.5px, transparent 1.9px);
  background-size: 15px 15px;
  color: var(--navy);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
}
/* a soft scatter of poster shapes down both sides of the page (only where the screen is wider than the text) */
body::before, body::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: -1; pointer-events: none;
  width: max(0px, calc((100vw - 1040px) / 2 + 14px));
  background-image: url("../img/pattern.svg"); background-size: 440px 440px;
}
body::before { left: 0; background-position: left 0 top 0; -webkit-mask-image: linear-gradient(to right, #000 62%, transparent); mask-image: linear-gradient(to right, #000 62%, transparent); }
body::after { right: 0; background-position: left -286px top 220px; -webkit-mask-image: linear-gradient(to left, #000 62%, transparent); mask-image: linear-gradient(to left, #000 62%, transparent); }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
b, strong { font-weight: 800; }
svg { display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 16px 16px 40px; }
.wrap > * + * { margin-top: var(--gap); }

/* lettering */
.blk { font-family: "Inter Display", "Inter", "Arial Black", sans-serif; font-weight: 900; letter-spacing: -.02em; }
.cn { font-family: "Heros Condensed", "Arial Narrow", "Inter", sans-serif; font-weight: 700; text-transform: uppercase; }

/* the outlined boxes */
.panel { border: var(--line) solid var(--navy); background: var(--white); overflow: hidden; }

/* the yellow caption labels */
.tag {
  display: inline-block; background: var(--yellow); color: var(--navy);
  font-weight: 800; font-style: italic; font-size: 15px; line-height: 1.15;
  padding: 6px 12px 7px;
}

/* line icons */
.ico { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.head { position: relative; background: var(--navy); color: var(--white); }
.head .dots {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.6px, transparent 2px);
  background-size: 15px 15px;
}
.head .txt { position: relative; z-index: 2; padding: 18px 18px 22px; }
.head .name { font-size: clamp(46px, 14.5vw, 88px); line-height: .92; margin-top: 16px; overflow-wrap: break-word; }
/* for a long name: write class="cn name long" in index.html and the name gets smaller */
.head .name.long { font-size: clamp(32px, 9.6vw, 58px); line-height: .96; }
.head .slogan { color: var(--yellow); font-size: clamp(26px, 7.4vw, 44px); line-height: 1.04; margin-top: 14px; }
.head .role { font-weight: 700; font-size: 16px; line-height: 1.3; margin-top: 12px; }
.head .rays {
  position: relative; z-index: 1; height: 190px;
  background-color: var(--red);
  background-image: repeating-conic-gradient(from 0deg at 62% 60%, var(--red) 0 10deg, var(--red-dark) 10deg 20deg);
  clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%);
  display: grid; place-items: center; padding-top: 22px;
}
.bubble {
  position: relative; display: inline-block; background: var(--white); color: var(--navy);
  border: var(--line) solid var(--navy); border-radius: 22px;
  font-family: "Inter Display", "Inter", "Arial Black", sans-serif; font-weight: 900; letter-spacing: -.02em;
  font-size: clamp(22px, 6vw, 34px); line-height: 1.05; text-align: center;
  padding: 14px 22px 16px; transform: rotate(-3deg);
}
.bubble::after {
  content: ""; position: absolute; left: 30px; bottom: -13px; width: 22px; height: 22px;
  background: var(--white); border-right: var(--line) solid var(--navy); border-bottom: var(--line) solid var(--navy);
  transform: skewX(28deg) rotate(45deg);
}

/* ---------- strengths ---------- */
.pow .l { background: var(--blue); color: var(--white); padding: 12px 18px 13px; }
.pow .l h2 { font-size: 26px; line-height: 1.04; }
.pow .l br { display: none; }
.pow .r { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.pow .r li {
  display: flex; align-items: center; gap: 6px; flex: 1 1 auto; justify-content: center;
  border: 2px solid var(--navy); border-radius: 999px; padding: 7px 14px 8px 11px;
  font-weight: 700; font-size: 16px; line-height: 1.1; white-space: nowrap;
}
.pow .r svg { width: 17px; height: 17px; color: var(--yellow); flex: none; }

/* ---------- plain text blocks ---------- */
.hello { font-size: 18px; line-height: 1.5; padding: 4px 2px 0; }
.hello p + p { margin-top: 10px; }

/* ---------- section headings ---------- */
.mh { position: relative; padding: 14px 2px 0; }
/* three stars next to each big heading */
.mh::after { content: ""; position: absolute; right: 0; top: 6px; width: 13vw; height: 7.8vw; background: url("../img/stars.svg") no-repeat right top / contain; pointer-events: none; }
.mh h2, .mh p { position: relative; z-index: 1; }
.mh h2 { color: var(--red); font-size: clamp(30px, 9.4vw, 64px); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
.mh p { font-weight: 700; font-size: 19px; line-height: 1.3; margin-top: 6px; }

/* ---------- the four programme cards ---------- */
.cards { display: grid; gap: var(--gap); }
.card { display: grid; grid-template-columns: 76px 1fr; text-decoration: none; }
.card .ic { display: grid; place-items: center; color: var(--white); padding: 0 16px; }
.card .tx { padding: 15px 16px 17px; }
.card h3 { font-size: 26px; line-height: 1.04; text-transform: uppercase; }
.card p { font-size: 16.5px; line-height: 1.38; margin-top: 8px; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 15px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card:hover .more, .card:focus-visible .more { color: var(--red); }

/* the four poster colours, used for icons and small markers */
.c-red { --c: var(--red); --on: var(--white); }
.c-blue { --c: var(--blue); --on: var(--white); }
.c-navy { --c: var(--navy); --on: var(--white); }
.c-yellow { --c: var(--yellow); --on: var(--navy); }
.c-red .ic, .c-blue .ic, .c-navy .ic, .c-yellow .ic { background: var(--c); color: var(--on); }


/* ---------- one idea in detail ---------- */
.idea { position: relative; scroll-margin-top: 12px; }
.idea > * { position: relative; z-index: 1; }
/* the picture in the background of each idea (the files are in the "img" folder) */
.idea::after {
  content: ""; position: absolute; z-index: 0; right: -14px; bottom: -10px; width: 250px; height: 250px;
  background: no-repeat center / contain; opacity: .13; pointer-events: none;
}
.v-voice::after { background-image: url("../img/voice-box.svg"); }
.v-skills::after { background-image: url("../img/skills-workshop.svg"); }
.v-ai::after { background-image: url("../img/ai-week.svg"); }
.v-festival::after { background-image: url("../img/festival.svg"); }
.v-tutoring::after { background-image: url("../img/tutoring.svg"); }
.v-buddy::after { background-image: url("../img/buddy.svg"); }
.v-calm::after { background-image: url("../img/exam-calm.svg"); }
.idea .ih { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; border-bottom: var(--line) solid var(--navy); }
.idea .ih .ic { display: grid; place-items: center; padding: 0 13px; }
.idea .ih .it { padding: 13px 8px 15px 13px; }
/* the small, fully visible drawing in the right corner of the title box */
.idea .ih .pic { align-self: center; width: clamp(56px, 19vw, 92px); height: auto; margin: 8px 11px 8px 0; }
.idea .kick { font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.idea h3 { font-size: clamp(21px, 6.3vw, 38px); line-height: 1.02; text-transform: uppercase; margin-top: 4px; overflow-wrap: break-word; }
.idea .nm { font-weight: 800; font-size: 17px; line-height: 1.25; margin-top: 6px; }


.idea .body { display: grid; gap: 18px; padding: 18px 18px 24px; }
.idea h4 { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.idea h4::before { content: ""; width: 12px; height: 12px; background: var(--c); border: 2px solid var(--navy); flex: none; }
.idea .s p + p { margin-top: 8px; }
.idea .s ul li { position: relative; padding-left: 20px; }
.idea .s ul li + li { margin-top: 6px; }
.idea .s ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }

/* ---------- the vote box across the bottom ---------- */
.vote {
  background: var(--red); color: var(--white); text-align: center;
  display: flex; flex-direction: column; align-items: center; padding: 24px 16px 26px;
}
.vote .seal {
  width: 96px; height: 96px; flex: none; margin-bottom: 14px; background: var(--yellow); color: var(--navy);
  clip-path: polygon(50% 0,60% 12%,75% 7%,78% 22%,93% 25%,88% 40%,100% 50%,88% 60%,93% 75%,78% 78%,75% 93%,60% 88%,50% 100%,40% 88%,25% 93%,22% 78%,7% 75%,12% 60%,0 50%,12% 40%,7% 25%,22% 22%,25% 7%,40% 12%);
  display: grid; place-items: center; padding: 25px;
}
.vote .seal .ico { stroke-width: 3.2; }
.vote .t b { display: block; font-family: "Inter Display", "Inter", "Arial Black", sans-serif; font-weight: 900; font-size: clamp(34px, 11.6vw, 60px); line-height: 1; letter-spacing: -.04em; word-spacing: .08em; white-space: nowrap; }
.vote .t i { display: block; font-style: normal; font-weight: 800; font-size: clamp(20px, 6vw, 26px); line-height: 1.1; margin-top: 8px; color: var(--yellow); }

/* ---------- small print ---------- */
.note { padding: 16px 18px 18px; }
.note p { margin-top: 10px; }
.foot { font-weight: 700; font-size: 15px; text-align: center; padding-top: 6px; }

/* ---------- very narrow phones: the small label above each title only says "Idea 1" ---------- */
@media (max-width: 374px) {
  .idea .kick .sec { display: none; }
}

/* ---------- wider screens (tablet, laptop) ---------- */
@media (min-width: 760px) {
  :root { --gap: 20px; }
  body { font-size: 18px; }
  .wrap { padding: 28px 24px 56px; }

  .head { min-height: 360px; }
  .head .txt { width: 51%; padding: 26px 0 30px 30px; }
  .head .name { font-size: 88px; margin-top: 22px; }
  .head .name.long { font-size: 58px; }
  .head .slogan { font-size: 44px; }
  .head .role { font-size: 18px; }
  .head .rays {
    position: absolute; right: 0; top: 0; bottom: 0; width: 50%; height: auto; padding: 0 0 0 9%;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  }
  .bubble { font-size: 38px; padding: 18px 28px 21px; }

  .pow { display: grid; grid-template-columns: 196px 1fr; }
  .pow .l { display: flex; align-items: center; padding: 0 22px; }
  .pow .l h2 { font-size: 32px; }
  .pow .l br { display: inline; }
  .pow .r { padding: 16px; gap: 10px; }
  .pow .r li { font-size: 17.5px; padding: 8px 16px 9px 12px; }

  .hello { font-size: 20px; }
  .mh { padding-top: 22px; }
  .mh::after { width: 132px; height: 79px; top: 10px; }
  .mh p { font-size: 22px; }

  .cards { grid-template-columns: 1fr 1fr; }
  .card { grid-template-columns: 104px 1fr; }
  .card .ic { padding: 0 24px; }
  .card .tx { padding: 20px 22px 22px; }
  .card h3 { font-size: 30px; }
  .card p { font-size: 18px; }


  /* on wide screens the picture sits in the free space under the left column */
  .idea::after { width: 270px; height: 270px; right: auto; left: 13%; bottom: -16px; }
  .idea .ih { grid-template-columns: 112px minmax(0, 1fr) auto; }
  .idea .ih .ic { padding: 0 26px; }
  .idea .ih .it { padding: 20px 26px 22px; }
  .idea .ih .pic { width: 118px; margin: 10px 24px 10px 0; }
  .idea h3 { font-size: 38px; }
  .idea .kick { font-size: 13px; letter-spacing: .06em; }
  .idea .nm { font-size: 22px; }
  .idea .body { grid-template-columns: 1fr 1fr; gap: 22px 36px; padding: 24px 26px 32px; }
  .idea .s.full { grid-column: 1 / -1; }

  .note { padding: 22px 26px 24px; }
  .vote { flex-direction: row; justify-content: center; text-align: left; padding: 30px 26px; }
  .vote .seal { width: 136px; height: 136px; padding: 35px; margin: 0 30px 0 0; }
  .vote .t b { font-size: 88px; }
  .vote .t i { font-size: 32px; margin-top: 8px; }
}

/* printing on paper keeps the colours */
@media print {
  body { background: var(--white); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .idea, .card, .panel { break-inside: avoid; }
}
