/* Family Pot website: the app's D2 tokens (docs/design/system.md), the
   app's own two typefaces served from this site, light and dark. */
@font-face { font-family: 'FP Sans'; src: url('/fonts/sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'FP Serif'; src: url('/fonts/serif.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ground: #F1F2F6; --surface: #FFFFFF; --well: #E6E8F0; --line: #D9DCE7;
  --ink: #11142A; --ink-muted: #4A5068;
  --indigo: #1F2B6C; --indigo-deep: #161E4E; --indigo-ink: #1F2B6C; --indigo-soft: #E1E5F7;
  --on-indigo: #FFFFFF; --on-indigo-muted: #B9C0E6;
  --marigold: #E8A21A; --marigold-ink: #7E5300; --marigold-soft: #FBEFD2;
  --palm: #2B6A44; --palm-soft: #DDEFE3; --brick: #A3322A; --brick-soft: #F7E0DD;
  --sans: 'FP Sans', 'Segoe UI', system-ui, sans-serif; --display: 'FP Serif', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1120; --surface: #191C30; --well: #23273F; --line: #2C3150;
    --ink: #EEF0F8; --ink-muted: #A7ADC6;
    --indigo: #5165CD; --indigo-deep: #1A2152; --indigo-ink: #AAB6F4; --indigo-soft: #232B57;
    --on-indigo-muted: #BAC2EE;
    --marigold: #F0B33E; --marigold-ink: #F3C565; --marigold-soft: #3A2C0C;
    --palm: #8CD3A6; --palm-soft: #163323; --brick: #F29C93; --brick-soft: #3D1B19;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 26px; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
a { color: var(--indigo-ink); }
img { max-width: 100%; }
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header and footer. */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-tile { width: 44px; height: 44px; border-radius: 14px; background: #161E4E; color: #FFFFFF; display: grid; place-items: center; position: relative; }
.brand-tile .knob { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #E8A21A; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-family: var(--display); font-size: 24px; font-weight: 600; }
.brand-name small { font-size: 12px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0.2px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; }
.links a { font-size: 16px; font-weight: 550; text-decoration: none; color: var(--ink); padding: 10px 0; }
.links a[aria-current] { color: var(--indigo-ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.cta { font: inherit; font-size: 16px; font-weight: 600; min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--indigo); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; }
a.cta { color: #FFFFFF; }
.cta.soft, a.cta.soft { background: var(--indigo-soft); color: var(--indigo-ink); }
.foot { background: #161E4E; color: #FFFFFF; padding: 48px 0 40px; margin-top: 96px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-start; }
.foot a { color: #FFFFFF; }
.foot .muted { color: #B9C0E6; font-size: 15px; line-height: 22px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }

/* Type. */
.display { font-family: var(--display); font-weight: 520; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -1.2px; text-wrap: balance; }
.h-page { font-family: var(--display); font-weight: 540; font-size: clamp(38px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.8px; text-wrap: balance; }
.h-sec { font-family: var(--display); font-weight: 540; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.4px; text-wrap: balance; }
.h-card { font-size: 20px; line-height: 26px; font-weight: 650; }
.lead { font-size: 19px; line-height: 29px; color: var(--ink-muted); max-width: 640px; text-wrap: pretty; }
.small { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--marigold-ink); background: var(--marigold-soft); padding: 6px 12px; border-radius: 999px; align-self: flex-start; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); flex: none; }

/* Sections and cards. */
.sec { padding-top: 88px; display: flex; flex-direction: column; gap: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; align-items: start; }
.grid.views { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.card { background: var(--surface); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card .tile { width: 52px; height: 52px; border-radius: 16px; background: var(--indigo-soft); color: var(--indigo-ink); display: grid; place-items: center; margin-bottom: 6px; }
.card.deep { background: #161E4E; color: #FFFFFF; }
.card.deep .small { color: #B9C0E6; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); margin-top: 9px; }
.card.deep .list li::before { background: #E8A21A; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* The hero: the household around one pot. */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 44px 64px; padding-top: 36px; }
.hero-words { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-pot { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; max-width: 400px; margin: 0 auto; }
.hands { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hand { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 6px 16px 6px 6px; box-shadow: 0 6px 18px rgba(17,20,42,0.08); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo-ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.warm .avatar, .avatar.warm { background: var(--marigold-soft); color: var(--marigold-ink); }
.hand b { display: block; font-size: 15px; line-height: 19px; }
.hand span.r { display: block; font-size: 13px; line-height: 17px; color: var(--ink-muted); font-weight: 500; }
.cloth { background: #161E4E; color: #FFFFFF; border-radius: 26px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.cloth .cap { font-size: 14px; color: #B9C0E6; font-weight: 500; }
.cloth .fig { display: flex; align-items: baseline; gap: 8px; }
.cloth .fig .c { font-size: 19px; font-weight: 600; color: #B9C0E6; }
.cloth .fig .v { font-family: var(--display); font-size: 46px; line-height: 50px; font-weight: 500; letter-spacing: -1px; font-variant-numeric: lining-nums tabular-nums; }

/* A month with the Kollies. */
.month { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; list-style: none; padding: 0; }
.day { background: var(--surface); border-radius: 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.day .when { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; color: var(--indigo-ink); }
.day .when .avatar { width: 32px; height: 32px; font-size: 13px; }
.day .shows { display: inline-flex; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--indigo-ink); background: var(--indigo-soft); border-radius: 8px; padding: 3px 9px; }
.day.end { background: #161E4E; color: #FFFFFF; }
.day.end .when, .day.end .small { color: #B9C0E6; }
.day.end .said { font-family: var(--display); font-size: 24px; line-height: 31px; }

/* The app itself. */
.shots { background: #161E4E; color: #FFFFFF; border-radius: 32px; padding: 40px 28px 36px; display: flex; flex-direction: column; gap: 28px; }
.shots .lead { color: #B9C0E6; }
.strip { display: grid; grid-template-columns: repeat(5, minmax(176px, 1fr)); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shot { scroll-snap-align: center; display: flex; flex-direction: column; gap: 14px; }
.shot:nth-child(even) { padding-top: 28px; }
.bezel { background: #0B0E1F; border-radius: 30px; padding: 7px; box-shadow: 0 24px 48px rgba(0,0,0,0.35); }
.bezel img { display: block; width: 100%; height: auto; aspect-ratio: 585 / 1266; border-radius: 24px; background: #F1F2F6; }
.shot figcaption { display: flex; flex-direction: column; gap: 4px; }
.shot b { font-size: 17px; line-height: 22px; }
.shot span { font-size: 15px; line-height: 21px; color: #B9C0E6; }

/* Where you stand, and what changes. */
.view { background: var(--surface); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.view .who { font-size: 15px; font-weight: 650; color: var(--indigo-ink); }
.view q { font-family: var(--display); font-size: 22px; line-height: 29px; font-weight: 500; }
.value { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.value:last-child { border-bottom: 1px solid var(--line); }
.honest { background: var(--marigold-soft); border-radius: 22px; padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.honest .i { width: 28px; height: 28px; color: var(--marigold-ink); }
.honest p { flex: 999 1 400px; font-size: 18px; line-height: 27px; }

/* The form. */
.form { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input { font: inherit; font-size: 17px; min-height: 54px; padding: 0 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.field input:focus { outline: none; border: 2px solid var(--indigo-ink); padding: 0 15px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 23px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--indigo); flex: none; }
.away { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.problem { display: none; background: var(--brick-soft); color: var(--brick); border-radius: 12px; padding: 12px 16px; font-size: 16px; line-height: 23px; font-weight: 550; }
.problem.on { display: block; }

/* Long pages. */
.page-top { padding-top: 36px; display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.numbered { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: n; }
.numbered li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; counter-increment: n; }
.numbered li::before { content: counter(n); width: 36px; height: 36px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo-ink); display: grid; place-items: center; font-weight: 700; }
.note { background: var(--marigold-soft); border-radius: 16px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 23px; }
.note .i { color: var(--marigold-ink); }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; align-items: start; }
.guide { background: var(--surface); border-radius: 22px; padding: 0; }
.guide summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-height: 76px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary .tile { width: 44px; height: 44px; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo-ink); display: grid; place-items: center; flex: none; }
.guide summary .t { display: flex; flex-direction: column; gap: 2px; }
.guide summary .t b { font-size: 18px; line-height: 23px; }
.guide .body { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.guide[open] summary { padding-bottom: 12px; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-family: var(--display); font-weight: 540; font-size: 30px; line-height: 36px; margin-top: 26px; }
.prose h3 { font-size: 20px; line-height: 26px; margin-top: 12px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose .table { overflow-x: auto; background: var(--surface); border-radius: 16px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; line-height: 22px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 650; }
.prose code { font-size: 15px; }
