/* Crafted In Honor — public idea pages (static, made by scripts/build-pages.mjs). Same palette as the app. */
:root {
  --bg: #f5f2ec; --surface: #fff; --ink: #1c2230; --ink-2: #444b5a; --muted: #737a88;
  --line: #e4ddd0; --accent: #1f3a5f; --accent-soft: #e7edf5; --gold: #a9802f;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); background: rgba(245, 242, 236, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 650; font-size: 17px; text-decoration: none; min-width: 0; white-space: nowrap; }
.brand em { font-style: normal; color: var(--gold); }
.mark { width: 26px; height: 26px; flex: none; }

.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px;
  padding: 12px 22px; line-height: 1.2; text-align: center; }
.btn:hover { background: #18304f; }
.btn-small { padding: 8px 14px; font-size: 15px; white-space: nowrap; }
.btn-ghost { background: var(--accent-soft); color: var(--accent); padding: 10px 16px; font-size: 15px; }
.btn-ghost:hover { background: #d8e2ee; }

.page { max-width: 1040px; margin: 0 auto; padding: 16px 16px 40px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
.crumbs a { color: var(--muted); }
h1 { font: 600 clamp(28px, 6vw, 42px)/1.15 var(--serif); color: var(--accent); margin: 8px 0 14px; letter-spacing: -.01em; }
h2 { font: 600 24px/1.25 var(--serif); color: var(--accent); margin: 36px 0 10px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 68ch; margin: 0 0 12px; }
.note { color: var(--muted); font-size: 15px; max-width: 68ch; }

.examples { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; align-items: center; }
.examples figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.examples figure { flex: 1 1 280px; max-width: 420px; }
.examples figure.tall { flex: 0 1 200px; }
@media (max-width: 600px) { .examples figure, .examples figure.tall { flex-basis: 100%; max-width: none; } .examples figure.tall img { max-height: 70vh; width: auto; margin: 0 auto; } }

.cards { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 4px; }

.how ol { padding-left: 22px; max-width: 68ch; }
.how li { margin: 6px 0; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; max-width: 760px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 8px 0 2px; color: var(--ink-2); }

.hub { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 20px 0 0; }
.hub a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); }
.hub a:hover { border-color: var(--accent); }
.hub strong { display: block; color: var(--accent); font: 600 19px/1.3 var(--serif); margin-bottom: 4px; }
.hub span { color: var(--ink-2); font-size: 15px; }

.foot { border-top: 1px solid var(--line); padding: 20px 16px 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); max-width: 1040px; margin: 0 auto; }
.foot h2 { font-size: 18px; margin: 0 0 8px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 18px; }
.fine a { color: var(--muted); }
