/* Lumin Literacy: the start screen for every Lumin app. The Lumin design language: painted scene, Literata over it,
   paper cards with a pressed lip, one marigold accent. Copyright (C) 2026 B7 Collective LLC. All rights reserved. */
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --bg: #E8E5E0; --ink: #18212B; --muted: #57606B; --line: #D5CFC6; --card: #F8F6F2; --soft: #DFDAD2; --lip: #CFC8BD;
  --accent: #F2B544; --accent-lip: #C88D21; --link: #1F6F78; --night: #10151C;
  --serif: "Literata", Georgia, serif; --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px); --r-l: 22px; --r-m: 16px; --tap: 44px;
  --ease: cubic-bezier(.22, .8, .24, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 3px 0 var(--lip), 0 18px 30px -22px rgba(24, 33, 43, .45);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 5px 0 var(--lip), 0 26px 36px -22px rgba(24, 33, 43, .5);
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #10161D; --ink: #ECEFF2; --muted: #A4AEB9; --line: #2A3540; --card: #1A222B; --soft: #232D37; --lip: #070B0F; --link: #7CC6CE;
    --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 3px 0 var(--lip), 0 18px 30px -22px rgba(0, 0, 0, .8);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 5px 0 var(--lip), 0 26px 36px -22px rgba(0, 0, 0, .8); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 9; background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.hero { position: relative; background: url("scene.webp") center 40% / cover no-repeat, var(--night); color: #F4F1EA; padding: calc(var(--safe-top) + clamp(32px, 7vw, 72px)) var(--gutter) clamp(88px, 12vw, 132px); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 14, 20, .55), rgba(10, 14, 20, .35) 45%, rgba(10, 14, 20, .82)); }
.hero-inner { position: relative; max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.mark { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 20px; letter-spacing: .01em; }
.mark img { border-radius: 16px; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.hero h1 { font-size: clamp(36px, 6.4vw, 64px); max-width: 14ch; }
.lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 56ch; color: rgba(244, 241, 234, .9); }
.cont { font-weight: 700; }
.cont a { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 18px; border-radius: 999px; background: rgba(16, 21, 28, .5); border: 1px solid rgba(255, 255, 255, .22); text-decoration: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cont img { border-radius: 7px; }

main { max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.apps { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: clamp(-80px, -9vw, -56px); position: relative; }
@media (min-width: 720px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.app { display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px; align-items: center; gap: 18px; padding: 22px; background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow-lift); text-decoration: none; transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); animation: rise .6s var(--ease) both; }
.app:nth-child(2) { animation-delay: 60ms; } .app:nth-child(3) { animation-delay: 120ms; } .app:nth-child(4) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.app img { border-radius: 16px; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); transition: transform 380ms var(--spring); }
.app .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app .verb { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.app strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.app small { color: var(--muted); font-size: 15px; line-height: 1.45; }
.app .new { align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #18212B; box-shadow: 0 2px 0 var(--accent-lip); }
.app .go { color: var(--muted); display: grid; place-items: center; transition: transform 240ms var(--ease); }
.app.last { box-shadow: var(--shadow-lift), 0 0 0 3px var(--accent); }
@media (hover: hover) { .app:hover { transform: translateY(-3px); } .app:hover img { transform: rotate(-6deg) scale(1.06); } .app:hover .go { transform: translateX(4px); color: var(--ink); } }
.app:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lip); }
@media (max-width: 419px) { .app { grid-template-columns: 52px minmax(0, 1fr) 20px; gap: 14px; padding: 18px 16px; } .app img { width: 52px; height: 52px; border-radius: 13px; } .app strong { font-size: 22px; } }

.loop h2, .family h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 18px; }
.loop ol { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .loop ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.loop li { counter-increment: s; background: var(--card); border-radius: var(--r-m); padding: 18px 18px 18px 64px; position: relative; box-shadow: var(--shadow); color: var(--muted); }
.loop li b { color: var(--ink); }
.loop li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #18212B; font-weight: 700; box-shadow: 0 2px 0 var(--accent-lip); }
.family { display: grid; gap: 20px; align-items: center; background: var(--night); color: #F4F1EA; border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); }
.family p { color: rgba(244, 241, 234, .82); max-width: 64ch; }
@media (min-width: 900px) { .family { grid-template-columns: minmax(0, 1fr) auto; } }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--r-m); background: var(--accent); color: #18212B; font-weight: 700; text-decoration: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 4px 0 var(--accent-lip); justify-self: start; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-lip); }
.foot { text-align: center; color: var(--muted); font-size: 15px; padding: 48px var(--gutter) calc(40px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.foot a { color: inherit; font-weight: 700; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; }
.foot nav a { font-weight: 400; min-height: 32px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { .app, .app img, .app .go { animation: none !important; transition: none !important; } }
