/* Blushback — site stylesheet. Tokens from docs/brand/brand-tokens.json; dark scheme is the site's own. */
:root {
  --paper: #f7f3e9; --card: #fffdf7; --ink: #252b28; --spruce: #29483d; --sage: #dce5d9;
  --apricot: #eab398; --honey: #e9c46a; --muted: #5f6b64; --line: #ddd8c8; --on-primary: #f7f3e9;
  --radius-card: 20px; --radius-control: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b2320; --card: #232d29; --ink: #f1ece0; --spruce: #cfe0d6; --sage: #2c3b35;
    --muted: #a7b3ac; --line: #334139; --on-primary: #1b2320;
  }
}
:root[data-theme="dark"] {
  --paper: #1b2320; --card: #232d29; --ink: #f1ece0; --spruce: #cfe0d6; --sage: #2c3b35;
  --muted: #a7b3ac; --line: #334139; --on-primary: #1b2320;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, system-ui, sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--spruce); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 42rem; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
.wordmark { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark .back { color: var(--apricot); }
.wordmark .mark { display: inline-block; color: var(--spruce); }
nav a { text-decoration: none; margin-left: 20px; font-weight: 600; font-size: 15px; }
@media (max-width: 560px) { nav a { margin-left: 14px; font-size: 14px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--spruce); color: var(--on-primary); text-decoration: none; font-weight: 600; font-size: 16px; padding: 13px 20px; border-radius: var(--radius-control); border: 1px solid transparent; }
.btn.quiet { background: transparent; color: var(--spruce); border-color: var(--line); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 48px 0 72px; }
.hero .lede { font-size: 1.2rem; max-width: 34rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding: 24px 0 56px; } }

/* phone mockup */
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: var(--ink); border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45); }
.screen { background: var(--paper); border-radius: 34px; padding: 22px 16px 26px; min-height: 560px; display: flex; flex-direction: column; gap: 12px; }
.screen .day { font-family: Fraunces, Georgia, serif; font-size: 22px; margin: 6px 4px 2px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 18px; }
.card .kind { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.card .quote { font-family: Fraunces, Georgia, serif; font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.card .who { font-size: 13px; color: var(--muted); }
.card .photo { height: 110px; border-radius: 14px; background: linear-gradient(135deg, var(--sage), var(--apricot)); margin: 8px 0 10px; }
.card .comment { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: 14px; }
.card .comment b { font-weight: 600; }

/* sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 24px; }
.tile .mark { width: 36px; height: 36px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; margin-bottom: 14px; color: var(--spruce); font-family: Fraunces, Georgia, serif; font-size: 20px; }
.tile.spruce { background: var(--spruce); color: var(--on-primary); border-color: var(--spruce); }
.tile.spruce a { color: inherit; }
.tile.spruce .mark { background: rgba(255,255,255,0.14); color: var(--apricot); }
ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: 8px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 56px; font-size: 0.9rem; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; }
footer a { color: var(--spruce); text-decoration: none; margin-right: 18px; }

/* long-form pages */
.page { padding: 24px 0 56px; }
.page header.page-head { padding: 24px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.page header.page-head .lede { padding-right: 8px; }
.page h2 { font-size: 1.4rem; margin-top: 40px; }
.page .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px 22px; margin: 24px 0; }
.page .box p:last-child { margin-bottom: 0; }

/* ---- app screens, mocked in HTML to match the app's own look (Paper, cards, Fraunces, Manrope) ---- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; align-items: start; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; justify-items: center; } }
.shot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shot .cap { text-align: center; max-width: 300px; color: var(--muted); font-size: 0.95rem; }
.shot .cap b { color: var(--ink); font-weight: 600; }
.iphone { width: 300px; height: 620px; background: #252b28; border-radius: 46px; padding: 10px; box-shadow: 0 32px 60px -34px rgba(0,0,0,0.5); position: relative; flex: none; }
.iphone .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 14px; background: #252b28; z-index: 2; }
.iphone .scr { width: 100%; height: 100%; background: #f7f3e9; border-radius: 38px; overflow: hidden; position: relative; color: #252b28; font-family: Manrope, system-ui, sans-serif; }
.iphone .body { padding: 58px 16px 90px; display: flex; flex-direction: column; gap: 14px; height: 100%; box-sizing: border-box; overflow: hidden; }
.iphone .date { font-size: 11px; color: #5f6b64; display: flex; justify-content: space-between; align-items: center; }
.iphone .gear { width: 16px; height: 16px; border: 2px solid #5f6b64; border-radius: 50%; box-sizing: border-box; }
.iphone .kids { display: flex; justify-content: center; gap: 18px; }
.iphone .kid { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #5f6b64; }
.iphone .kid .av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 20px; color: #29483d; }
.iphone .kid b { color: #252b28; font-weight: 600; }
.iphone .c { background: #fffdf7; border: 1px solid #ddd8c8; border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.iphone .c.dark { background: #29483d; border-color: #29483d; color: #dce5d9; }
.iphone .k { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #5f6b64; }
.iphone .dark .k { color: #9aa9a1; }
.iphone .s { font-size: 13px; font-weight: 600; }
.iphone .m { font-size: 11px; color: #5f6b64; }
.iphone .dark .m { color: #9aa9a1; }
.iphone .q { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 15px; line-height: 1.25; margin: 2px 0; }
.iphone .h1 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 28px; line-height: 1.1; }
.iphone .lead { font-size: 12px; color: #5f6b64; }
.iphone .strip { display: flex; gap: 6px; }
.iphone .strip span { font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid #ddd8c8; background: #fffdf7; color: #5f6b64; }
.iphone .strip span.on { background: #29483d; color: #f7f3e9; border-color: #29483d; }
.iphone .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.iphone .tile { border-radius: 14px; overflow: hidden; background: #fffdf7; border: 1px solid #ddd8c8; }
.iphone .tile .m { padding: 6px 8px; }
.iphone .row { display: flex; align-items: center; gap: 10px; }
.iphone .ic { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #29483d; box-sizing: border-box; flex: none; }
.iphone .ic.a { background: #eab398; border-color: #eab398; }
.iphone .cm { border-top: 1px solid #ddd8c8; padding-top: 8px; margin-top: 4px; display: flex; gap: 8px; align-items: flex-start; font-size: 11px; }
.iphone .cm .av { width: 22px; height: 22px; border-radius: 50%; background: #dce5d9; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #29483d; flex: none; }
.iphone .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.iphone .chips span { font-size: 11px; padding: 6px 10px; border-radius: 999px; border: 1px solid #ddd8c8; background: #fffdf7; }
.iphone .chips span.on { background: #29483d; color: #f7f3e9; border-color: #29483d; }
.iphone .tabs { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 58px; background: #fffdf7; border: 1px solid #ddd8c8; border-radius: 22px; display: flex; align-items: center; justify-content: space-around; padding: 0 6px; }
.iphone .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; color: #97a29b; width: 44px; }
.iphone .tab.on { color: #29483d; }
.iphone .tab svg { width: 20px; height: 20px; }
.iphone .fab { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; background: #29483d; color: #f7f3e9; display: grid; place-items: center; font-size: 30px; line-height: 1; box-shadow: 0 6px 16px rgba(41,72,61,0.35); }
/* photo slots: swap the gradients for real photos in site/photos (see site/photos/README.md) */
.ph { background: linear-gradient(135deg, #dce5d9 0%, #eab398 100%); position: relative; }
.ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 55%); }
.ph.p1 { background-image: url("photos/01-slide.jpg"), linear-gradient(135deg, #dce5d9, #eab398); background-size: cover; background-position: center; }
.ph.p2 { background-image: url("photos/02-beach.jpg"), linear-gradient(160deg, #e9c46a, #dce5d9); background-size: cover; background-position: center; }
.ph.p3 { background-image: url("photos/03-kitchen.jpg"), linear-gradient(200deg, #eab398, #dce5d9); background-size: cover; background-position: center; }
.ph.p4 { background-image: url("photos/04-garden.jpg"), linear-gradient(120deg, #dce5d9, #e9c46a); background-size: cover; background-position: center; }
.ph.p5 { background-image: url("photos/05-nan.jpg"), linear-gradient(120deg, #eab398, #e9c46a); background-size: cover; background-position: center; }
.hero .shot { align-items: flex-start; }

/* empty photo slots must not be squeezed by the flex column */
.iphone .body > * { flex: none; }
