/* Budget for Keeps: colours, type and the parts every page shares
   (home page and the calculator, article and info pages). */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --forest: #0E1914;
  --forest-2: #17271E;
  --cream: #EFE9DC;
  --sage: #A9B5A8;
  --mint: #9FD8B6;
  --amber: #F0B24A;
  --amber-soft: #FBE7BF;
  --paper: #F4F5EC;
  --paper-2: #E8EEE0;
  --white: #FFFEFA;
  --ink: #0E1914;
  --muted: #475850;
  --green: #1E6B52;
  --line: rgb(14 25 20 / 0.12);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px rgb(14 40 28 / 0.08), 0 12px 32px -14px rgb(14 40 28 / 0.28);
  --shadow-lg: 0 2px 6px rgb(14 40 28 / 0.1), 0 40px 70px -28px rgb(14 40 28 / 0.45);
  --ease: cubic-bezier(.22, .8, .25, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--amber); color: var(--forest); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.012em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--green); text-underline-offset: 0.16em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: var(--amber); color: var(--forest); border: 1px solid #D89A33; border-radius: 999px;
  font: 600 15px/1.2 var(--text); text-decoration: none; padding: 12px 20px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 10px 22px -12px rgb(176 112 10 / 0.75);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms;
}
.btn:hover { background: #F6BF62; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--sm { font-size: 14px; padding: 9px 16px; gap: 4px; white-space: nowrap; }
.btn--lg { font-size: 17px; padding: 16px 28px; }
.btn--block { display: flex; width: 100%; }
.btn--line { background: transparent; color: var(--ink); border-color: rgb(14 25 20 / 0.28); box-shadow: none; }
.btn--line:hover { background: var(--white); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgb(239 233 220 / 0.4); box-shadow: none; }
.btn--ghost:hover { background: rgb(239 233 220 / 0.1); }

/* ---------- top: launch price line + header ---------- */
.offer { margin: 0; background: var(--forest); color: var(--cream); text-align: center; font-size: 13.5px; padding: 8px 16px; }
.offer b { color: var(--amber); font-weight: 600; }
.bar { position: sticky; top: 0; z-index: 20; background: rgb(244 245 236 / 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 19px/1 var(--display); white-space: nowrap; }
.mark svg { width: 30px; height: 30px; flex: none; }
.bar nav { display: flex; gap: 4px; margin-left: auto; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
/* the one menu link that stays when the menu is hidden */
.bar .bar__shop { display: none; margin-left: auto; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
.bar .bar__shop:hover, .bar .bar__shop[aria-current="page"] { color: var(--ink); background: var(--paper-2); }

/* ---------- footer ---------- */
.foot { background: #09110E; color: var(--sage); font-size: 14px; padding: 40px 0 44px; }
.foot .wrap { display: grid; gap: 18px; }
.foot p { margin: 0; }
.foot b { color: var(--cream); font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--cream); }
.foot .copy { border-top: 1px solid rgb(239 233 220 / 0.12); padding-top: 16px; font-size: 13px; }

/* the full menu needs about 1080px; narrower screens show only Shop and the button */
@media (max-width: 1080px) {
  .bar nav { display: none; }
  .bar .bar__shop { display: block; }
}
@media (max-width: 520px) {
  .hide-s { display: none; }
  .offer { font-size: 12.5px; }
  .bar .wrap { gap: 8px; }
  .mark { gap: 7px; font-size: 17px; }
  .mark svg { width: 26px; height: 26px; }
  .bar .bar__shop { padding: 8px; }
  .bar .btn--sm { padding: 9px 12px; }
}
@media (max-width: 374px) {
  .bar .wrap { width: calc(100% - 24px); gap: 6px; }
  .mark { gap: 5px; font-size: 14.5px; }
  .mark svg { width: 22px; height: 22px; }
  .bar .bar__shop { padding: 8px 4px; font-size: 13.5px; }
  .bar .btn--sm { padding: 8px 9px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
