/* stevensbored.dev page CSS. Loaded after the kit's stylesheets.
   The :root block is exactly what `start.mjs brand` printed for the artwork's own colours:
   the badge's navy disc #0c1020, the mint of the Zs and glyphs #acf8b4, a surface lifted toward
   the laptop's charcoal, and a cream ink tinted from the mug. */
:root {
  --p-bg: #0c1020; --p-surface: #171b2b; --p-ink: #f4ede6; --p-muted: #89888d;
  --p-accent: #acf8b4; --p-accent-ink: #0c1020; --p-action: #acf8b4; --p-action-ink: #0c1020;
  --p-inv-bg: #f4ede6; --p-inv-surface: #e1dbd7; --p-inv-ink: #0c1020; --p-inv-muted: #595a65;
  --p-inv-accent: #0c1020; --p-inv-accent-ink: #f4ede6; --p-inv-action: #0c1020; --p-inv-action-ink: #f4ede6;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --display-stretch: 96%;
  color-scheme: dark;
}

/* the wordmark, set in type: the badge beside the name, ".dev" in the artwork's mint */
.nav__logo { font-weight: 700; }
.nav__logo img { height: 36px; width: auto; }
.nav__logo b { font-weight: inherit; color: var(--accent); }
/* under 480 the bar holds the logo and the menu button; the main action is in the sheet and the hero */
@media (max-width: 479px) { .nav:not(.is-open) .nav__actions { display: none; } .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; } }

/* hero: the scene is a cut-out on the page ground */
.hero--product .hero__stage > img.is-cutout { padding: 0; }
/* the hero's lead and buttons start on the page's split line (column 8), like every split below */
@media (min-width: 1024px) {
  #top .hero--product .hero__head .hero__lead, #top .hero--product .hero__head > .btn-row { grid-column: 8 / -1; }
}

/* home #doors: two cards, one picture each */
#doors .panel { height: auto; min-height: 0; aspect-ratio: 8 / 7; }
#doors .link { min-height: 44px; }

/* #desk: the inventory of the picture as a list, the badge beside it */
.items > li { grid-template-columns: 16rem minmax(0, 1fr); align-items: baseline; padding-block: var(--s-5); }
.items > li:first-child { padding-top: 0; }
.items .rows__name { font: var(--display-weight) calc(var(--t-h3) * 1.3)/1.1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); }
.items > li > p { grid-column: 2; }
@media (max-width: 639px) { .items > li { grid-template-columns: minmax(0, 1fr); } .items > li > p { grid-column: 1; } .items .rows__name { font-size: var(--t-h3); } }
.badge { display: block; width: 100%; height: auto; }
/* a short desktop window (1024x768): tighter rows keep the list on its one screen */
@media (min-width: 1024px) and (max-height: 800px) { .items > li { padding-block: var(--s-3); } }
/* a tablet stacks the list over the badge and keeps both on one screen */
@media (min-width: 640px) and (max-width: 1023px) { .badge { width: min(100%, 400px); } .items > li { padding-block: var(--s-3); } .items .rows__name { font-size: var(--t-h3); } }
@media (max-width: 639px) { .badge { width: min(100%, 320px); } }

/* the shelves (Projects, Games): cards from content/catalog.json. The column count follows the width:
   as many 280px columns as fit, so a shelf of 2 is two wide cards and a shelf of 12 is rows of four. */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-6) var(--s-5); list-style: none; margin: 0; padding: 0; }
.shelf > .tile { align-content: start; gap: var(--s-3); }
.shelf .tile__media { display: block; max-height: 360px; width: 100%; }
.shelf .tile__media > img { display: block; }
.shelf .tile__price { color: var(--accent); font-size: var(--t-small); font-weight: 500; }
.shelf .tile > p { max-width: 52ch; }
.shelf .tile__note { color: var(--muted); }
.shelf .link { min-height: 44px; justify-self: start; }
/* a card with no picture: its frame holds a few words in the display face */
.tile--text .tile__media { display: grid; place-items: center; padding: var(--s-5); background: none; border: 1px dashed color-mix(in oklab, var(--ink) 35%, transparent); color: var(--ink); text-decoration: none; }
.tile--text .tile__media > p { font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); text-align: center; max-width: 14ch; }
/* hover answers at once with a colour change only: the client's rule allows no movement */
.shelf a.tile__media:hover { outline: 2px solid var(--action); outline-offset: 3px; }
.shelf a.tile__media:hover > img { filter: brightness(0.86); }
/* a shelf grows with its catalog: the section is at least one screen and as tall as its cards */
#shelf { height: auto; min-height: calc(var(--h, 1) * 100svh); }

/* touch: no double-tap delay, a tap highlight in the brand mint */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: color-mix(in oklab, var(--p-accent) 25%, transparent); }

/* footer: the visit timer */
#timer { font-variant-numeric: tabular-nums; }

/* The client's standing design rule: hover changes colour or underline at once; nothing moves,
   lifts, zooms or eases on hover. This turns the kit's hover travel off without touching the
   hero's entrance or the dealt moment. */
html[data-motion] :is(.btn, .link, .nav__link, .nav__logo, .card, .panel, .frame__img, .tile__media, .tile__media > img, .footer a, .skip-link),
html[data-motion] :is(.btn, .link, .nav__link, .footer a)::after,
html[data-motion] :is(.btn, .link, .nav__link, .footer a)::before,
html[data-motion] .m-arrow :is(.m-arrow__stem, .m-arrow__head) { transition: none !important; }
html[data-motion] :is(.btn, .card, .link):is(:hover, :active),
html[data-motion] :is(.btn, .link):hover::after,
html[data-motion] .card--open:hover > .panel,
html[data-motion] :is(a, .card, .m-zoom):hover :is(img, video, .frame__img),
html[data-motion] :is(a, button):hover > .m-arrow :is(.m-arrow__stem, .m-arrow__head) { transform: none !important; }
html[data-motion] .m-arrow .m-arrow__stem { opacity: 1; }

/* Catalog pages are not one-screen-per-section: a one-sentence section and the closing band take the room
   their words need, so no screen is mostly empty. */
main > section.section.statement,
main > .section.statement {
  height: auto;
  min-height: 0;
  padding-block: clamp(72px, 9vw, 128px);
}
footer.closing {
  height: auto;
  min-height: 0;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: 40px;
}
main > section#desk { height: auto; min-height: 0; }

/* The two doors show the whole drawing, so the section is as tall as its cards need. */
main > section#doors { height: auto; min-height: 0; }

/* A hero with words only (the Games page): as tall as its words, the list starts right under it. */
main > section.hero.hero--words { height: auto; min-height: 0; padding-bottom: clamp(40px, 6vw, 80px); }
main > section.hero.hero--words + section { padding-top: clamp(32px, 4vw, 56px); }
