/* =============================================================
   crazllana.com: all the styles
   -------------------------------------------------------------
   Colors are set once in :root. Change a value there and it
   updates everywhere on the site.
   Written mobile-first: the base styles are for phones, and the
   @media (min-width: 640px) block near the bottom is for bigger
   screens.
   ============================================================= */

:root {
  /* Background stripes, yellow → deep red (from the mood board) */
  --sun:        #FAC22B;
  --marigold:   #F6A41F;
  --amber:      #F08A1C;
  --orange:     #E8711C;
  --tangerine:  #DB5A1E;
  --rust:       #BF3E18;
  --red:        #A8301B;
  --brick:      #8E2316;
  --maroon:     #6E1A10;

  /* Llana's colors */
  --cream:      #fff5e6dd;  /* card background */
  --paper:      #FBE5C6;  /* price boxes */
  --fur:        #E4B583;
  --fawn:       #B9804E;
  --cocoa:      #3B2217;  /* text + outlines */
  --cocoa-soft: #6E4A35;  /* quieter text */

  --font-display: "Chewy", "Comic Sans MS", cursive;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 12px;
}


/* ---------- Basics ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #C9531F;  /* shows only if the scene can't */
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  /* top padding leaves room for Llana's ears on the card */
  padding:
    calc(64px + env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    calc(24px + env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cocoa);
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Autumn background scene ----------
   Sky + sun are CSS gradients. Hills and trees are the repeating
   pictures in assets/scene/ (back to front: far, mid, near).
   It's fixed in place, so the card scrolls over it. */

.scene {
  --k: .75;               /* scene size: smaller on phones */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;         /* doesn't jump when the phone's address bar hides */
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  background:
    /* sun + glow */
    radial-gradient(circle at 84% 66%,
      #FFF1C4 0 2.6rem, rgba(255, 222, 140, .55) 2.7rem, rgba(255, 200, 110, 0) 13rem),
    /* sky */
    linear-gradient(#7E2616, #A8381B 18%, #D25E22 42%, #EE8C30 62%, #F7B451 80%, #FAD383);
}

.scene__layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: repeat-x;
  background-size: auto 100%;
}
.scene__clouds {
  top: 6%;
  bottom: auto;
  height: calc(260px * var(--k));
  background-image: url("../scene/clouds.svg");
}
/* Layers from back to front. "bottom" is how high each one sits;
   raise the back ones for less sky. */
.scene__far {                 /* hazy hills */
  bottom: calc(80px * var(--k));
  height: calc(340px * var(--k));
  background-image: url("../scene/far.svg");
  background-position: 30% 100%;
}
.scene__garden {              /* sunflower + pumpkin field */
  bottom: calc(95px * var(--k));
  height: calc(120px * var(--k));
  background-image: url("../scene/garden.svg");
  background-position: 15% 100%;
}
.scene__mid {                 /* smaller trees + bushes */
  bottom: calc(28px * var(--k));
  height: calc(300px * var(--k));
  background-image: url("../scene/mid.svg");
  background-position: 70% 100%;
}
.scene__near {                /* big trees in front */
  height: calc(320px * var(--k));
  background-image: url("../scene/near.svg");
  background-position: 50% 100%;
}

/* falling leaves (made by main.js) */
.leaf {
  position: absolute;
  top: -40px;
  width: var(--size);
  height: var(--size);
  opacity: var(--o, .9);
  animation: leaf-fall var(--dur) linear var(--delay) infinite;
  will-change: transform;
}
.leaf svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: leaf-sway var(--sway) ease-in-out var(--delay) infinite alternate;
}
@keyframes leaf-fall {
  to { transform: translate3d(var(--drift), calc(100vh + 80px), 0); }
}
@keyframes leaf-sway {
  from { transform: translateX(-22px) rotate(-40deg); }
  to   { transform: translateX(22px) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .leaf { display: none; }
}

/* Easter eggs: Sai & Strix on the hills (made by main.js) */
.critter {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}
.critter > img {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
}
.critter__say {               /* little speech bubble */
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  min-width: 1.9em;
  padding: 0 .4em .05em;
  background: #FFF5E6;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  color: var(--ink, var(--rust));
  font: 400 calc(17px * var(--k)) / 1.25 var(--font-display);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) scale(.3);
  transform-origin: 50% 120%;
  transition: opacity .12s ease, transform .22s cubic-bezier(.3, 1.7, .5, 1);
}
.critter__say::after {        /* the bubble's tail */
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -4px;
  background: inherit;
  border: solid var(--cocoa);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.critter__say--both b {      /* shared heart: half Sai's color, half Strix's */
  font-weight: 400;
  background: linear-gradient(90deg, var(--ink-a) 50%, var(--ink-b) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.critter__say.is-on {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1rem; }
a { color: var(--rust); font-weight: 700; text-underline-offset: .15em; }
img, video { max-width: 100%; }
:focus-visible { outline: 3px solid var(--cocoa); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ---------- The card (everything sits in here) ---------- */

.card {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.25rem;
  background: var(--cream);
  border: 3px solid var(--cocoa);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--maroon);
}

/* Llana's ears poking out of the top of the card */
.card::before,
.card::after {
  content: "";
  position: absolute;
  bottom: calc(100% - 6px);
  width: 62px;
  height: 58px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 56'%3E%3Cpath d='M3 60 L23 8 Q28 -1 33 8 L57 60 Z' fill='%23D9A06A' stroke='%233B2217' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M15.7 27 L23 8 Q28 -1 33 8 L41.8 27 Q28.7 21 15.7 27 Z' fill='%233B2217'/%3E%3Cpath d='M15 60 L26 30 Q28.5 25 31 30 L45 60 Z' fill='%23F7DCC0'/%3E%3C/svg%3E") bottom center / contain no-repeat;
  transform-origin: bottom center;
  pointer-events: none;
}
.card::before { left: 12%;  transform: rotate(-10deg); }
.card::after  { right: 12%; transform: scaleX(-1) rotate(-10deg); }


/* ---------- Header: avatar, name, status ---------- */

.profile { text-align: center; }

.shot.avatar {
  width: 112px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 7px var(--marigold);
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 13vw, 4rem);
  letter-spacing: .02em;
  color: var(--amber);
  text-shadow: 2px 2px 0 var(--rust), 4px 4px 0 var(--cocoa);
}

.tagline {
  margin: .5rem 0 0;
  font-weight: 700;
  color: var(--cocoa-soft);
}

/* commission status + "View queue" side by side */
.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: .9rem;
}
.status-row .status { margin: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: .9rem 0 0;
  padding: .3rem .95rem .3rem .75rem;
  background: #fff;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
}
.status__dot {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: var(--orange);
}
.status--closed { color: var(--cocoa-soft); }
.status--closed .status__dot { background: var(--cocoa-soft); }

@media (prefers-reduced-motion: no-preference) {
  .status--open .status__dot { animation: pulse 1.8s ease-out infinite; }
}
@keyframes pulse {
  from { box-shadow: 0 0 0 0 rgba(232, 113, 28, .65); }
  to   { box-shadow: 0 0 0 .55rem rgba(232, 113, 28, 0); }
}

/* "View queue": same pill as the status, but a button you can tap */
.queue-link {
  gap: .4rem;
  padding-left: .65rem;
  background: var(--sun);
  color: var(--cocoa);
  box-shadow: 0 3px 0 var(--cocoa);
  text-decoration: none;
  touch-action: manipulation;
  transition: transform .12s ease, box-shadow .12s ease;
}
.queue-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.queue-link svg circle { fill: currentColor; stroke: none; }
@media (hover: hover) {
  .queue-link:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--cocoa); }
}
.queue-link:active,
.queue-link[aria-current="page"] {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--cocoa);
}
.queue-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}


/* ---------- Menu buttons ---------- */

.nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1.5rem;
}

.btn {
  --b: var(--orange);  /* button color */
  --t: var(--cocoa);   /* text color */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .45rem .35rem;
  background: var(--b);
  color: var(--t);
  border: 2px solid var(--cocoa);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--cocoa);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform .12s ease, box-shadow .12s ease;
}

/* button colors, picked by which page the button opens */
.nav .btn[href="#about"],
.nav .btn[href="#animations"]  { --b: var(--sun); }
.nav .btn[href="#sketches"],
.nav .btn[href="#ref-sheets"]  { --b: var(--marigold); }
.nav .btn[href="#cell-shaded"],
.nav .btn[href="#tos"]         { --b: var(--orange); }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--cocoa); }
}
.btn:active,
.btn[aria-current="page"] {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--cocoa);
}
.btn[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}

@media (max-width: 340px) {
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------- Little divider under the menu ---------- */

.divider {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 1.75rem 0 1.5rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--fur);
}
.divider span {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--sun);
}
.divider span:nth-child(2) { background: var(--orange); }
.divider span:nth-child(3) { background: var(--red); }


/* ---------- Pages (only one shows at a time) ---------- */

.js .page:not(.is-active) { display: none; }

/* fade in when switching pages (not on first load, so phones show content right away) */
@media (prefers-reduced-motion: no-preference) {
  .switched .page.is-active { animation: page-in .3s ease both; }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.page h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  text-align: center;
  color: var(--orange);
  text-shadow: 2px 2px 0 var(--cocoa);
}
/* hand-drawn underline */
.page h2::after {
  content: "";
  display: block;
  width: 7.5rem;
  height: 10px;
  margin: .4rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6 C25 2 45 9 62 5 S100 2 117 5' fill='none' stroke='%23F6A41F' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.page h2:focus { outline: none; }

.lead {
  max-width: 100%;
  margin: 1rem auto 1.5rem;
  text-align: center;
  color: var(--cocoa-soft);
}

.subhead {
  margin: 1.75rem 0 .75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  text-align: center;
  color: var(--rust);
}


/* ---------- Price boxes ---------- */

.offer {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--paper);
  border: 2px solid var(--cocoa);
  border-radius: 16px;
}
.offer h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem .75rem;
  margin-bottom: .6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--rust);
}
.offer h3 b {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cocoa);
}
.offer h4 {
  margin: 1rem 0 .3rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
}
.offer > :last-child { margin-bottom: 0; }

.note {
  margin: .75rem 0 0;
  font-size: .9rem;
  font-weight: 800;
  color: var(--rust);
}

/* "Simple ........ $5" lists */
.prices {
  margin: 0;
  padding: 0;
  list-style: none;
}
.prices li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .2rem 0;
}
.prices li::after {          /* the dotted line */
  content: "";
  order: 1;
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--fawn);
  transform: translateY(-.3em);
}
.prices b {
  order: 2;
  font-weight: 800;
  white-space: nowrap;
}

/* price grids (characters, scenes) */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.price-table th,
.price-table td {
  padding: .5rem .3rem;
  text-align: center;
}
.price-table thead th {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.25;
  text-transform: uppercase;
  vertical-align: bottom;
  color: var(--cocoa-soft);
}
.price-table tbody th {
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}
.price-table td {
  font-weight: 800;
  white-space: nowrap;
}
.price-table tbody tr > * { border-top: 2px dotted var(--fawn); }

/* "what's included" chips on ref sheets */
.includes {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.includes li {
  padding: .15rem .7rem;
  background: var(--cream);
  border: 2px solid var(--fur);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
}

/* numbered steps on About */
.steps {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  min-height: 2rem;
  padding-left: 2.75rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--marigold);
  border: 2px solid var(--cocoa);
  border-radius: 50%;
  font-weight: 800;
  line-height: 1;
}


/* ---------- Galleries ---------- */

.examples-label {
  margin: 0 0 .5rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  color: var(--cocoa-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: .6rem;
  margin: 0 0 2.25rem;
}
.gallery--feature {
  grid-template-columns: minmax(0, 1fr);
  max-width: 20rem;
  margin: 0 auto 1.75rem;
}
.gallery--feature .shot,
.gallery--portrait .shot { aspect-ratio: 3 / 4; }

/* one picture box */
.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--cocoa);
  border-radius: 14px;
}
.shot img,
.shot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.shot.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.shot.tall { grid-row: span 2; aspect-ratio: auto; }

.gallery .shot[role="button"] { cursor: zoom-in; }
@media (hover: hover) {
  .gallery .shot[role="button"]:hover img { transform: scale(1.04); }
}

/* placeholder when a picture hasn't been added yet */
.shot.is-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  padding: .75rem;
  text-align: center;
  border-style: dashed;
  background: repeating-linear-gradient(-45deg, var(--paper) 0 12px, #F8DDB9 12px 24px);
  color: var(--cocoa-soft);
}
.gallery .shot.is-missing { cursor: default; }
.shot.is-missing img,
.shot.is-missing video { visibility: hidden; }
.shot.is-missing::before {
  content: "image missing";
  font-size: .85rem;
  font-weight: 800;
  color: var(--rust);
}
.shot.is-missing[data-kind="video"]::before { content: "video missing"; }
.shot.is-missing::after {
  content: attr(data-missing);
  max-width: 100%;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .7rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.avatar.is-missing { padding: 1rem; }
.avatar.is-missing::before { font-size: .7rem; }
.avatar.is-missing::after { font-size: .6rem; }


/* ---------- Links on About ---------- */

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  max-width: 24rem;
  margin: 0 auto;
}
@media (max-width: 359px) {
  .links { grid-template-columns: minmax(0, 1fr); }
}

/* Social buttons. Each one has its own theme:
   --theme = the fill that slides in on hover
   --ink   = icon color once the badge turns cream */
.social {
  --theme: var(--orange);
  --ink: var(--rust);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 52px;
  padding: .4rem 1rem .4rem .45rem;
  background: #fff;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--cocoa);
  color: var(--cocoa);
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, color .2s ease;
}
.social--instagram {
  --theme: linear-gradient(115deg, var(--amber) 0%, var(--rust) 40%, var(--red) 72%, var(--maroon) 100%);
  --ink: var(--tangerine);
}
.social--youtube {
  --theme: #C42B1C;
  --ink: #C42B1C;
}

/* the fill that slides in from the left */
.social::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--theme);
  transform: translateX(-101%);
  transition: transform .3s ease;
}

/* round icon badge */
.social__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--theme);
  border: 2px solid var(--cocoa);
  border-radius: 50%;
  color: var(--cream);
  transition: background-color .2s ease, color .2s ease;
}
.social__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* hover (mouse), keyboard focus, and tap */
@media (hover: hover) {
  .social:hover {
    color: var(--cream);
    transform: translateY(-3px);
    box-shadow: 0 7px 0 var(--cocoa);
  }
  .social:hover::before { transform: none; }
  .social:hover .social__icon { background: var(--cream); color: var(--ink); }
}
.social:focus-visible { color: var(--cream); }
.social:focus-visible::before,
.social:active::before { transform: none; }
.social:focus-visible .social__icon,
.social:active .social__icon { background: var(--cream); color: var(--ink); }
.social:active {
  color: var(--cream);
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--cocoa);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .social:hover .social__icon { animation: wiggle .5s ease; }
}
@keyframes wiggle {
  30% { transform: rotate(-14deg) scale(1.12); }
  60% { transform: rotate(9deg) scale(1.08); }
}


/* ---------- TOS ---------- */

.draft {
  padding: .8rem 1rem;
  background: #fff;
  border: 2px dashed var(--rust);
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
  color: var(--rust);
}
.tos > h3 {
  margin: 1.5rem 0 .4rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--rust);
}
.tos > ul { margin: 0; padding-left: 1.25rem; }
.tos li { margin: .3rem 0; }
.tos li::marker { color: var(--orange); }

.will-wont {
  display: grid;
  gap: .75rem;
  margin-top: 1.75rem;
}
.will-wont .offer { margin: 0; }
.will-wont ul { margin: 0; padding: 0; list-style: none; }
.will-wont li::before { font-weight: 800; margin-right: .4rem; }
.will li::before { content: "✓"; color: var(--orange); }
.wont li::before { content: "✕"; color: var(--brick); }


/* ---------- Art queue (filled in by main.js) ---------- */

.queue {
  display: grid;
  gap: .8rem;
}
.queue__group {
  --c: var(--fur);
  margin: 0;
  padding: .85rem .9rem .95rem;
  background: var(--paper);
  border: 2px solid var(--cocoa);
  border-radius: 16px;
}
.queue__group[data-status="in-progress"] { --c: var(--marigold); }
.queue__group[data-status="almost-done"] { --c: var(--orange); }
.queue__group[data-status="finished"]    { --c: var(--rust); }

.queue__group h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .55rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--rust);
}
.queue__group h3::before {         /* colored dot */
  content: "";
  flex: none;
  width: .75rem;
  height: .75rem;
  background: var(--c);
  border: 2px solid var(--cocoa);
  border-radius: 50%;
}
.queue__count {
  margin-left: auto;
  min-width: 1.8rem;
  padding: 0 .45rem;
  background: #fff;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  color: var(--cocoa);
}

.queue__list {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.queue__item {
  padding: .45rem .7rem .5rem;
  background: #fff;
  border: 2px solid var(--fur);
  border-left: 6px solid var(--c);
  border-radius: 12px;
  line-height: 1.35;
}
.queue__name {
  display: block;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.queue__name--anon {
  font-style: italic;
  font-weight: 700;
  color: var(--cocoa-soft);
}
.queue__order {
  display: block;
  margin-top: .1rem;
  font-size: .92rem;
  color: var(--cocoa-soft);
  overflow-wrap: anywhere;
}
.queue__group[data-status="finished"] .queue__name::before {
  content: "✓ ";
  color: var(--rust);
  font-style: normal;
}

.queue__empty {
  margin: 0;
  font-size: .9rem;
  font-style: italic;
  color: var(--cocoa-soft);
}
.queue__msg {
  margin: 0;
  padding: .9rem 1rem;
  background: var(--paper);
  border: 2px dashed var(--fawn);
  border-radius: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--cocoa-soft);
}
.queue__msg .to-top { margin-top: .25rem; }
.queue__updated {
  margin: .9rem 0 0;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  color: var(--cocoa-soft);
}


/* ---------- Back to top + footer ---------- */

.to-top {
  display: block;
  min-height: 44px;
  margin: .5rem auto 0;
  padding: .6rem 1rem;
  background: none;
  border: 0;
  color: var(--rust);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  margin: 1.5rem auto 0;
  text-align: center;
}
.site-footer p {
  display: inline-block;
  margin: 0;
  padding: .45rem 1rem;
  background: rgba(59, 34, 23, .85);
  border-radius: 999px;
  color: var(--cream);
  font-size: .8rem;
  font-weight: 700;
}


/* ---------- Picture pop-up ---------- */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 4rem 1rem 1.5rem;
  background: transparent;
  border: 0;
  color: var(--cream);
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.lightbox::backdrop { background: rgba(40, 18, 8, .9); }
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  object-fit: contain;
  border: 3px solid var(--cream);
  border-radius: 10px;
}
.lightbox__caption {
  margin: 0;
  font-weight: 700;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: max(.75rem, env(safe-area-inset-top));
  right: max(.75rem, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  background: var(--sun);
  border: 2px solid var(--cocoa);
  border-radius: 50%;
  color: var(--cocoa);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
html:has(.lightbox[open]) { overflow: hidden; }


/* ---------- Bigger screens (tablets, computers) ---------- */

@media (min-width: 520px) {
  .will-wont { grid-template-columns: 1fr 1fr; }
  .queue { grid-template-columns: 1fr 1fr; align-items: start; }
  .queue > .queue__msg { grid-column: 1 / -1; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .scene { --k: 1; }
  body {
    padding-top: calc(6.5rem + env(safe-area-inset-top));
    padding-bottom: 3rem;
  }
  .card { padding: 2.25rem 2.25rem 1.75rem; }
  .card::before,
  .card::after { width: 84px; height: 78px; }
  .card::before { left: 15%; }
  .card::after  { right: 15%; }
  .shot.avatar { width: 128px; }
  .page h2 { font-size: 2.6rem; }
  .gallery { gap: .8rem; }
}

/* big screens get a slightly bigger scene */
@media (min-width: 1200px) and (min-height: 760px) {
  .scene { --k: 1.2; }
}
