/* =========================================================
   FavorDaily.com — site.css
   Small favors. Big stories.
   ========================================================= */

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

:root {
  --ink: #24170f;
  --ink-soft: #51392a;
  --paper: #fff8ec;
  --paper-2: #fff1d1;
  --cream: #ffe8b3;
  --gold: #f6b93b;
  --gold-dark: #b87509;
  --rose: #e85d75;
  --rose-dark: #8e2538;
  --mint: #42b883;
  --mint-dark: #166b49;
  --sky: #71b7ff;
  --sky-dark: #155a91;
  --plum: #5a3c83;
  --plum-dark: #2f1d4d;
  --card: #ffffff;
  --line: rgba(36, 23, 15, 0.18);
  --shadow: 0 18px 42px rgba(36, 23, 15, 0.16);
  --shadow-soft: 0 10px 24px rgba(36, 23, 15, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(246, 185, 59, 0.24), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(232, 93, 117, 0.18), transparent 26rem),
    linear-gradient(180deg, var(--paper), #fffdf8 46%, var(--paper-2));
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--rose-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--plum-dark);
}

:focus-visible {
  outline: 4px solid rgba(113, 183, 255, 0.75);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Utility ---------- */
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(3.2rem, 6vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(184, 117, 9, 0.35);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.82);
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "✦";
  color: var(--rose);
}

.center {
  text-align: center;
}

.lede {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}

.center .lede,
.lede.center {
  margin-inline: auto;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.94rem;
}

.skip-link {
  position: absolute;
  top: -200px;
  left: 1rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(36, 23, 15, 0.12);
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background:
    linear-gradient(135deg, var(--gold), var(--rose));
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 1.35rem;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
}

.brand-tagline {
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  background: var(--ink);
  color: #fff;
}

.nav-cta a {
  background: var(--rose);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-cta a:hover,
.nav-cta a:focus {
  background: var(--plum);
}

@media (max-width: 860px) {
  .navbar {
    min-height: 70px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 0 1rem;
  }

  .nav-links.is-open,
  .navbar:has(.nav-toggle[aria-expanded="true"]) .nav-links {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
    border: 1px solid var(--line);
    background: #fffdf8;
  }
}
