/* The public website's styles (site/build.mjs, docs/website.md). Brand colours from brand/colours; light follows
   cream and plum, dark follows deep plum and gold. Text pairs meet WCAG AA (4.5:1) in both. No script. */
@font-face {
  font-family: 'Inter';
  src: url('/site/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/site/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/site/fonts/playfair-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --plum: #4a2868;
  --deep-plum: #341a4d;
  --gold: #f2c96a;
  --deep-gold: #e2a944;
  --sage: #8fbf99;
  --cream: #fff3da;
  --parchment: #f1e2c2;
  --ink: #241432;

  --bg: var(--cream);
  --bg-band: var(--plum);
  --surface: #fffaf0;
  --line: #e3cfa6;
  --text: var(--ink);
  --muted: #5a4a66;
  --heading: var(--plum);
  --link: #5e3783;
  --btn-bg: var(--plum);
  --btn-text: var(--cream);
  --quiet-bg: transparent;
  --quiet-text: var(--plum);
  --focus: var(--plum);
  --ic-bg: var(--gold);
  --ic-fg: var(--plum);
  --note-bg: #fbe9bf;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #241432;
    --bg-band: #341a4d;
    --surface: #2f1c42;
    --line: #4d3466;
    --text: #f6ead3;
    --muted: #d4c3e0;
    --heading: var(--gold);
    --link: var(--gold);
    --btn-bg: var(--gold);
    --btn-text: var(--ink);
    --quiet-text: var(--gold);
    --focus: var(--gold);
    --ic-bg: var(--plum);
    --ic-fg: var(--gold);
    --note-bg: #3d2654;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 1.0625rem/1.6 Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin-top: 1.4em;
}
h3 {
  font-size: 1.35rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
}
.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
}
.narrow {
  max-width: 50rem;
}
.section {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
.center {
  text-align: center;
}
.small {
  font-size: 0.9375rem;
  color: var(--muted);
}
.lead {
  font-size: 1.2rem;
  max-width: 40em;
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  padding-top: max(0.5rem, env(safe-area-inset-top));
  padding-bottom: 0.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--heading);
  font:
    700 1.4rem/1 'Playfair Display',
    Georgia,
    serif;
}
.nav {
  order: 3;
  flex-basis: 100%;
}
.nav ul,
.foot-links,
.langs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}
.nav a,
.foot-links a,
.langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}
.nav a:hover,
.foot-links a:hover,
.langs a:hover {
  text-decoration: underline;
}
.nav a[aria-current='page'],
.langs a[aria-current] {
  font-weight: 600;
  color: var(--heading);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--deep-gold);
}
.top .btn-small {
  margin-left: auto;
}
@media (min-width: 60rem) {
  .nav {
    order: 0;
    flex-basis: auto;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--btn-bg);
}
.btn:hover {
  filter: brightness(1.08);
}
.btn-small {
  min-height: 44px;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
}
.btn-quiet {
  background: var(--quiet-bg);
  color: var(--quiet-text);
  border-color: currentColor;
}
.btn .ic-bg {
  fill: var(--btn-text);
  opacity: 0.18;
}
.btn .ic-fg {
  stroke: var(--btn-text);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  margin: 0;
  padding: 0.5rem 1.1rem;
  border: 2px dashed var(--line);
  border-radius: 12px;
  font-weight: 600;
}
.badge img {
  display: block;
  height: 54px;
  width: auto;
}

/* Icons: two-tone, the theme's own colours */
.ic {
  flex: none;
}
.ic-bg {
  fill: var(--ic-bg);
}
.ic-fg {
  stroke: var(--ic-fg);
}
.ic-fg-fill {
  fill: var(--ic-fg);
}

/* Home */
.hero {
  padding: 2.5rem 0 1rem;
}
.hero-in {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
}
.switch-line {
  color: var(--muted);
}
.hero-img {
  justify-self: center;
  max-width: 20rem;
}
.shot {
  display: block;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgb(36 20 50 / 0.25);
}
@media (min-width: 48rem) {
  .hero-in {
    grid-template-columns: 1.2fr 1fr;
  }
}
.band {
  background: var(--bg-band);
  color: var(--cream);
  margin: 1.5rem 0 0;
}
.band .ic-bg {
  fill: var(--gold);
}
.band .ic-fg {
  stroke: var(--plum);
}
.promises {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin: 0 auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-weight: 600;
}
.promises li,
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.ticks li {
  margin-bottom: 0.6rem;
}
.ticks .ic {
  margin-top: 0.15rem;
}

/* Features */
.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-of-type {
  border-bottom: 0;
}
.feature-img {
  justify-self: center;
  max-width: 17rem;
}
.feature h2 {
  margin-top: 0;
}
@media (min-width: 48rem) {
  .feature {
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
  }
  .feature.flip .feature-text {
    order: 2;
  }
  .feature.no-img {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.card h2 {
  margin-top: 0;
  font-size: 1.4rem;
}
.notify {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}
.two {
  display: grid;
  gap: 0 1.5rem;
}
@media (min-width: 48rem) {
  .two {
    grid-template-columns: 1fr 1fr;
  }
}
.note {
  background: var(--note-bg);
  border-left: 4px solid var(--deep-gold);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

/* Switching */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 4.25rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.4rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ic-bg);
  color: var(--ic-fg);
  font-weight: 600;
}

/* Support */
.faq-topic {
  margin-bottom: 1.5rem;
}
.faq-topic h3 {
  margin-top: 1.5rem;
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-weight: 600;
  list-style-position: outside;
}
summary::-webkit-details-marker {
  color: var(--deep-gold);
}
details p {
  margin: 0 0 1rem;
}

/* Press */
.logos,
.shots {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}
.logo-card {
  margin: 0;
  text-align: center;
}
.logo-card img {
  height: 72px;
  width: auto;
  margin: 0.5rem auto 1rem;
  display: block;
}
.logo-card.on-dark {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}
.logo-card.on-dark .small,
.logo-card.on-dark a {
  color: var(--cream);
}
.shots {
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
}
.shots a {
  display: grid;
  gap: 0.4rem;
  text-align: center;
  font-weight: 600;
}
.thumb {
  border-radius: 12px;
  border: 1px solid var(--line);
}
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
}
.facts dt {
  font-weight: 600;
}
.facts dd {
  margin: 0;
}

/* Legal */
.legal h2 {
  font-size: 1.35rem;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.5rem 0 max(2rem, env(safe-area-inset-bottom));
}
.foot .small {
  margin: 0.5rem 0.6rem 0;
}
.langs {
  margin-top: 0.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
