@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #171a4a;
  --night-soft: #2a2e6e;
  --sun: #ffc531;
  --sun-light: #ffd669;
  --paper: #f6f7fc;
  --white: #ffffff;
  --ink: #14163a;
  --muted: #565a7d;
  --rule: #d5d9ec;
  --link: #3a33c4;
  --error: #a8201a;
  --on-night: #dfe2f6;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --page: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 2px; }
.on-paper :focus-visible { outline-color: var(--link); }
[hidden] { display: none !important; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--sun); color: var(--ink);
  padding: 0.5rem 0.9rem; font-family: var(--display); font-weight: 600;
  text-decoration: none; z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Opening: night field with the sun coming up over the fold */
.opening {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
}
.sun {
  position: absolute;
  width: clamp(20rem, 46vw, 42rem);
  aspect-ratio: 1;
  right: -6vw;
  bottom: 0;
  border-radius: 50%;
  background: var(--sun);
  transform: translateY(46%);
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from { transform: translateY(100%); }
  to { transform: translateY(46%); }
}

.masthead {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
  font-family: var(--display);
}
.wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.masthead nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); font-size: 1rem; font-weight: 500; }
.masthead nav a { text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.masthead nav a:hover { border-bottom-color: var(--sun); }

.pitch {
  position: relative;
  padding-block: clamp(3.5rem, 11vw, 9rem) clamp(15rem, 26vw, 19rem);
}
.pitch h1 {
  max-width: 13.5em;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.6vw, 5.75rem);
  font-weight: 700;
  font-stretch: 82%;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.pitch h1 span { display: block; }
.pitch h1 span + span { margin-top: 0.14em; }
.pitch .lede {
  max-width: 31rem;
  margin-top: 2rem;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--on-night);
}

/* Shorter opening used on the inner pages */
.page-title { position: relative; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-title h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  font-weight: 700;
  font-stretch: 82%;
  line-height: 1;
  letter-spacing: -0.035em;
}
.page-title p { max-width: 36rem; margin-top: 1.25rem; color: var(--on-night); }

.button {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.85rem 1.5rem 0.95rem;
  border: 0;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.button:hover { background: var(--sun-light); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Sections on paper */
.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band + .band { border-top: 1px solid var(--rule); }
.band h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18em;
  text-wrap: balance;
}
.band .intro { max-width: 38rem; margin-top: 1.25rem; color: var(--muted); }

.practices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(3rem, 7vw, 6rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.practice h3 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.practice > p { margin-top: 0.75rem; color: var(--muted); max-width: 30rem; }
.practice ul { margin-top: 1.75rem; border-top: 2px solid var(--ink); }
.practice li { padding-block: 1.1rem 1.2rem; border-bottom: 1px solid var(--rule); }
.practice li strong {
  display: block;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}
.practice li span { display: block; margin-top: 0.2rem; font-size: 1.0625rem; line-height: 1.5; color: var(--muted); }

/* The problems people arrive with, set as things they say */
.signs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  column-gap: clamp(3rem, 7vw, 6rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 2px solid var(--ink);
}
.signs li { padding-block: 1.4rem 1.5rem; border-bottom: 1px solid var(--rule); }
.signs q {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  font-stretch: 90%;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.signs span { display: block; margin-top: 0.45rem; font-size: 1.0625rem; line-height: 1.5; color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--sun);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
}
.steps h3 {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.steps p { margin-top: 0.5rem; font-size: 1.0625rem; line-height: 1.55; color: var(--muted); }

/* Heading on the left, running text on the right */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split .body p { max-width: 36rem; }
.split .body p + p { margin-top: 1.1rem; }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.15rem 1.25rem;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--link);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--link); }
.faq .answer { max-width: 36rem; padding-bottom: 1.5rem; font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }
.faq .answer a { color: var(--link); }

/* Long-form pages: privacy, terms */
.prose { max-width: 42rem; padding-block: clamp(3rem, 7vw, 5.5rem); }
.prose h2 {
  margin-top: 2.75rem;
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--link); }
.prose .updated { color: var(--muted); font-size: 1.0625rem; }

/* Enquiry form, used in the pop-up and on the contact page */
.enquiry { display: grid; gap: 1.25rem; }
.enquiry label { display: block; font-family: var(--display); font-size: 1rem; font-weight: 600; }
.enquiry input, .enquiry textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #9aa0c4;
  border-radius: 8px;
  background: var(--white);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.4;
}
.enquiry textarea { min-height: 9rem; resize: vertical; }
.enquiry input:focus-visible, .enquiry textarea:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 1px;
  border-color: var(--link);
}
.enquiry .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .button { margin-top: 0.25rem; justify-self: start; }
.enquiry .note { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.enquiry .note a { color: var(--link); }
.enquiry .problem {
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--error);
  background: #fbecea;
  color: var(--error);
  font-size: 1.0625rem;
  line-height: 1.45;
}
.sent h2, .sent h3 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sent p { margin-top: 0.75rem; overflow-wrap: anywhere; }

.contact-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
.contact-dialog::backdrop { background: rgba(23, 26, 74, 0.72); }
.contact-dialog .inner { padding: clamp(1.5rem, 5vw, 2.5rem); }
.contact-dialog .top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.contact-dialog h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.contact-dialog .close {
  padding: 0.25rem 0;
  border: 0;
  background: none;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.contact-dialog .lead { margin-top: 0.6rem; margin-bottom: 1.5rem; font-size: 1.0625rem; color: var(--muted); }

/* Closing: back to night */
.closing { background: var(--night); color: var(--paper); }
.contact { padding-block: clamp(4rem, 10vw, 8rem) clamp(3.5rem, 7vw, 6rem); }
.contact h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.contact p { max-width: 34rem; margin-top: 1.25rem; color: var(--on-night); }

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--night-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #b9bde0;
}
.legal .company { max-width: 44rem; }
.legal .company p + p { margin-top: 0.35rem; }
.legal nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; align-content: start; font-family: var(--display); font-weight: 500; }
.legal nav a { color: var(--paper); text-underline-offset: 0.2em; }
.legal nav a:hover { color: var(--sun); }

/* Bare pages: not found, thanks, form error */
body.plain {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--night);
  color: var(--paper);
  text-align: center;
}
body.plain h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 3.75rem);
  font-weight: 700;
  font-stretch: 82%;
  letter-spacing: -0.035em;
  line-height: 1;
}
body.plain p { max-width: 30rem; margin: 1.1rem auto 0; color: var(--on-night); }
body.plain a { color: var(--sun); }

@media (max-width: 44rem) {
  .masthead nav a.optional { display: none; }
  .sun { right: -18vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun { animation: none; }
  .button, .faq summary::after { transition: none; }
}
