/* Kit & Calm — one-page site
   Palette from the house-and-window mark: navy, warm amber, off-white. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-sans-3.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-italic.woff2") format("woff2");
}

:root {
  --navy: #091a34;
  --navy-mid: #0f254c;
  --navy-deep: #061227;
  --navy-ink: #15243c;
  --amber: #faac30;
  --amber-deep: #e09018;
  --amber-soft: #ffd78a;
  --cream: #f8f0d8;
  --paper: #f7f3ea;
  --paper-alt: #efe8d8;
  --rule: #d9d0bc;
  --text: #15243c;
  --muted: #3d4a5c;
  --white: #fffdf8;
  --header-h: 4.25rem;
  --shadow: 0 1px 2px rgba(9, 26, 52, 0.06), 0 12px 32px rgba(9, 26, 52, 0.06);
  --radius: 1rem;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --measure: 40rem;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy-mid);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber-deep);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -6rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--amber);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.4rem;
}

.skip:focus {
  top: 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(9, 26, 52, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(248, 240, 216, 0.1);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--cream);
}

.brand img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(248, 240, 216, 0.18), 0 0 0 4px rgba(250, 172, 48, 0.12);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-btn {
  display: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  background: var(--amber);
  outline: none;
}

/* ---------- Layout ---------- */

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

.section-lead {
  margin: 0 0 2.25rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.section--alt {
  background: var(--paper-alt);
}

.section--navy {
  background:
    radial-gradient(ellipse 70% 80% at 80% 0%, rgba(250, 172, 48, 0.1), transparent 55%),
    var(--navy);
  color: var(--cream);
}

.section--navy .section-kicker {
  color: var(--amber);
}

.section--navy .section-title,
.section--navy .section-lead {
  color: var(--cream);
}

.section--navy .section-lead {
  opacity: 0.86;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, rgba(250, 172, 48, 0.2), transparent 62%),
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(15, 37, 76, 0.9), transparent 70%),
    var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 4.25rem 0 5rem;
}

.hero-logo {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(248, 240, 216, 0.16),
    0 0 0 10px rgba(250, 172, 48, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 18em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.05rem, 5.2vw, 3.35rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--cream);
  text-wrap: balance;
}

.hero-lead {
  margin: 0 auto 0.9rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(248, 240, 216, 0.88);
}

.hero-motto {
  margin: 0 auto 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--amber-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--amber);
  color: var(--navy);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--amber-soft);
  color: var(--navy);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248, 240, 216, 0.4);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

/* ---------- Cover cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cover-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.cover-card .icon {
  width: 2.85rem;
  height: 2.85rem;
  margin-bottom: 0.95rem;
  padding: 0.5rem;
  color: var(--navy);
  background: #f3ead6;
  border-radius: 0.7rem;
}

.cover-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.cover-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Tips ---------- */

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.tip {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem 1.35rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--amber);
}

.tip-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.tip h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.tip p,
.tip li {
  color: var(--text);
  font-size: 1rem;
}

.tip p {
  margin: 0 0 0.8rem;
}

.tip ul {
  margin: 0 0 1rem;
  padding: 0 0 0 1.15rem;
}

.tip li {
  margin: 0.2rem 0;
}

.tip .tip-sources {
  margin: auto 0 0;
  padding-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.tip-sources a {
  color: var(--navy-mid);
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.principle {
  padding: 0.25rem 0.2rem 0;
}

.principle-num {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--amber-deep);
  letter-spacing: 0.04em;
}

.principle h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.disclosure-note {
  margin: 2.25rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-left: 3px solid var(--amber);
  border-radius: 0 0.6rem 0.6rem 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Follow / contact ---------- */

.follow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.follow-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(248, 240, 216, 0.05);
  border: 1px solid rgba(248, 240, 216, 0.16);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  color: var(--cream);
  text-decoration: none;
  min-height: 9.5rem;
}

.follow-card:hover,
.follow-card:focus-visible {
  color: var(--cream);
  background: rgba(250, 172, 48, 0.1);
  border-color: rgba(250, 172, 48, 0.45);
  outline: none;
}

.follow-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.follow-card p {
  margin: 0 0 0.6rem;
  color: rgba(248, 240, 216, 0.78);
  font-size: 1rem;
}

.follow-card .go {
  margin-top: auto;
  font-weight: 600;
  color: var(--amber);
}

.follow-card:hover .go {
  color: var(--amber-soft);
}

.contact-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(248, 240, 216, 0.12);
}

.contact-block h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.contact-block p {
  margin: 0 0 0.5rem;
  color: rgba(248, 240, 216, 0.82);
}

.contact-block a {
  color: var(--amber);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-block a:hover {
  color: var(--amber-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(248, 240, 216, 0.78);
  padding: 2.25rem 0 2.5rem;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.15rem;
}

.disclosure {
  max-width: 46rem;
  margin: 0;
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(248, 240, 216, 0.1);
}

.footer-meta a {
  color: var(--cream);
}

.footer-meta a:hover {
  color: var(--amber);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-brand:hover {
  color: var(--cream);
}

.footer-brand img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
}

/* ---------- Privacy article ---------- */

.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: rgba(248, 240, 216, 0.75);
}

.page-hero .wrap {
  width: min(42rem, calc(100% - 2.5rem));
}

.article {
  padding: 3rem 0 4.5rem;
}

.article .wrap {
  width: min(42rem, calc(100% - 2.5rem));
}

.article h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
}

.article h2:first-child {
  margin-top: 0;
}

.article p {
  margin: 0 0 1rem;
  color: var(--text);
}

.article a {
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .card-grid,
  .principles,
  .tips-grid,
  .follow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .principles {
    gap: 1.75rem 1.15rem;
  }
}

@media (max-width: 720px) {
  .site-header .wrap {
    width: calc(100% - 1.5rem);
  }

  .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(248, 240, 216, 0.25);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--cream);
    cursor: pointer;
  }

  .nav-btn svg {
    width: 1.35rem;
    height: 1.35rem;
    pointer-events: none;
  }

  .nav-btn .icon-close {
    display: none;
  }

  .nav-toggle:focus-visible + .nav-btn {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
  }

  .nav-toggle:checked + .nav-btn .icon-open {
    display: none;
  }

  .nav-toggle:checked + .nav-btn .icon-close {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(248, 240, 216, 0.1);
    padding: 0.6rem 0.9rem 0.9rem;
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 0.5rem;
  }

  .hero h1 {
    text-wrap: wrap;
  }

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

  .hero-logo {
    width: 6.75rem;
    height: 6.75rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .wrap,
  .article .wrap,
  .page-hero .wrap {
    width: calc(100% - 1.75rem);
  }

  .card-grid,
  .principles,
  .tips-grid,
  .follow-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 721px) {
  .nav-toggle {
    display: none;
  }
}
