/* The Academy's own story pages (academy_stories/<slug>, plan 92): each its own printed look, not the app's, the same
   in the dark theme. Maya goes solo is a comic: paper with a halftone dot, ink borders, Anton for the masthead,
   captions in mustard boxes, speech in white bubbles. Fonts are the app's own files. */

@font-face { font-family: "Anton"; src: url("/assets/anton-latin-684d7604.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; src: url("/assets/caveat-latin-f0eed7a8.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- Maya goes solo ---------------------------------------------------------------------------------------------- */
.st-maya {
  --paper: #f6ecd8; --ink: #1d1b19; --muted: #4a4540; --mustard: #d9a93a; --coral: #e8705a; --deep: #1f6c69;
  --anton: "Anton", Impact, sans-serif;
  color-scheme: light; background-color: var(--paper); color: var(--ink); font-family: var(--font-sans, system-ui, sans-serif);
  background-image: radial-gradient(rgba(29, 27, 25, .05) 1px, transparent 1px); background-size: 4px 4px;
  overflow-x: clip;
}
.st-maya a { color: inherit; }
.st-maya .wrap { max-width: 66rem; margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 4rem; }

.st-maya .crumbs { margin: 0 0 1.25rem; color: var(--muted); font-size: .8125rem; }
.st-maya .crumbs a { text-decoration: underline; text-underline-offset: 2px; }

/* Masthead */
.st-maya .mast { display: grid; gap: .4rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: 1rem; border-bottom: 4px solid var(--ink); }
.st-maya .series { margin: 0; font-family: var(--anton); font-size: clamp(3rem, 11vw, 6.5rem); font-weight: 400; line-height: .9; letter-spacing: .01em; text-transform: uppercase; }
.st-maya .series span { color: var(--coral); }
.st-maya .issue { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; margin: 0; font-size: .95rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.st-maya .issue b { padding: .15rem .5rem; border: 2px solid var(--ink); background: var(--mustard); }
.st-maya .lead { margin: .2rem 0 0; color: var(--muted); font-size: 1.05rem; }

/* Panels */
.st-maya .panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.8rem, 2vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.st-maya .panel { position: relative; border: 3px solid var(--ink); background: #fff; box-shadow: 6px 6px 0 var(--ink); }
.st-maya .panel img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.st-maya .cap {
  position: absolute; top: -3px; left: -3px; max-width: 78%; margin: 0; padding: .45rem .65rem;
  border: 3px solid var(--ink); background: var(--mustard);
  font-size: clamp(.8rem, 1.6vw, .98rem); font-weight: 800; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase;
}
.st-maya .say {
  position: absolute; max-width: 62%; margin: 0; padding: .55rem 1rem; border: 3px solid var(--ink); border-radius: 999px; background: #fff;
  font-size: clamp(.85rem, 1.8vw, 1.05rem); font-weight: 800; line-height: 1.2; text-align: center; text-transform: uppercase;
}
.st-maya .say::after {
  content: ""; position: absolute; bottom: -11px; left: var(--tail, 30%); width: 18px; height: 18px;
  border: 3px solid var(--ink); border-top: 0; border-left: 0; background: #fff; transform: rotate(45deg) skew(10deg, 10deg);
}
.st-maya .say-deal { top: 30%; right: 6%; --tail: 30%; }
.st-maya .say-jack { top: 18%; right: 4%; --tail: 62%; border-radius: 28px; }

/* The lesson: the four lines on a quote slip */
.st-maya .lesson { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.st-maya .lesson h2 { margin: 0; font-family: var(--anton); font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 400; line-height: .95; text-transform: uppercase; }
.st-maya .lesson p { margin: .6rem 0 0; color: var(--muted); font-size: 1.05rem; }
.st-maya .slip { padding: 1.2rem 1.4rem 1.4rem; border: 3px solid var(--ink); background: #fffdf6; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1.2deg); }
.st-maya .slip .top { margin: 0 0 .4rem; font-family: "Caveat", cursive; font-size: 1.6rem; }
.st-maya .slip ol { margin: 0; padding: 0; list-style: none; counter-reset: l; }
.st-maya .slip li {
  display: grid; grid-template-columns: 2rem 1fr 5rem; gap: .5rem; align-items: end; padding: .55rem 0;
  border-bottom: 2px dashed #c9bfae; counter-increment: l; font-size: 1.05rem; font-weight: 700;
}
.st-maya .slip li::before { content: counter(l); color: var(--coral); font-family: var(--anton); font-size: 1.3rem; font-weight: 400; }
.st-maya .slip li span:last-child { height: 1.2rem; border-bottom: 2px solid var(--ink); }
.st-maya .slip li.new { color: var(--deep); }

/* LocoTap's one line, the lessons, then the other stories */
.st-maya .used { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: space-between; margin: 2rem 0 0; padding: 1rem 1.2rem; border: 3px solid var(--ink); background: #fff; }
.st-maya .used p { margin: 0; font-weight: 600; }
.st-maya .btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem;
  border: 3px solid var(--ink); border-radius: var(--radius-control, .625rem); background: transparent; color: var(--ink);
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.st-maya .btn:hover { background: #fff6dd; }
.st-maya .btn:focus-visible, .st-maya .next a:focus-visible, .st-maya .lessons a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.st-maya .h2 { margin: 0 0 1rem; font-family: var(--anton); font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 400; line-height: 1; text-transform: uppercase; }
.st-maya .lessons { margin: 2.5rem 0 0; }
.st-maya .lessons ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.st-maya .lessons a { display: grid; gap: .25rem; height: 100%; padding: 1rem 1.1rem; border: 3px solid var(--ink); background: #fff; text-decoration: none; }
.st-maya .lessons a:hover { background: #fff6dd; }
.st-maya .lessons b { font-size: 1.1rem; }
.st-maya .lessons small { color: var(--muted); font-size: .95rem; }

.st-maya .next { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 2.5rem 0 0; }
.st-maya .next > * { display: grid; align-content: start; gap: .3rem; padding: 1rem 1.1rem; border: 3px solid var(--ink); background: #fff; text-decoration: none; }
.st-maya .next a:hover { background: #fff6dd; }
.st-maya .next .k { color: #a8402c; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.st-maya .next .t { font-family: var(--anton); font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.st-maya .next .soon { background: var(--deep); color: #fff; }
.st-maya .next .soon .k { color: #fff; }

.st-maya .foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: 2rem; color: #6b645c; font-size: .9rem; }

@media (max-width: 700px) {
  .st-maya .panels, .st-maya .lesson { grid-template-columns: 1fr; }
  .st-maya .cap { max-width: 88%; }
}

/* ---- Things I stopped carrying ----------------------------------------------------------------------------------- */
/* Five cards drawn as inline SVG that turn from then to now. Without JS (no .turns) both sides show stacked; with
   reduced motion the card shows its other side without the turn. */
@font-face { font-family: "DM Serif Display"; src: url("/assets/dm-serif-display-latin-3f6a6125.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Serif Display"; src: url("/assets/dm-serif-display-latin-ext-5e515044.woff2") format("woff2"); font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.st-carried {
  --cream: #fbf4e6; --ink: #22264a; --muted: #5e5a6e; --coral: #e8705a; --coral-ink: #b4472f;
  --serif: "DM Serif Display", Georgia, serif;
  color-scheme: light; background: var(--cream); color: var(--ink); font-family: var(--font-sans, Archivo, system-ui, sans-serif);
}
.st-carried a { color: inherit; }
.st-carried .defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.st-carried .wrap { max-width: 76rem; margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) 4rem; }
.st-carried .crumbs { margin: 0 0 1.25rem; color: var(--muted); font-size: .8125rem; }
.st-carried .crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.st-carried .mast { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.st-carried h1 { max-width: 16ch; margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 400; line-height: 1; }
.st-carried .lead { margin: .7rem 0 0; color: var(--muted); font-size: 1.1rem; }
.st-carried .btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem 1.05rem;
  border: 2px solid var(--ink); border-radius: var(--radius-control, .625rem); background: var(--ink); color: var(--cream);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: none;
}
.st-carried .btn.ghost { background: transparent; color: var(--ink); }
.st-carried .btn:focus-visible, .st-carried .flip:focus-visible, .st-carried a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.st-carried .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.st-carried .card { display: grid; align-content: start; gap: .6rem; scroll-margin-top: 5rem; }
.st-carried .flip { all: unset; display: block; position: relative; border-radius: 12px; cursor: pointer; }
.st-carried .flip .in { display: grid; gap: .75rem; }
.st-carried .side { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; box-shadow: 0 16px 34px -18px rgba(34, 38, 74, .55); }
.st-carried .n { margin: .35rem 0 0; color: var(--coral-ink); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.st-carried .line { min-height: 2.3em; margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.12; }
.st-carried .line .a::before { content: " Now: "; }
.st-carried .row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.st-carried .row .tool { margin-left: auto; padding: .4rem 0; font-weight: 700; text-decoration: none; }
.st-carried .row .tool:hover { text-decoration: underline; }
.st-carried .turn { display: none; min-width: 8.5rem; }
.st-carried .share { min-height: 44px; padding: .4rem .8rem; border-width: 1.5px; }

/* Turning, once card-turn is on */
.st-carried.turns .flip { aspect-ratio: 4 / 5; perspective: 1400px; }
.st-carried.turns .flip.still { aspect-ratio: auto; }
.st-carried.turns .flip .in { display: block; position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2, .75, .2, 1); }
.st-carried.turns .flip.still .in, .st-carried.turns .flip.still .side { position: static; }
.st-carried.turns .side { position: absolute; inset: 0; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.st-carried.turns .side.now { transform: rotateY(180deg); }
.st-carried.turns .card.on .flip .in { transform: rotateY(180deg); }
.st-carried.turns .turn { display: inline-flex; }
.st-carried.turns .line .a::before { content: none; }
.st-carried.turns .line .a, .st-carried.turns .card.on .line .b { display: none; }
.st-carried.turns .card.on .line .a { display: inline; }

/* Drawing */
.st-carried .hw { font-family: "Caveat", cursive; fill: #33313f; }
.st-carried .pen { font-family: "Caveat", cursive; fill: #6b6874; }
.st-carried .ui { font-family: Archivo, sans-serif; fill: var(--ink); }
.st-carried svg .cap { font: 800 13px Archivo, sans-serif; letter-spacing: .12em; fill: #7a7488; }
.st-carried .t1 { font: 800 21px Archivo, sans-serif; fill: var(--ink); }
.st-carried .t2 { font: 700 16px Archivo, sans-serif; fill: var(--ink); }
.st-carried .t3 { font: 500 15px Archivo, sans-serif; fill: #6b6577; }

/* The lessons, then the other stories */
.st-carried .h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 400; line-height: 1.05; }
.st-carried .lessons { margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.st-carried .lessons ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.st-carried .lessons a, .st-carried .more a { display: grid; gap: .3rem; height: 100%; padding: 1.1rem 1.3rem; border-radius: 12px; background: #fff; text-decoration: none; box-shadow: 0 1px 0 rgba(34, 38, 74, .12); }
.st-carried .lessons a:hover, .st-carried .more a:hover { background: #fff8e8; }
.st-carried .lessons b { font-size: 1.1rem; }
.st-carried .lessons small { color: var(--muted); font-size: .95rem; }
.st-carried .more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.st-carried .more .k { color: var(--coral-ink); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.st-carried .more .t { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }

@media (max-width: 700px) { .st-carried .more { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .st-carried.turns .flip .in, .st-carried.turns .card.on .flip .in { transition: none; transform: none; }
  .st-carried.turns .side, .st-carried.turns .side.now { transform: none; backface-visibility: visible; -webkit-backface-visibility: visible; }
  .st-carried.turns .side.now, .st-carried.turns .card.on .side.before { visibility: hidden; }
  .st-carried.turns .card.on .side.now { visibility: visible; }
}

@media print {
  @page { size: A4; margin: 10mm; }
  body > :not(:has(.st-carried)), body :has(> .st-carried) > :not(.st-carried) { display: none !important; }
  .st-carried { background: #fff; }
  .st-carried .crumbs, .st-carried .mast .btn, .st-carried .row, .st-carried .more, .st-carried .lessons, .st-carried #left { display: none; }
  .st-carried .wrap { max-width: none; padding: 0; }
  .st-carried h1 { max-width: none; font-size: 26pt; }
  .st-carried .cards { grid-template-columns: 1fr 1fr; gap: 6mm; }
  .st-carried .card { break-inside: avoid; }
  .st-carried .flip, .st-carried.turns .flip { aspect-ratio: auto; }
  .st-carried .flip .in, .st-carried.turns .flip .in { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm; position: static; transform: none !important; }
  .st-carried .side, .st-carried.turns .side, .st-carried.turns .side.now { position: static; visibility: visible; transform: none; backface-visibility: visible; -webkit-backface-visibility: visible; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .st-carried .line .b, .st-carried.turns .line .b, .st-carried.turns .line .a { display: inline; }
  .st-carried.turns .line .a::before { content: " Now: "; }
  .st-carried .line { min-height: 0; font-size: 13pt; }
}

/* ---- Ravi's two seasons: the same cards, painted, with a year above each line ---------------------------------- */
.st-ravi .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.st-ravi .line { min-height: 3.1em; font-size: 1.35rem; }
.st-ravi .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.st-ravi .row .turn { min-width: 0; justify-content: center; padding-inline: .7rem; }
.st-ravi .row .tool { grid-column: 1 / -1; justify-self: start; margin-left: 0; padding: .1rem 0; }
.st-ravi .side { object-fit: cover; background: #e9dfcc; }
.st-ravi .line .b, .st-ravi .line .a { display: block; }
.st-ravi .line .a { margin-top: .6rem; }
.st-ravi .line .a::before, .st-ravi.turns .line .a::before { content: none; }
.st-ravi .line i { display: block; margin-bottom: .15rem; color: var(--muted); font: 800 .78rem/1.2 var(--font-sans, Archivo, sans-serif); font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.st-ravi.turns .line .a { margin-top: 0; }
.st-ravi.turns .card.on .line .a { display: block; }
@media print {
  .st-ravi .line .b, .st-ravi.turns .line .b, .st-ravi.turns .line .a { display: block; }
  .st-ravi.turns .line .a::before { content: none; }
}

/* The site's footer stays light under this always-light page, in the dark theme too. */
.site-foot { color-scheme: light; }
