/* Shorties tutorials: a normal video-tutorial site (header, big player, description, up next,
   more tutorials, footer) in the reel colours: warm paper, ember, Inter with one serif word. */
:root {
  --paper: #f4f1ec; --card: #fffdf9; --ink: #1d1b19; --muted: #6f675f; --faint: #a39a90; --line: #e2dbd1;
  --ember: #e2582a; --ember-soft: #fbe4d9; --night: #1d1b19; --r: 16px; color-scheme: light;
}
* { box-sizing: border-box; }
body.tut-site { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.tut-site a { color: inherit; }
.tut-site img { max-width: 100%; display: block; }
.tut-site :focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: var(--ember); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244,241,236,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.site-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.tut-site .btn, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px Inter, sans-serif; color: #fff; background: var(--ember);
  border: 0; border-radius: 99px; padding: 10px 18px; text-decoration: none; cursor: pointer; }
.btn.dark { background: var(--ink); }
.site-head .btn { margin-left: auto; }
@media (max-width: 720px) { .site-nav { display: none; } .site-head .btn { padding: 8px 14px; font-size: 14px; } }

/* page title */
.crumbs { font-size: 14px; color: var(--muted); margin: 28px 0 10px; }
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 6px; color: var(--faint); }
.tut-title { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; margin: 0 0 12px; }
.tut-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.tut-meta b { color: var(--ink); font-weight: 600; }

/* player */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; color: #fff; display: grid; place-items: center; text-align: center;
  background: var(--night) radial-gradient(circle at 75% 20%, rgba(226,88,42,.55), transparent 60%); box-shadow: 0 30px 60px -36px rgba(60,40,20,.6); }
.player .play { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; margin: 0 auto 12px; }
.player .play::before { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.player p { margin: 0; font-weight: 600; }
.player small { display: block; color: rgba(255,255,255,.6); font-size: 14px; margin-top: 2px; }

/* body: description left, up next right */
.tut-body { display: grid; gap: 36px; margin: 32px 0 56px; }
@media (min-width: 960px) { .tut-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } }
.tut-body h2 { font-size: 20px; margin: 0 0 10px; letter-spacing: -.01em; }
.tut-body p { margin: 0 0 16px; color: #4c4640; }
.learn { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.learn li { display: flex; gap: 10px; color: #4c4640; }
.learn li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--ember)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chapters { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.chapters li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.chapters time { font-variant-numeric: tabular-nums; color: var(--ember); font-weight: 600; min-width: 42px; }
.side-card { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: 0 16px 30px -26px rgba(60,40,20,.55); }
.side-card + .side-card { margin-top: 16px; }
.side-card h3 { margin: 0 0 6px; font-size: 17px; }
.side-card p { font-size: 15px; margin-bottom: 14px; }
.upnext { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.upnext a { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.upnext a[aria-current="page"] { opacity: .5; pointer-events: none; }
.thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; position: relative; overflow: hidden;
  background: var(--night) radial-gradient(circle at 75% 20%, rgba(226,88,42,.5), transparent 60%); }
.thumb::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -40% -50%; border-left: 12px solid rgba(255,255,255,.85); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.upnext b { display: block; font-size: 15px; line-height: 1.3; }
.upnext small { color: var(--muted); font-size: 13px; }

/* more tutorials */
.more { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.more h2 { font-size: 26px; letter-spacing: -.015em; margin: 0 0 20px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tcard { text-decoration: none; display: block; }
.tcard .thumb { width: 100%; border-radius: 14px; }
.tcard .thumb::after { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
.tcard small { display: block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.tcard b { display: block; font-size: 18px; line-height: 1.3; margin-top: 4px; }
.tcard span { color: var(--muted); font-size: 15px; }

/* list page */
.list-head { padding: 48px 0 32px; }
.list-head h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 10px; }
.list-head p { color: var(--muted); max-width: 52ch; margin: 0; font-size: 18px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-foot nav { display: flex; gap: 18px; margin-left: auto; }
.site-foot a { text-decoration: none; }
.grid.levels { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 8px; }
.grid.levels .tcard b { font-size: 16px; }
.grid.levels .tcard span { font-size: 14px; }

/* what you'll need: an iPhone and the app, drawn, then the App Store button */
.need { position: relative; overflow: hidden; padding-top: 18px; }
.need h3 { margin-bottom: 14px; }
.need-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; margin-bottom: 18px; text-align: center; }
.need-row figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.need-row figcaption { font-size: 13px; font-weight: 600; }
.need-row .plus { align-self: center; color: var(--faint); font-weight: 600; font-size: 18px; padding-bottom: 26px; }
.iphone { position: relative; width: 62px; height: 124px; border-radius: 15px; background: #1d1b19; padding: 3px; rotate: -6deg;
  box-shadow: inset 0 0 0 1.5px #5b544d, 0 14px 22px -12px rgba(40,30,20,.6); animation: needfloat 3.4s ease-in-out infinite; }
.iphone .screen { position: relative; height: 100%; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #f7b08f, #e2582a 55%, #9a3412); }
.iphone .screen::before { content: ""; position: absolute; top: 4px; left: 50%; width: 20px; height: 6px; translate: -50% 0; border-radius: 99px; background: #1d1b19; }
.iphone .screen img { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 14px rgba(255,255,255,.7); }
.app-tile { width: 76px; height: 76px; border-radius: 19px; background: #fff; display: grid; place-items: center; margin-bottom: 24px; rotate: 5deg;
  box-shadow: 0 6px 0 -1px #e4ddd3, 0 6px 0 0 #c9bfb3, 0 18px 24px -14px rgba(40,30,20,.55); animation: needfloat 3.4s ease-in-out -1.7s infinite; }
.app-tile img { width: 76px; height: 76px; border-radius: 19px; }
@keyframes needfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.appstore { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #000; color: #fff !important; border-radius: 12px;
  padding: 9px 14px; text-decoration: none; }
.appstore svg { width: 22px; height: 26px; fill: #fff; flex: none; }
.appstore span { display: grid; text-align: left; line-height: 1.1; }
.appstore small { font-size: 11px; }
.appstore b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
@media (prefers-reduced-motion: reduce) { .iphone, .app-tile { animation: none; } }
.tcard.soon { opacity: .55; }
.tcard.soon .thumb::after { display: none; }
video.player { display: block; width: 100%; background: #000; object-fit: contain; }
.player.wistia { display: block; background: #000; }
.player.wistia .wistia_embed { width: 100%; height: 100%; }

/* Optional email box under the player */
.notify { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; padding: 16px 18px; background: var(--card); border-radius: var(--r); box-shadow: 0 16px 30px -26px rgba(60,40,20,.55); }
.notify-text { flex: 1 1 240px; }
.notify-text b { display: block; font-size: 16px; }
.notify-text span { color: var(--muted); font-size: 15px; }
.notify-row { display: flex; gap: 8px; flex: 1 1 320px; }
.notify input { flex: 1; min-width: 0; font: 16px Inter, sans-serif; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.notify .btn { flex: none; }
.notify .btn:disabled { opacity: .6; }
.notify-note { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--muted); }
.notify-note:empty { display: none; }
.notify.done .notify-row { display: none; }
.notify.done .notify-note { color: var(--ink); font-weight: 600; }

/* Written step-by-step */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 28px; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 6px 44px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ember-soft); color: var(--ember); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps h3 { font-size: 17px; margin: 2px 0 6px; }
.steps ul { margin: 0 0 16px; padding-left: 20px; color: #4c4640; }
.steps ul li { margin-bottom: 4px; }
.tip { background: var(--ember-soft); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; color: var(--ink); font-size: 15px; }
.side-card.in-body { margin: 0 0 32px; max-width: 420px; }

/* Email before the video plays */
.video-gate { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center;
  background: rgba(20,18,16,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; }
.video-gate b { font-size: clamp(16px, 3.4vw, 22px); }
.gate-row { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.video-gate input { flex: 1; min-width: 0; font: 16px Inter, sans-serif; padding: 10px 14px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); }
.video-gate .btn { flex: none; }
.video-gate .btn:disabled { opacity: .7; }
.gate-err { margin: 0; font-size: 14px; color: #ffb79c; }
.gate-err:empty { display: none; }
.video-gate small { font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.65); }
.upnext .soon-item { display: flex; gap: 12px; align-items: center; opacity: .55; }
.upnext .soon-item .thumb::after { display: none; }
