/* Tutti front page. Loaded after style.css; uses its tokens and component classes (DESIGN.md). */

/* Page */

.welcome { max-width: 1280px; margin: 0 auto; padding: 14px 40px 28px; position: relative; }
.masthead { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.masthead .spacer { flex: 1; }
.masthead .link { font-weight: 600; color: var(--ink); padding: 10px 10px; min-height: 44px; text-decoration: none; }
.masthead .link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { padding: 36px 0 0; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.hero-copy h1 { font-size: clamp(44px, 5.3vw, 72px); line-height: .98; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; max-width: 14ch; }
.hero-lede { font-size: 19px; line-height: 1.5; color: var(--ink2); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-fine { margin-top: 16px; color: var(--ink3); font-size: 14px; }
.hero-film { margin: 40px 0 0; }

/* The launch film (front.js): plum, like the film's own stage, so the frame and the film are one
   thing. Its controls sit underneath, clear of the steps that run along the film's bottom. */
.reel-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 24px; background: #2A2250; box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 40px 90px -48px rgb(31 20 72 / .55); }
.reel[data-cut="square"] .reel-frame { aspect-ratio: 1; border-radius: 20px; }
.reel-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-controls { display: flex; justify-content: flex-end; gap: 4px; margin-top: 10px; }
.reel-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 10px; border-radius: 10px; color: var(--ink2); font-size: 14px; font-weight: 600; transition: background-color .15s ease-out, color .15s ease-out; }
.reel-btn svg { width: 18px; height: 18px; }
.reel-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.reel-btn[aria-pressed="true"] { color: var(--accent-on); }

/* ---------- How a week goes ---------- */

.week-section, .parts-section, .schools-section, .sign-in { margin-top: 96px; }
.week-section h2, .parts-section h2, .schools-section h2, .sign-in h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.section-lede { color: var(--ink2); font-size: 18px; line-height: 1.5; margin-top: 12px; max-width: 48ch; }
.week-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.vignette { display: grid; align-items: center; min-height: 232px; padding: 22px; border-radius: 22px; background: color-mix(in srgb, var(--ink) 4%, var(--canvas)); }
.vignette .card { padding: 18px; }
.vignette .v-title { display: block; font-weight: 750; font-size: 17px; letter-spacing: -0.015em; margin-bottom: 10px; }
.vignette .marks { margin: 0 0 10px; }
.vignette .instruction { font-size: 16px; line-height: 1.5; }
.vignette .week-bar figcaption { margin-top: 10px; }
.vignette .brief { margin: 0; background: var(--card); }
.vignette .brief li { font-size: 14.5px; }
.week-steps > li > h3 { font-size: 21px; letter-spacing: -0.02em; margin: 22px 0 8px; }
.week-steps > li > p { color: var(--ink2); font-size: 16.5px; line-height: 1.55; }

/* ---------- Try the sample studio ---------- */

.part-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.part-tile { display: flex; flex-direction: column; gap: 10px; width: 100%; height: 100%; min-height: 210px; padding: 22px 22px 22px 0; text-align: left; color: var(--ink); position: relative; transition: transform .16s var(--ease); }
.part-list li + li .part-tile { padding-left: 22px; border-left: 1px solid var(--hair); }
.part-tile:active { transform: scale(.98); }
.part-who { display: flex; align-items: center; gap: 10px; }
.part-name { font-size: 23px; font-weight: 700; letter-spacing: -0.025em; }
.part-detail { color: var(--ink2); font-size: 16px; line-height: 1.45; }
.part-go { margin-top: auto; padding-top: 16px; font-weight: 650; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-on); }
.part-go::after { content: ""; width: 18px; height: 1.5px; background: currentColor; transition: transform .22s var(--ease); transform-origin: 0 50%; }
@media (hover: hover) and (pointer: fine) { .part-tile:hover .part-go::after { transform: scaleX(1.8); } }
.part-tile[data-role-tile="head"] .part-go { color: var(--ink); }

.guide-start { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 28px 0 8px; padding: 22px 24px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 8%, var(--canvas)); }
.guide-start h3 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 4px; }
.guide-start p { color: var(--ink2); max-width: 56ch; }
.guide-start .btn { flex: none; }
@media (max-width: 760px) { .guide-start { flex-direction: column; align-items: stretch; padding: 20px; } }

/* ---------- Schools, sign in, footer ---------- */

.schools-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding-top: 64px; border-top: 1px solid var(--hair); }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.facts li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.facts li:first-child { padding-top: 0; }
.facts b { font-size: 18px; letter-spacing: -0.015em; }
.facts span { color: var(--ink2); }

.sign-in { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 64px; align-items: start; padding-top: 64px; border-top: 1px solid var(--hair); }
.sign-in .intro p { color: var(--ink2); margin-top: 12px; font-size: 18px; line-height: 1.5; max-width: 40ch; }
.sign-in .intro .stores { margin-top: 18px; display: grid; gap: 0; justify-items: start; }
.sign-in .form { padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--hair); box-shadow: var(--shadow); }
.sign-in .switch { justify-self: center; }

.welcome-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 88px; padding: 18px 0 4px; border-top: 1px solid var(--hair); color: var(--ink3); font-size: 14px; }
.welcome-foot a { color: var(--ink2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.welcome-foot a:hover { color: var(--ink); text-decoration: underline; }
.welcome-foot .spacer { flex: 1; }

/* ---------- Narrow screens ---------- */

@media (max-width: 1000px) {
  .hero-copy { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy h1 { max-width: 13ch; }
  .week-steps { grid-template-columns: 1fr; gap: 40px; max-width: 560px; }
  .part-list { grid-template-columns: 1fr 1fr; }
  .part-list li:nth-child(3) .part-tile { padding-left: 0; border-left: 0; }
  .part-list li:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 760px) {
  .welcome { padding: 8px var(--gutter) 20px; }
  .masthead .btn.primary { display: none; }
  .hero { padding-top: 22px; }
  .hero-copy h1 { font-size: clamp(40px, 11.6vw, 52px); }
  .hero-lede { font-size: 17.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-film { margin-top: 32px; }
  .week-section, .parts-section, .schools-section, .sign-in { margin-top: 64px; }
  .schools-section, .sign-in { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .vignette { min-height: 0; padding: 16px; }
  .part-list { grid-template-columns: 1fr; }
  .part-list li + li .part-tile, .part-list li:nth-child(3) .part-tile { padding-left: 0; border-left: 0; }
  .part-list li + li { border-top: 1px solid var(--hair); }
  .part-tile { min-height: 0; padding: 20px 0; }
  .sign-in .form { padding: 18px; }
}

/* ---------- Dark ---------- */

@media (prefers-color-scheme: dark) {
  .vignette { background: color-mix(in srgb, #fff 3%, var(--canvas)); }
}
