/* Stop Project Sunflower. Plain CSS, no build step. */

:root {
  --blue: #0b4f8a;
  --blue-dark: #083a66;
  --sky: #eaf4fb;
  --light: #7ec8eb;
  --sun: #f5b301;
  --ink: #14212b;
  --muted: #4a5a68;
  --line: #d5e0e8;
  --paper: #ffffff;
  --max: 68rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }
a:focus-visible,
.button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 46rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--sun); color: var(--ink); padding: 0.6rem 1rem; font-weight: 600;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }

/* Header */

.site-header { background: var(--blue); color: #fff; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-block: 0.75rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.25rem; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: 0.45rem 0.75rem; border-radius: 0.4rem;
  color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.site-nav a[aria-current="page"] { background: #fff; color: var(--blue); }

/* Hero */

.hero {
  color: #fff;
  background:
    linear-gradient(rgba(8, 40, 70, 0.72), rgba(8, 40, 70, 0.72)),
    url("img/river.jpg") center / cover no-repeat,
    var(--blue-dark);
}
.hero .wrap { position: relative; padding-block: clamp(3rem, 9vw, 6rem); }
.follow {
  position: absolute; top: 1.25rem; right: 0;
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 1.1rem 0.5rem 0.5rem; border-radius: 3rem;
  background: rgba(255, 255, 255, 0.14); border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.35rem; line-height: 1;
}
.follow:hover { background: #fff; color: var(--blue); border-color: #fff; }
.follow svg { flex: none; }
.hero p { font-size: 1.25rem; max-width: 40rem; }
.hero .kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; font-weight: 700; color: var(--sun); margin-bottom: 0.75rem; }

.page-head { background: var(--sky); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 2.5rem 2rem; }
.page-head p { font-size: 1.2rem; color: var(--muted); max-width: 44rem; margin-bottom: 0; }

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button {
  display: inline-block; padding: 0.75rem 1.25rem; border-radius: 0.5rem;
  background: var(--sun); color: var(--ink); font-weight: 700; text-decoration: none;
  border: 2px solid var(--sun);
}
.button:hover { background: #ffc72b; border-color: #ffc72b; color: var(--ink); }
.button.ghost { background: transparent; color: #fff; border-color: #fff; }
.button.ghost:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.button.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* Sections */

section { padding-block: clamp(2.5rem, 6vw, 4rem); }
section.tint { background: var(--sky); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.facts li { margin: 0; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 0.5rem; padding: 1rem 1.1rem; }
.facts strong { display: block; font-size: 1.6rem; line-height: 1.15; color: var(--blue); }
.facts span { color: var(--muted); font-size: 0.98rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 0.6rem; padding: 1.25rem 1.35rem; }
.card h3 { color: var(--blue); }
.card p:last-child { margin-bottom: 0; }

.note { border-left: 4px solid var(--sun); background: #fff8e1; padding: 0.9rem 1.1rem; border-radius: 0 0.4rem 0.4rem 0; }
.note p:last-child { margin-bottom: 0; }

/* Reasons */

.reason { border-top: 1px solid var(--line); padding-block: 2.25rem; }
.reason:first-of-type { border-top: 0; padding-top: 0; }
.reason h2 { display: flex; gap: 0.75rem; align-items: baseline; }
.reason .num {
  flex: none; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.2rem; transform: translateY(-0.1rem);
}
.ask { background: var(--sky); border-radius: 0.5rem; padding: 0.9rem 1.1rem; margin-top: 1.25rem; }
.ask strong { color: var(--blue); }
.toc { margin-bottom: 2.5rem; }
.toc li { margin-bottom: 0.25em; }

/* Table */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: 1rem; }
caption { text-align: left; padding: 0.75rem 1rem; color: var(--muted); font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-top: 1px solid var(--line); }
thead th { background: var(--blue); color: #fff; border-top: 0; font-weight: 600; }
tbody th { font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f6fafd; }

/* Footer */

.site-footer { background: var(--ink); color: #c9d6e0; font-size: 0.98rem; }
.site-footer .wrap { padding-block: 2rem; display: grid; gap: 0.75rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }

@media (max-width: 40rem) {
  .site-header .wrap { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .hero p { font-size: 1.1rem; }
  .follow { position: static; margin-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
