/* muhabet.app. The app's own look: a bookshelf on warm paper, serif for everything read, ink
   for buttons. One look, light, like the app. No script, no outside fonts. */
:root {
  color-scheme: light;
  --paper: #F5F0E6;
  --page: #FFFDF8;
  --ink: #1F1D1A;
  --body: #5B544B;
  --quiet: #8D8579;
  --rule: rgba(60, 45, 20, 0.14);
  --child: #2F74D0;
  --kraft: #DCCBA6;
  --kraft-ink: #6B5A33;
  --outline: #D8CFBE;
  --faint: #B1A999;
  --plank-top: #DCCFB6;
  --plank-bottom: #C9BA9D;
  --shade: rgba(60, 45, 20, 0.5);
  --mark: #FFE27A;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 1.125rem/1.55 var(--serif); padding-inline: 22px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--child); outline-offset: 3px; border-radius: 4px; }
h1, h2, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
mark { background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%); color: inherit; padding: 0 0.12em; }

.top, main, footer { max-width: 1040px; margin-inline: auto; }

/* ── Top ── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 600 1.3rem var(--serif); color: var(--ink); }
.brand img { border-radius: 9px; box-shadow: 0 6px 12px -8px var(--shade); }
.soon { font: 600 0.72rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--quiet); }
.top .soon { border: 1px solid var(--rule); border-radius: 999px; padding: 8px 13px; background: var(--page); }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; padding-block: clamp(26px, 6vw, 72px) clamp(40px, 7vw, 88px); }
.hero.lone { display: block; }
.eyebrow { font: 600 0.74rem var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--quiet); }
h1 { font: 600 clamp(2.05rem, 5.2vw, 3.3rem)/1.1 var(--serif); letter-spacing: -0.012em; color: var(--ink); margin-top: 16px; text-wrap: balance; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; margin-top: 20px; max-width: 34em; }

/* The shelf, as in the app: a spine for every year, born to eighteen. */
.case { min-width: 0; }
.note { position: relative; width: 62%; margin-left: 5%; margin-bottom: 20px; background: var(--child); color: #fff; border-radius: 16px; padding: 13px 16px 14px; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 16px 24px -16px var(--shade); }
.note::after { content: ""; position: absolute; left: 53%; bottom: -8px; width: 16px; height: 16px; background: var(--child); transform: rotate(45deg); border-radius: 3px; }
.note small { font: 800 0.66rem var(--sans); letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.88; }
.note b { font: 600 1.4rem/1.15 var(--serif); }
.note span { font: 400 0.95rem/1.35 var(--sans); }
.shelf { display: flex; align-items: flex-end; gap: 1.1%; padding: 0 0.8%; height: clamp(170px, 30vw, 236px); }
.sp { flex: 1 1 0; min-width: 0; height: 88%; border-radius: 4px 4px 1px 1px; position: relative; display: flex; justify-content: center; padding-top: 10px; box-shadow: inset 0 0 0 1.5px var(--outline); color: var(--faint); }
.sp i { writing-mode: vertical-rl; font: 700 clamp(0.56rem, 1.25vw, 0.72rem) var(--sans); letter-spacing: 0.14em; text-transform: uppercase; font-style: normal; white-space: nowrap; }
.sp.read { background: var(--child); color: #fff; box-shadow: none; }
.sp.sealed { background: var(--kraft); color: var(--kraft-ink); box-shadow: none; }
.sp.sealed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 7px; background: var(--child); opacity: 0.85; }
.sp.up { height: 100%; transform: translateY(-8%); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--child); }
.sp:nth-child(2) { height: 82%; } .sp:nth-child(3) { height: 87%; } .sp:nth-child(4) { height: 84%; }
.sp:nth-child(5) { height: 90%; } .sp:nth-child(6) { height: 93%; } .sp:nth-child(7) { height: 90%; }
.sp:nth-child(9) { height: 93%; } .sp:nth-child(10) { height: 86%; } .sp:nth-child(11) { height: 90%; }
.sp:nth-child(12) { height: 87%; } .sp:nth-child(13) { height: 91%; } .sp:nth-child(14) { height: 86%; }
.sp:nth-child(15) { height: 90%; } .sp:nth-child(16) { height: 87%; } .sp:nth-child(17) { height: 92%; }
.sp:nth-child(18) { height: 88%; } .sp:nth-child(19) { height: 93%; }
.plank { height: 10px; border-radius: 2px; background: linear-gradient(var(--plank-top), var(--plank-bottom)); box-shadow: 0 10px 14px -9px var(--shade); }
figcaption { font: 400 0.84rem/1.45 var(--sans); color: var(--quiet); margin-top: 16px; }

/* ── A part: words beside a picture of the app ── */
.part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(28px, 7vw, 96px); align-items: center; padding-block: clamp(36px, 6vw, 68px); border-top: 1px solid var(--rule); }
.part.flip { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.part.flip .words { order: 2; }
.words { display: flex; flex-direction: column; gap: 16px; max-width: 30em; }
.part.flip .words { justify-self: end; }
h2 { font: 600 clamp(1.6rem, 3.4vw, 2.15rem)/1.15 var(--serif); letter-spacing: -0.008em; color: var(--ink); text-wrap: balance; }
.aside { font: 400 0.95rem/1.5 var(--sans); color: var(--quiet); }
blockquote { font: 600 clamp(1.3rem, 2.6vw, 1.65rem)/1.3 var(--serif); color: var(--ink); }
.phone { border-radius: 34px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 28px 44px -30px var(--shade); background: var(--paper); }

.key { display: flex; flex-direction: column; gap: 14px; }
.key li { display: flex; align-items: center; gap: 16px; }
.key .mini { flex: none; width: 18px; height: 58px; padding: 0; }
.key .mini.sealed::after { bottom: 12px; height: 5px; }
.key div { font: 400 0.98rem/1.45 var(--sans); }
.key b { display: block; font: 600 1.1rem/1.3 var(--serif); color: var(--ink); }

.kinds { display: flex; flex-direction: column; gap: 16px; }
.kinds dt { font: 600 1.15rem/1.3 var(--serif); color: var(--ink); }
.kinds dd { font: 400 0.98rem/1.5 var(--sans); margin-top: 2px; }

/* ── The last two, as pages ── */
.plain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-block: clamp(36px, 6vw, 68px); border-top: 1px solid var(--rule); }
.plain > div { background: var(--page); border-radius: 6px 22px 22px 6px; padding: 26px 24px 26px 38px; position: relative; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 30px -24px var(--shade); }
.plain > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; border-radius: 6px 0 0 6px; background: linear-gradient(90deg, rgba(60, 45, 20, 0.16), transparent); }
.plain h2 { font-size: clamp(1.4rem, 2.6vw, 1.7rem); }
.plain p, .plain li { font-size: 1.04rem; }
.plain ul { display: flex; flex-direction: column; gap: 11px; }
.plain li { padding-left: 18px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--faint); }

/* ── Foot ── */
footer { border-top: 1px solid var(--rule); padding-block: 26px 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font: 400 0.9rem/1.5 var(--sans); color: var(--quiet); }
footer nav { display: flex; gap: 18px; }
footer .soon { margin-left: auto; }

@media (max-width: 760px) {
  body { padding-inline: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .part, .part.flip { grid-template-columns: minmax(0, 1fr); }
  .part.flip .words { order: 0; justify-self: start; }
  .phone { max-width: 300px; justify-self: center; }
  .plain { grid-template-columns: minmax(0, 1fr); }
  footer .soon { margin-left: 0; }
}
