/* Layer Weather public site. Colors are checked against WCAG AA for both schemes. */
:root {
  color-scheme: light dark;
  --bg: #f3f0e7;
  --ink: #1c1915;
  --muted: #454037;
  --card: #fffcf7;
  --line: #cfc6b6;
  --link: #3a31b8;
  --button-bg: #2a2580;
  --button-ink: #ffffff;
  --hero-bg: #e8e4f6;
  --hero-ink: #1c1915;
  --hero-muted: #454037;
  --focus: #1c1915;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101218;
    --ink: #f4f1ea;
    --muted: #c9c3b6;
    --card: #1a1e2a;
    --line: #4a5168;
    --link: #ddd8ff;
    --button-bg: #e7e3ff;
    --button-ink: #1a1740;
    --hero-bg: #17182a;
    --hero-ink: #f4f1ea;
    --hero-muted: #c9c3b6;
    --focus: #f4f1ea;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

a { color: var(--link); }

a:focus-visible,
summary:focus-visible,
.badge-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  transform: translateY(-200%);
}

.skip:focus { transform: none; }

.site-header,
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.site-header a,
.hero a { color: inherit; }

.wrap {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.hero { padding: 1.25rem 0 3rem; }

.hero-grid { display: grid; gap: 2rem; align-items: end; }

.kicker {
  margin: 0 0 0.75rem;
  color: var(--hero-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }

h1 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2.45rem, 6.2vw, 4.35rem);
  line-height: 1.02;
  text-wrap: balance;
}

.lede {
  max-width: 38rem;
  margin: 1.1rem 0 0;
  color: var(--hero-ink);
  font-size: 1.1875rem;
  line-height: 1.45;
}

.status {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--hero-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.badge-link img { height: 40px; width: auto; }

.waitlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border: 2px solid var(--hero-ink);
  border-radius: 10px;
  color: var(--hero-ink);
  font-weight: 700;
  text-decoration: none;
}

.hero-shot { margin: 0; max-width: 17.5rem; }

.hero-shot img,
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--card);
}

.hero-shot figcaption,
.shot figcaption {
  margin-top: 0.55rem;
  color: var(--hero-muted);
  font-size: 0.9375rem;
}

.section { padding: 3rem 0; }

.section h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.section .intro {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.periods,
.split,
.shots {
  display: grid;
  gap: 0.9rem;
}

.periods article,
.split article,
.panel {
  margin: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.when {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 700;
}

.periods h3,
.split h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.periods p:last-child,
.split p { margin: 0.45rem 0 0; }

.split ul,
.panel ul { margin: 0.55rem 0 0; padding-left: 1.15rem; }

.split li + li,
.panel li + li { margin-top: 0.35rem; }

.note { margin: 1rem 0 0; color: var(--muted); }

.shots { margin: 0; padding: 0; list-style: none; }

.shot { margin: 0; }

.shot figcaption { color: var(--muted); }

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p { margin: 0.35rem 0; }

.support-main { padding: 2rem 0 3rem; }

.support-main h1 {
  max-width: none;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

.contact {
  margin: 1rem 0 0;
  font-size: 1.25rem;
}

.contact a { font-weight: 700; }

.faq { margin-top: 1.75rem; }

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  padding: 0.85rem 0;
  cursor: pointer;
  font-weight: 700;
}

.faq details p { margin: 0 0 1rem; max-width: 42rem; }

@media (min-width: 800px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.7fr); }
  .hero-shot { justify-self: end; max-width: 20rem; }
  .periods { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 800px) and (max-width: 1100px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 16rem)); }
}
