/* Brieosync: plain CSS, mobile-first, no build step. */
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F4ECDC;
  --ink: #1C1916;
  --orange: #B4491A;        /* accent on cream only */
  --orange-dark-bg: #E2733A; /* accent on ink only */
  --muted: #BDB19C;         /* borders, and text on ink only (too light for text on cream) */
  --cream-deep: #EBE1CC;    /* subtle card tint, derived from cream */
  --radius: 18px;
  --wrap: 1120px;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--orange-dark-bg); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: clamp(2.35rem, 9.5vw, 4.25rem); font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 0.4em; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 38rem; }

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 0.75rem; }

/* Header */
.site-header { border-bottom: 1px solid rgba(28, 25, 22, 0.12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 128px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 0.4rem 0.1rem; }
.nav a:hover { color: var(--orange); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.nav .btn { color: var(--cream); padding: 0.55rem 1rem; font-size: 0.95rem; min-height: 0; }
.nav .btn:hover { color: var(--cream); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: var(--cream);
  font: inherit; font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  padding: 0.9rem 1.5rem; min-height: 3rem;
  border: 2px solid var(--orange); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.on-dark .btn { background: var(--orange-dark-bg); border-color: var(--orange-dark-bg); color: var(--ink); }
.on-dark .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }

/* Hero */
.hero { padding-block: 2.5rem 3rem; }
.hero .wrap { display: grid; gap: 2.25rem; }
.eyebrow { color: var(--orange); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.on-dark .eyebrow { color: var(--orange-dark-bg); }
.lead { font-size: clamp(1.15rem, 3.6vw, 1.35rem); line-height: 1.55; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 1.75rem 0 0; padding: 0.5rem 1rem 0.5rem 0.85rem;
  border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 500; font-size: 0.98rem; line-height: 1.35;
}
.status::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--orange); }
.on-dark .status { border-color: var(--muted); }
.on-dark .status::before { background: var(--orange-dark-bg); }

.hero-panel {
  background: var(--ink); color: var(--cream); border-radius: calc(var(--radius) * 1.4);
  padding: 2.5rem 1.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem;
  min-height: 15rem;
}
.hero-panel img { width: min(62%, 17rem); }
.hero-panel p { margin: 0; color: var(--muted); font-size: 0.98rem; text-align: center; }
.hero-panel strong { color: var(--cream); font-weight: 600; }

/* Sections */
.section { padding-block: 3.25rem; }
.section--tint { background: var(--cream-deep); }
.on-dark { background: var(--ink); color: var(--cream); }
.on-dark a:not(.btn) { color: var(--orange-dark-bg); }

.story .wrap { display: grid; gap: 1.5rem; }
.fits { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fits li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.9rem; font-weight: 500; font-size: 0.98rem; }

.cards { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.card {
  background: var(--cream); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem;
}
.card svg { width: 2.5rem; height: 2.5rem; color: var(--orange); margin-bottom: 1rem; }
.card p { margin: 0; }
.tag { display: inline-block; margin-top: 0.8rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange); }

/* Follow / form */
.follow .wrap { display: grid; gap: 2rem; }
.follow h2 { color: var(--cream); }
/* Kit embed: the form brings its own cream box and styles; this only places it. */
.follow .wrap { justify-items: center; text-align: center; }
.follow .measure { margin-inline: auto; }
.follow .measure .status { text-align: left; }
.signup-embed { width: 100%; max-width: 600px; margin-inline: auto; text-align: left; }
.signup-embed .formkit-form { width: 100%; min-width: 0 !important; max-width: 600px; margin-inline: auto; }
.signup-embed .formkit-background { display: none; }
@media (max-width: 719px) {
  /* Kit's data-attribute rules give 40px padding even on narrow screens; tighten for phones */
  .signup-embed .formkit-form[data-uid] .formkit-column { padding: 28px 22px !important; }
}

/* Prose pages */
.page-head { padding-block: 2.75rem 0.5rem; }
.prose { padding-block: 1.5rem 4rem; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.4rem, 4.5vw, 1.75rem); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.notice { border: 1.5px solid var(--orange); background: var(--cream-deep); border-radius: 12px; padding: 1rem 1.2rem; margin: 0 0 2rem; font-size: 1rem; }
.notice strong { color: var(--orange); }
.meta { font-size: 0.95rem; opacity: 0.85; }

/* 404 */
.lost { text-align: left; padding-block: 4rem 6rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 2.5rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
.site-footer img { width: 140px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--cream); }
.footer-links a:hover { color: var(--orange-dark-bg); }
.site-footer small { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.site-footer .copy { color: var(--cream); }

/* Wider screens */
@media (min-width: 720px) {
  :root { --gutter: 2rem; }
  body { font-size: 1.125rem; }
  .brand img { width: 150px; }
  .nav { gap: 1.75rem; }
  .hero { padding-block: 4.5rem 5rem; }
  .section { padding-block: 5rem; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .card { padding: 1.9rem 1.8rem 1.7rem; }
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 4rem; }
  .hero-panel { min-height: 26rem; }
  .story .wrap { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 1.6rem 1.4rem 1.4rem; }
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: start; column-gap: 4rem; }
  .site-footer .footer-text { grid-column: 1 / -1; max-width: 46rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
