:root {
  color-scheme: light;
  --text: #424242;
  --muted: #666666;
  --faint: #9b9b9b;
  --line: #eeeeee;
  /* The studio's colour is navy; wine is Magici's, used only for Magici. */
  --ink: #0c2b5c;
  --ink-soft: #1d4386;
  --wine: #6e1832;
  --wine-dark: #561226;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font: 16px/1.7 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 500; color: var(--text); }
a { color: var(--ink); text-decoration: underline; text-decoration-color: #b9c4d8; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand { text-decoration: none; display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 500; font-size: 1.1rem; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand.small { font-size: .95rem; }
.nav { display: flex; gap: 2rem; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 6rem 1.25rem 5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.25; }
.hero p { font-size: 1.2rem; color: var(--muted); margin: 1rem auto 2.25rem; max-width: 34rem; }
.btn { display: inline-block; text-decoration: none; background: var(--ink); color: #fff; font-size: 1.05rem; font-weight: 500; padding: .7rem 1.75rem; border-radius: 4px; }
.btn:hover { background: var(--ink-soft); color: #fff; text-decoration: none; }

/* Magici */
.app { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding-top: 3rem; padding-bottom: 5rem; }
.shot { display: flex; justify-content: center; }
.shot img { width: 17rem; height: auto; border-radius: 2.25rem; border: 8px solid #1c1917; box-shadow: 0 24px 48px rgb(0 0 0 / .12); }
.about .icon { border-radius: 13px; display: block; margin-bottom: 1.25rem; }
.about h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.about p { color: var(--muted); font-size: 1.05rem; }
.about p + p { margin-top: .9rem; }
.about .links { margin-top: 1.5rem; font-size: 1.05rem; }
.about .links a { color: var(--wine); text-decoration: none; }
.about .links a:hover { text-decoration: underline; }
.about .note { font-size: .9rem; color: var(--faint); }

/* Kinds of moment */
.section-title { font-size: 1.75rem; text-align: center; }
.section-lead { text-align: center; color: var(--muted); font-size: 1.05rem; margin-top: .5rem; }
.kinds { padding-top: 2rem; padding-bottom: 3rem; }
.kinds .section-title { margin-bottom: 3rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding: 2.5rem 0; }
.row > * { min-width: 0; }
.row.flip .text { order: 2; }
.row .text h3 { font-size: 1.4rem; font-weight: 500; margin: 0 0 .75rem; color: var(--text); }
.row .text p { color: var(--muted); font-size: 1.05rem; max-width: 26rem; }
.visual { background: #f8f4f1; border-radius: 1.25rem; padding: 2.5rem 2rem; display: flex; justify-content: center; }
.stack { width: 100%; max-width: 22rem; display: grid; gap: .9rem; }

/* Cards, drawn like the ones in Magici */
.card { width: 100%; max-width: 22rem; background: #fff; border: 1px solid #e7e5e4; border-radius: 16px; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06); overflow: hidden; text-align: left; color: #1c1917; }
.card .body { padding: 1rem 1.15rem 1.1rem; }
.card img { display: block; width: 100%; height: auto; }
.card .meta { font-size: .85rem; color: #78716c; }
.card .title { font-size: 1.1rem; font-weight: 500; margin-top: .2rem; color: #1c1917; }
.card .text-sm { font-size: .92rem; color: #57534e; margin-top: .35rem; }
.card ul.text-sm { padding-left: 1.2rem; margin: .4rem 0 0; }
.card .tag { display: inline-block; margin-top: .7rem; font-size: .8rem; color: #57534e; background: #f5f5f4; border-radius: 999px; padding: .15rem .6rem; }
.card.mood { background: #fcf4f5; border-color: #f3dce1; }
.card.mood .title { display: flex; align-items: center; gap: .5rem; }
.card .emoji { font-size: 1.6rem; line-height: 1; }
.card.sleep { background: #eef0fd; border-color: #d9ddf7; }
.card.sleep .title { color: #1e1b4b; }
.card.awake { background: #fefbea; border-color: #f3e7ae; }
.card.awake .title { color: #451a03; }
.voice { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; background: #f5f5f4; border-radius: 14px; padding: .6rem .8rem .6rem .6rem; }
.voice .play { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--wine); display: grid; place-items: center; }
.voice .play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.voice .wave { flex: 1; width: 100%; height: 30px; min-width: 0; fill: #d6d3d1; }
.voice .len { font-size: .85rem; color: #78716c; font-variant-numeric: tabular-nums; }
.moods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.moods li { font-size: .82rem; background: #fff; border: 1px solid #e7e5e4; border-radius: 999px; padding: .2rem .65rem; color: #44403c; }
.track { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: .25rem; }
.card .title.big { white-space: nowrap; font-size: 1.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.card .title.big span { font-size: 1rem; font-weight: 400; color: #78716c; }
.spark { width: 9rem; height: 3rem; flex: 0 1 9rem; min-width: 5rem; }
.spark .band { fill: #f5f0ee; }
.spark path { fill: none; stroke: var(--wine); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--wine); stroke: #fff; stroke-width: 2; }

/* A screenshot inside a row */
.visual .phone { width: 100%; max-width: 15rem; height: auto; border-radius: 2rem; border: 7px solid #1c1917; box-shadow: 0 18px 36px rgb(0 0 0 / .1); }

/* Look back */
.back { padding-top: 3rem; padding-bottom: 4rem; }
.shots { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.shots img { width: 100%; max-width: 15rem; height: auto; border-radius: 2rem; border: 7px solid #1c1917; box-shadow: 0 18px 36px rgb(0 0 0 / .1); }
.shots h3 { font-size: 1.1rem; font-weight: 500; margin: 1.25rem 0 .3rem; }
.shots p { color: var(--muted); font-size: .95rem; max-width: 16rem; margin: 0 auto; }

/* Footer */
.foot { background: #fbfbfb; border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: .875rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 48rem) {
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .app { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; padding-top: 1rem; padding-bottom: 3.5rem; }
  .shot img { width: 14rem; }
  .about .icon { margin: 0 auto 1rem; }
  .nav { gap: 1.25rem; }
  .row { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0; }
  .row.flip .text { order: 0; }
  .row .text { text-align: center; }
  .row .text p { margin: 0 auto; }
  .visual { padding: 1.75rem 1rem; }
  /* A row to swipe through on phones. */
  .back { padding-right: 0; padding-left: 0; }
  .back .section-title, .section-lead { padding: 0 1.25rem; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.25rem; padding: 0 1.25rem 1rem; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { flex: 0 0 66%; scroll-snap-align: center; }
  .shots img { border-width: 5px; border-radius: 1.6rem; }
}
