/* Fraunces, hosted here (SIL Open Font License, fonts/OFL.txt) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/fraunces-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/fraunces-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Menu Planner 2 website — shared styles for every page. */

:root {
  --bg: #f7f5ee;
  --bg-wash: #eef2e6;
  --surface: #ffffff;
  --surface-2: #f1efe6;
  --ink: #1d2719;
  --ink-2: #3c4936;
  --muted: #5d6957;
  --line: #dcded2;
  --green: #3c7a27;
  --green-deep: #2d6c21;
  --green-ink: #24521a;
  --green-soft: #e3edd8;
  --amber: #ffb930;
  --amber-ink: #8a5a00;
  --amber-soft: #fff1d1;
  --shadow: 0 1px 2px rgba(29, 39, 25, .06), 0 12px 32px rgba(29, 39, 25, .08);
  --shadow-lg: 0 2px 4px rgba(29, 39, 25, .06), 0 30px 60px rgba(29, 39, 25, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --serif: "Fraunces", "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11150f;
    --bg-wash: #161d13;
    --surface: #1a2117;
    --surface-2: #20291c;
    --ink: #eef2e8;
    --ink-2: #d2dbc9;
    --muted: #a3ae9b;
    --line: #2e3a29;
    --green: #8fcd6b;
    --green-deep: #5ba230;
    --green-ink: #b6e39a;
    --green-soft: #22301c;
    --amber: #ffc24d;
    --amber-ink: #ffcf73;
    --amber-soft: #33290f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
strong { font-weight: 650; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0; color: var(--ink); font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

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

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--green-ink); background: var(--green-soft); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--green-deep); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 40px; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.02rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; font-family: inherit; }
.btn-primary { background: var(--green-deep); color: #fff; box-shadow: 0 8px 20px rgba(45, 108, 33, .25); }
.btn-primary:hover { background: var(--green-ink); color: #fff; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--green-deep); color: #fff; } :root:not([data-theme="light"]) .btn-primary:hover { background: #4a8c26; } }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: .92rem; }

.app-store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s; }
.app-store-badge:hover { transform: translateY(-1px); }
.app-store-badge img { height: 54px; width: auto; }

/* ---------- Generic sections ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section.wash { background: var(--bg-wash); }
@media (max-width: 700px) { .section { padding: 68px 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 52px; }
.section-head h2 { margin-bottom: 14px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); white-space: nowrap; vertical-align: middle; }
.pill-amber { background: var(--amber-soft); color: var(--amber-ink); }
.pill-plain { background: var(--surface-2); color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin: 10px 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233c7a27' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Device frames ---------- */

.phone { position: relative; border-radius: 46px; padding: 9px; background: #1c211a; box-shadow: var(--shadow-lg); max-width: 300px; }
.phone img { border-radius: 38px; width: 100%; height: auto; }
.tablet { border-radius: 26px; padding: 10px; background: #1c211a; box-shadow: var(--shadow-lg); }
.tablet img { border-radius: 17px; width: 100%; height: auto; }
.shot-btn { all: unset; cursor: zoom-in; display: block; text-decoration: none; }
.shot-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 46px; }

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

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { max-width: 300px; margin-top: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(12, 16, 10, .82); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; width: auto; height: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }

/* ---------- Article pages (privacy, help, what's new) ---------- */

.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin-bottom: 16px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.7rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.nav .nav-old { color: var(--muted); }

/* ---------- Store buttons not live yet (tools/site.json "stores") ---------- */
.app-store-badge.is-soon { position: relative; cursor: default; }
.app-store-badge.is-soon:hover { transform: none; }
.app-store-badge.is-soon img { opacity: .4; filter: grayscale(1); }
.app-store-badge .soon { position: absolute; top: -9px; right: -6px; background: var(--amber); color: #3b2a00; font-size: .7rem; font-weight: 700; line-height: 1.5; padding: 1px 9px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow); }
.soon-link { color: var(--muted); }
.soon-link small { font-size: .85em; }

/* ---------- Language menu (footer) ---------- */
.lang-switch { display: flex; flex-wrap: wrap; gap: 4px 16px; width: 100%; padding-bottom: 6px; }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); text-decoration: underline; }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 600; }
