/*
 * lumiguardian.com styles. Colours, fonts and voice: brand/README.md.
 * Fonts are self-hosted (no requests to other companies), licensed under the SIL OFL (fonts/OFL-*.txt).
 */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --snow: #faf6f7;      /* page background: the logo's own background, so the logo sits on it seamlessly */
  --white: #ffffff;
  --glacier: #7e9db0;   /* the sky behind Lumi in the logo */
  --fjord: #557587;     /* Lumi's speech bubbles and links; white text on it passes WCAG AA */
  --ink: #22323d;       /* text, the wordmark's slate */
  --ink-soft: #4f5f6a;  /* secondary text */
  --line: #dfe5e9;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.6;
}

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

a {
  color: var(--fjord);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--glacier);
  outline-offset: 3px;
  border-radius: 4px;
}

/* One centred column, 16px gutters on phones */
.page {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

/* Masthead: the full logo, nothing else */
.masthead {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.masthead a {
  border-radius: 1rem;
}

.masthead img {
  width: 12.5rem;
}

/* Hero */
.hero {
  margin-top: 0.5rem;
  text-align: center;
}

.hero h1 {
  max-width: 17ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 4.1rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hero .lede {
  max-width: 32em;
  margin: 1.5rem auto 0;
  color: var(--ink-soft);
  font-size: 1.25rem;
  text-wrap: pretty;
}

.hero .status {
  display: inline-block;
  margin: 1.75rem 0 0;
  padding: 0.45rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 1rem;
}

/* The product moment: Lumi warning about a website */
.moment {
  margin: 3.5rem 0 0;
}

.moment img {
  width: 100%;
  border-radius: 2rem;
}

/* Sections */
.section {
  margin-top: 6rem;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.section .intro {
  max-width: 30em;
  margin: 0.75rem auto 0;
  color: var(--ink-soft);
  text-align: center;
}

/* Where Lumi keeps watch: each channel with something Lumi might say there */
.watch-list {
  display: grid;
  gap: 2rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

.watch-item {
  display: grid;
  gap: 0.9rem;
}

.watch-item h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.watch-item svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--fjord);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bubble {
  position: relative;
  margin: 0;
  padding: 1rem 1.3rem;
  border-radius: 1.5rem;
  background: var(--fjord);
  color: var(--white);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* The bubble's tail points at the channel: up on phones, left on wider screens */
.bubble::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 1.6rem;
  width: 1rem;
  height: 1rem;
  border-radius: 2px;
  background: inherit;
  transform: rotate(45deg);
}

@media (min-width: 44rem) {
  .watch-item {
    grid-template-columns: 10.5rem 1fr;
    align-items: center;
    gap: 1.5rem;
  }

  .bubble::before {
    top: calc(50% - 0.5rem);
    left: -0.4rem;
  }
}

/* Lumi's promise */
.promise {
  text-align: center;
}

.promise img {
  width: 7rem;
  margin: 0 auto 1.5rem;
}

.promise p {
  max-width: 30em;
  margin: 1rem auto 0;
}

/* The promise ends like a signed letter */
.promise .always {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
}

/* Footer */
.footer {
  margin-top: 6rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-align: center;
}

.footer p {
  margin: 0.25rem 0;
}

/* 404 */
.not-found {
  margin-top: 3rem;
  text-align: center;
}

.not-found img {
  width: 7rem;
  margin: 0 auto 1.5rem;
}

.not-found h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 500;
}

.not-found p {
  color: var(--ink-soft);
}
