/* Memory Rolls content pages: use-case pages and the blog (generated from apps/home/content). */
:root {
  --paper: #f6f1e7; --paper-2: #efe7d8; --card: #fffdf8; --ink: #1d1a16; --muted: #6c655a; --line: #e3d9c6;
  --amber: #c8891a; --amber-ink: #1b1404; --red: #c2452f; --radius: 18px; color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; }
.display, h1, .card h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.012em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--amber); margin: 0 0 12px; }
.muted { color: var(--muted); }

/* Header and footer */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 20px; }
.bar nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }
.bar nav a[aria-current] { font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; padding: 11px 20px; border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.bar nav .btn { color: var(--ink); padding: 7px 15px; }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; margin-top: 24px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin: 28px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Page hero */
.page-hero { padding: 28px 0 8px; }
.page-hero h1 { font-size: clamp(34px, 5.6vw, 56px); line-height: 1.05; margin: 0 0 16px; max-width: 20ch; }
.page-hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 58ch; margin: 0 0 26px; }
.page-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 8px; }

/* Long-form text */
.prose { font-size: 18px; }
.prose h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(25px, 3vw, 31px); line-height: 1.15; margin: 44px 0 10px; letter-spacing: -0.01em; }
.prose h3 { font-size: 19px; margin: 28px 0 6px; }
.prose p, .prose li { color: #2f2a24; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration-color: var(--amber); text-underline-offset: 3px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--amber); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 20px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--paper-2); }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 36px 0; }
.prose code { background: var(--paper-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* Layout for use-case pages: text plus a sticky summary card */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; padding: 12px 0 40px; }
.aside { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside h2 { font-family: Fraunces, Georgia, serif; font-size: 22px; margin: 0 0 6px; }
.aside .price b { font-family: Fraunces, Georgia, serif; font-size: 34px; font-weight: 600; }
.aside .price small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.aside ul { list-style: none; padding: 0; margin: 18px 0 20px; font-size: 15px; display: grid; gap: 8px; }
.aside li { padding-left: 24px; position: relative; }
.aside li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.aside .btn { width: 100%; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; counter-increment: s; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--ink); color: var(--paper); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 20px 0 48px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: #cbbd9f; }
.card .eyebrow { margin-bottom: 8px; }
.card h3 { font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 15px; }

/* Call to action band */
.cta { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 32px; margin: 40px 0 56px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(24px, 3vw, 30px); margin: 0 0 4px; color: var(--paper); }
.cta p { margin: 0; color: #d8cfbf; }
.cta .btn { border-color: var(--amber); }

/* Blog list */
.posts { list-style: none; padding: 0; margin: 12px 0 48px; display: grid; gap: 0; }
.posts li { border-top: 1px solid var(--line); padding: 26px 0; }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(23px, 3vw, 28px); line-height: 1.2; margin: 4px 0 8px; }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.posts p { margin: 0; color: var(--muted); }
.feed-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.feed-link svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 8px; }
  .aside { position: static; }
}
@media (max-width: 640px) {
  .bar nav { gap: 14px; font-size: 14px; }
  .bar nav .hide-sm { display: none; }
  .prose { font-size: 17px; }
  .cta { padding: 24px; }
}
