/* Maplesprint: shared styles for the umbrella site and its three lines */
:root {
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e7e1d7;
  --maple: #c8102e;
  --maple-dark: #9e0c24;
  --apps: #2453c7;
  --english: #d9560f;
  --books: #7a3fd0;
  --accent: var(--maple);
  --accent-soft: #fbe9ec;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 36, 51, 0.06), 0 8px 24px rgba(29, 36, 51, 0.06);
  --max: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.line-apps { --accent: var(--apps); --accent-soft: #e8eefc; }
body.line-english { --accent: var(--english); --accent-soft: #fdeee4; }
body.line-books { --accent: var(--books); --accent-soft: #f1eafc; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.8rem; color: var(--ink-soft); font-weight: 500; margin-left: 2px; white-space: nowrap; }
.brand { min-width: 0; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.15rem; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 550; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: rgba(29, 36, 51, 0.05); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav-toggle { display: none; flex: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--card); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: 10px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--accent); transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(0.92); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: 72px 0 56px; }
@media (min-width: 900px) { .hero { padding: 104px 0 80px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.accent-word { color: var(--accent); font-style: italic; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Cards */
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--ink-soft); }
.card .btn { align-self: flex-start; margin-top: auto; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }

.line-card { position: relative; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.line-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(29,36,51,.06), 0 16px 36px rgba(29,36,51,.1); color: var(--ink); }
.line-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--card-accent); }
.line-card .card-icon { background: var(--card-accent-soft); color: var(--card-accent); }
.line-card .tag { color: var(--card-accent); }
.line-card .more { margin-top: auto; font-weight: 650; color: var(--card-accent); }
.line-card.apps { --card-accent: var(--apps); --card-accent-soft: #e8eefc; }
.line-card.english { --card-accent: var(--english); --card-accent-soft: #fdeee4; }
.line-card.books { --card-accent: var(--books); --card-accent-soft: #f1eafc; }

.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 650;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  margin-bottom: 14px; align-self: flex-start;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.discovery { background: #fff4d6; color: #8a5a00; }

.checklist { list-style: none; padding: 0; margin: 0 0 22px; }
.checklist li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23555' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Principles */
.principle { padding: 4px 0; }
.principle h3 { font-size: 1.15rem; }
.principle p { color: var(--ink-soft); }
.principle .num { font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 10px; }

/* Hero art */
.art {
  position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; margin: 0 auto;
}
.art-blob {
  position: absolute; inset: 6%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, var(--accent-soft) 55%, transparent 75%);
}
.art .tile {
  position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 16px 18px; display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.95rem;
}
.art .tile .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.art .tile .dot svg { width: 20px; height: 20px; }
.art .tile small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; }

/* Books */
.shelf { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .shelf { grid-template-columns: repeat(4, 1fr); } }
.book { color: var(--ink); }
.book-cover {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px 10px 10px 4px;
  box-shadow: inset 6px 0 0 rgba(0,0,0,0.12), 0 12px 28px rgba(29,36,51,0.18);
  background: var(--accent-soft);
}
.book h3 { font-size: 1.05rem; margin: 14px 0 2px; }
.book p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.feature-book { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .feature-book { grid-template-columns: 0.75fr 1.25fr; gap: 56px; } }
.feature-book .book-cover { max-width: 360px; margin: 0 auto; aspect-ratio: auto; }
.feature-book .meta { color: var(--ink-soft); font-size: 0.95rem; }
.feature-book h3 { font-size: 1.6rem; }

.book-buy { margin-top: 18px; }
.book-buy .label { font-size: 0.82rem; font-weight: 650; color: var(--ink-soft); margin-bottom: 8px; display: block; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; }
.store-links a {
  display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 0.86rem; text-decoration: none;
}
.store-links a:hover { background: var(--accent); color: #fff; }

.book-feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) {
  .book-feature { grid-template-columns: 300px 1fr; gap: 48px; }
  .book-feature.reverse { grid-template-columns: 1fr 300px; }
  .book-feature.reverse > .book-cover { order: 2; }
}
.book-feature .book-cover { max-width: 300px; margin: 0 auto; }
.book-feature h3 { font-size: 1.6rem; }
.book-feature + .gallery { margin-top: 28px; }
.book-divider { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
}
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.25s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; }

.pages-preview { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; width: 100%; height: auto; }

.four-words { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 20px 0; }
.four-words div { border-radius: 14px; padding: 12px 14px; font-size: 0.92rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); }
.four-words strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }

/* Callouts */
.callout {
  border-radius: var(--radius); padding: 28px; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.callout p:last-child { margin-bottom: 0; }
.notice { font-size: 0.92rem; color: var(--ink-soft); border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin-top: 18px; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 44px 28px; text-align: center; }
@media (min-width: 720px) { .cta-band { padding: 64px 48px; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfd5e2; max-width: 56ch; margin: 0 auto 8px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-row { justify-content: center; }

/* Prose pages (privacy, terms) */
.prose { max-width: 760px; padding: 56px 0 80px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); }
.updated { font-size: 0.9rem; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 24px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .small { color: var(--ink-soft); font-size: 0.88rem; margin-top: 28px; }

/* Utilities */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .line-card { transition: none; }
}

.mini-links { font-size: 0.85rem; color: var(--ink-soft); margin: 4px 0 0; }
.mini-links a { font-weight: 600; }
