/* unyxie.co.uk. The colours, type and radii are the Unyxie design system's
   tokens, and the pink is spent once, on the opening. */

@font-face { font-family: Archivo; src: url(/fonts/archivo-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/archivo-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/archivo-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --pink: #ce22c4;
  --pink-deep: #9c1795;
  --pink-tint: #fae9f9;
  --ink: #000;
  --ground: #fff;
  --muted: #555;
  --line: #d0d0d0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --sans: Archivo, system-ui, sans-serif;
  /* The made-up hall's own colour, as a client would set it. */
  --hall: #1d3557;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/26px var(--sans); color: var(--ink); background: var(--ground); }
img, svg { display: block; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 10; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--ground); color: var(--ink); font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 720px) { .wrap { padding: 0 48px; } }

h1, h2, h3 { font-weight: 800; margin: 0; }
h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -0.02em; max-width: 16em; margin-bottom: 32px; }
h3 { font-size: 20px; line-height: 26px; letter-spacing: -0.005em; margin-bottom: 8px; }
p { margin: 0 0 16px; }

/* Buttons: one size, always side by side. */
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 176px)); gap: 12px; }
.button { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border: 2px solid; border-radius: var(--radius-md); font: 600 16px/1 var(--sans); text-decoration: none; }
.button.solid { background: var(--ground); border-color: var(--ground); color: var(--ink); }
.button.solid:hover { background: var(--pink-tint); border-color: var(--pink-tint); }
.button.outline { background: transparent; border-color: var(--ground); color: var(--ground); }
.button.outline:hover { background: var(--pink-deep); border-color: var(--ground); }
.button.solid.dark { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.button.solid.dark:hover { background: var(--pink-deep); border-color: var(--pink-deep); }
.button.outline.dark { border-color: var(--ink); color: var(--ink); }
.button.outline.dark:hover { background: var(--pink-tint); }

/* The opening: the one pink field. White on it is 4.5:1. */
.hero { background: var(--pink); color: var(--ground); padding-bottom: 80px; }
.hero :focus-visible { outline-color: var(--ground); }
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.bar img { width: auto; height: 40px; }
.signin { color: var(--ground); font-weight: 600; text-decoration: none; padding: 10px 0; }
.signin:hover { text-decoration: underline; }

.opening { display: grid; gap: 56px; padding-top: 40px; }
@media (min-width: 1000px) { .opening { grid-template-columns: minmax(0, 1fr) 392px; align-items: center; gap: 72px; padding-top: 56px; } }
h1 { font-size: clamp(46px, 6.4vw, 80px); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 28px; max-width: 8.2em; }
.lede { font-size: 20px; line-height: 30px; max-width: 30em; margin-bottom: 36px; }
.price-line { font-size: 17px; font-weight: 600; margin: 24px 0 0; }

/* The example: the real box's shape and words, in the made-up hall's colour. */
.example { margin: 0; }
.example figcaption { margin-top: 16px; font-size: 14px; line-height: 20px; }
.box { max-width: 392px; border-radius: 28px; overflow: hidden; background: var(--ground); color: #22302a; }
.box-head { display: flex; align-items: flex-end; gap: 12px; height: 96px; padding: 0 22px 36px; background: var(--hall); color: var(--ground); }
.box-logo { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--ground); color: var(--hall); }
.box-name { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; }
.box-body { position: relative; margin-top: -24px; border-radius: 24px 24px 0 0; background: var(--ground); }
.log { display: flex; flex-direction: column; gap: 10px; height: 420px; overflow-y: auto; padding: 22px 18px 12px; overscroll-behavior: contain; }
.log:focus { outline: none; }
.msg { margin: 0; max-width: 88%; padding: 10px 15px; border-radius: 20px; font-size: 15px; line-height: 21px; }
.msg.bot { align-self: flex-start; background: #f0f4f2; color: #22302a; border-bottom-left-radius: 6px; }
.msg.you { align-self: flex-end; background: var(--hall); color: var(--ground); border-bottom-right-radius: 6px; font-weight: 600; }
.runners { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 92%; }
.runners-label { margin: 2px 0 0 4px; font-size: 12.5px; line-height: 17px; font-weight: 600; color: #5f6d68; }
.runner { padding: 8px 14px; border: 1.5px solid #e2e8e5; border-radius: 16px; background: var(--ground); color: #22302a; font: 400 14px/19px var(--sans); text-align: left; }
.runner.route { border-color: #b9c3d0; background: #f1f3f6; color: var(--hall); font-weight: 600; }
button.runner { cursor: pointer; }
button.runner:hover { border-color: var(--hall); }
.enq-intro { margin: 0; max-width: 88%; font-size: 14px; line-height: 20px; color: #22302a; }
.enq-note { margin: 0; font-size: 12.5px; line-height: 17px; color: #5f6d68; }
.seeds { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.seed { padding: 8px 14px; border: 1.5px solid #e2e8e5; border-radius: 999px; background: var(--ground); color: #22302a; font: 600 13.5px/18px var(--sans); cursor: pointer; }
.seed:hover { border-color: var(--hall); }
.box :focus-visible { outline: 2px solid var(--hall); outline-offset: 2px; }
.ask { display: flex; align-items: center; gap: 8px; margin: 0 14px 10px; padding: 5px 5px 5px 16px; border: 1.5px solid #e2e8e5; border-radius: 999px; color: #66706c; font-size: 15px; }
.ask .input { flex: 1; }
.ask .send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hall); color: var(--ground); }
.notice { margin: 0; padding: 0 18px 2px; font-size: 12px; line-height: 17px; text-align: center; color: #5f6d68; }
.credit { margin: 0; padding: 2px 18px 14px; font: 500 10.5px/15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.02em; text-align: center; color: #5f6d68; }

/* The sections after it. */
section { padding: 72px 0; }
@media (min-width: 720px) { section { padding: 104px 0; } }
.split { display: grid; gap: 40px; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 80px; align-items: start; } }
.copy p { max-width: 36em; }
.copy h2 { margin-bottom: 28px; }

.proof { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.proof .msg { max-width: 92%; }
.article { padding: 24px; border-radius: var(--radius-lg); background: var(--pink-tint); }
.article-title { margin-bottom: 8px; font-size: 18px; line-height: 24px; font-weight: 800; }
.article p:last-child { margin: 0; }
.article mark { background: none; color: inherit; font-weight: 600; text-decoration: underline 3px var(--pink); text-underline-offset: 5px; text-decoration-skip-ink: none; }
.proof figcaption { font-size: 14px; line-height: 21px; color: var(--muted); }

.rules { padding-top: 0; }
.grid { display: grid; gap: 0 56px; }
@media (min-width: 800px) { .grid { grid-template-columns: 1fr 1fr; } }
.grid > div { padding: 24px 0 8px; border-top: 1px solid var(--line); }
.grid p { max-width: 34em; }

.start { padding-top: 0; }
.steps { display: grid; gap: 0 40px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 24px 0 8px; border-top: 1px solid var(--line); }
.n { display: block; margin-bottom: 12px; font-size: 44px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; color: var(--pink-deep); }
.after { max-width: 44em; margin-top: 24px; color: var(--muted); }

.case { background: var(--pink-tint); }
.case h2 { margin-bottom: 0; }
.case p { color: var(--ink); }

.price h2 { font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -0.03em; max-width: 9em; }
.lede-dark { font-size: 20px; line-height: 30px; margin-bottom: 16px; }
.nordra { margin-bottom: 32px; }
.covers ul { margin: 0; padding: 0 0 0 20px; }
.covers li { margin-bottom: 8px; }
.covers li::marker { color: var(--pink-deep); }

.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; line-height: 22px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-row img { width: auto; height: 32px; }
.foot-row p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--ink); }
.foot .small { width: 100%; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* A page of words, such as the accessibility statement: the opening's pink
   kept to a band, and the text at a line length that reads. */
.hero.slim { padding-bottom: 48px; }
.hero.slim h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1; margin: 16px 0 0; max-width: 12em; }
.doc { padding: 56px 0 72px; }
.doc .wrap > * { max-width: 40em; }
.doc h2 { font-size: 28px; line-height: 34px; margin: 40px 0 12px; }
.doc ul { margin: 0 0 16px; padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc .small { color: var(--muted); font-size: 14px; margin-top: 40px; }

/* The page a confirmation link opens. */
.confirm .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.confirm button.button { cursor: pointer; }
.confirm button.button:disabled { opacity: .6; cursor: default; }
.confirm .said { font-size: 20px; line-height: 30px; }
.confirm .bad { color: var(--ink); border-left: 4px solid var(--pink-deep); padding-left: 16px; }
