/* Cube Tutor website. The app's own look: warm paper, green-black ink, the dotted blue stage the 3D cube
   sits on, sticker colours used one job each, and plain bordered buttons like the app's. */
:root {
  --paper: #F8F7F2; --card: #FFFDFA; --ink: #20251F; --muted: #5C635A; --rule: #CED0C6;
  --stage: #E5EEFF; --stage-dot: #AABDDD; --stage-ink: #455974; --teach: #EDF2E3;
  --yellow: #FFD347; --yellow-edge: #D9B55F; --green: #39B77F; --blue: #316ADC; --orange: #FFA252; --red: #ED6050;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.125rem/1.55 system-ui, -apple-system, "Helvetica Neue", sans-serif; }
::selection { background: var(--yellow); color: var(--ink); }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 42rem); margin-inline: auto; }

/* Header: the name, and the app's bordered buttons */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.name { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.05em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.name img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 10px;
  font-weight: 650; font-size: 1rem; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid #CDD0C6;
}
.btn:hover { background: #F3F2EC; }
.btn[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.store { display: inline-block; line-height: 0; }
.store img { height: 56px; width: auto; }
.eyebrow { font: 700 0.75rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.09em; text-transform: uppercase; }

/* Home: the hero sits on the app's dotted stage */
.stage { background-color: var(--stage); background-image: radial-gradient(var(--stage-dot) 1.2px, transparent 1.3px); background-size: 19px 19px; }
.hero-band { border-bottom: 1px solid var(--rule); }
.hero { display: grid; gap: 2.5rem; align-items: center; padding: 3.5rem 0 3rem; }
.hero h1 { font-size: clamp(2.7rem, 7.5vw, 5.4rem); }
.hero h1 mark { background: var(--yellow); color: inherit; padding: 0.02em 0.16em; border-radius: 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lede { font-size: 1.25rem; color: var(--stage-ink); max-width: 31rem; margin: 1.3rem 0 1.8rem; }
.hero .note { font-size: 0.95rem; color: var(--stage-ink); margin-top: 0.8rem; }
.shots { display: flex; gap: 1rem; justify-content: center; }
.shots img { width: min(31%, 15rem); height: auto; border-radius: 20px; border: 1px solid #C5D2EC; box-shadow: 0 2px 3px rgb(32 37 31 / 0.08), 0 16px 34px rgb(51 70 110 / 0.18); }
.shots img:nth-child(2) { translate: 0 -1.2rem; }
@media (min-width: 60rem) { .hero { grid-template-columns: 1fr 1.05fr; } }

/* The four goals, as the app's stage cards */
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; padding: 3.5rem 0 1rem; margin: 0; list-style: none; }
.goals li { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 1.3rem 1.3rem 1.4rem; }
.goals .chip { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; font: 800 1.2rem/1 ui-monospace, Menlo, monospace; border: 1px solid rgb(0 0 0 / 0.12); margin-bottom: 0.9rem; }
.goals h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.goals p { color: var(--muted); font-size: 1rem; margin: 0; }

.how { display: grid; gap: 3.5rem; padding: 3.5rem 0 4.5rem; }
.how h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.7rem; }
.how p { color: var(--muted); margin: 0 0 0.8em; }
.how .row { display: grid; gap: 1.5rem; align-items: center; }
.how img { width: min(100%, 17rem); height: auto; border-radius: 20px; justify-self: center; border: 1px solid var(--rule); box-shadow: 0 16px 34px rgb(32 37 31 / 0.14); }
@media (min-width: 48rem) {
  .how .row { grid-template-columns: 1fr 17rem; gap: 4rem; }
  .how .row:nth-child(even) { grid-template-columns: 17rem 1fr; }
  .how .row:nth-child(even) img { order: -1; }
}
.moves { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.moves li { font: 600 0.95rem ui-monospace, Menlo, monospace; padding: 0.4rem 0.75rem; border-radius: 7px; background: #F0F0E9; }
.moves li.on { background: var(--yellow); box-shadow: inset 0 0 0 1px #AC841E; }

.band { background: var(--ink); color: var(--paper); padding: 4rem 0 3rem; }
.band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.9rem; }
.band a { color: var(--yellow); }
.band p { color: #D9DCD4; }

/* Text pages */
.sheet { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(1.5rem, 5vw, 3.2rem); margin: 2rem auto 3rem; }
.sheet h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 0.5rem; }
.sheet h2 { font-size: 1.35rem; letter-spacing: -0.03em; margin: 2.2rem 0 0.5rem; }
.sheet .when { color: var(--muted); }
.sheet .short { background: var(--teach); border-radius: 10px; padding: 1rem 1.2rem; }
.key { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0.6rem 0 1rem; }
.key b { font: 800 1.05rem ui-monospace, Menlo, monospace; background: var(--yellow); border: 1px solid var(--yellow-edge); border-radius: 7px; padding: 0.1rem 0.5rem; justify-self: start; }

footer { padding: 2rem 0 2.5rem; color: var(--muted); font-size: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.band footer { color: #B9BEB5; padding-bottom: 0; margin-top: 2.5rem; border-top: 1px solid #3A4139; padding-top: 1.5rem; }
@media (max-width: 27rem) { .top nav { gap: 0.35rem; } .top .btn { padding: 0 0.7rem; font-size: 0.95rem; } .name { font-size: 1.1rem; gap: 0.5rem; } .name img { width: 34px; height: 34px; } }
