:root { --c-cream: #fffeeb; --c-wall: #f6e6cf; --c-stripe: #efd9bc; --c-sun: #ffd25f; --c-grass: #96cd50; --c-glass: #9fd8f5; --c-tile: #f27070; --c-wood: #dd9a79; --c-outline: #97513e; --c-text: #5a3d2b; }
/* The site's style: direction A, "Papel tapiz y ventana"
   (specs/web/site-astro.md §5). The site is a wall of the house: the
   striped wallpaper, the arched window of the icon, frames hanging, the
   news as postcards and the wooden floor at the foot. The brand's colors
   come from src/site.config.ts as --c-<name> (src/pages/site.css.ts, which
   puts them in :root above this file). Mobile first; the dark theme is the
   house at night. */

/* ---------- Fonts (served by the site: no third parties) ---------- */
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/fonts/nunito-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/fonts/fredoka-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens: day (light) and night (dark) ---------- */
:root {
	--bg: var(--c-wall);
	--stripe: color-mix(in srgb, var(--c-stripe) 85%, transparent);
	--paper: var(--c-cream);
	--ink: var(--c-outline);
	--text: var(--c-text);
	--muted: color-mix(in srgb, var(--c-text) 72%, var(--c-wall));
	--link: var(--c-outline);
	--wood: var(--c-wood);
	--wood-dark: #c98463;
	--floor-text: #3f251b;
	--shade: rgba(151, 81, 62, .2);
	--mark: #ffe08a;
	--display: "Fredoka", "Nunito", system-ui, sans-serif;
	--body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--column: 44rem;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #3a2a28;
		--stripe: #463232;
		--paper: #4b3732;
		--ink: #1e1310;
		--text: #f6e6cf;
		--muted: #d9bfa5;
		--link: var(--c-sun);
		--wood: #8b5a44;
		--wood-dark: #74483a;
		--floor-text: #f6e6cf;
		--shade: rgba(0, 0, 0, .35);
		--mark: #8a6a1e;
		color-scheme: dark;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100vh; display: flex; flex-direction: column;
	background-color: var(--bg);
	background-image: linear-gradient(90deg, var(--stripe) 50%, transparent 50%);
	background-size: 28px 28px;
	color: var(--text);
	font: 400 1rem/1.6 var(--body);
	overflow-wrap: break-word;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.2; text-wrap: balance; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
code { font: .9em var(--mono); background: color-mix(in srgb, var(--wood) 25%, transparent); padding: .05em .3em; border-radius: .3em; }
mark { background: var(--mark); color: var(--text); padding: 0 .15em; border-radius: .2em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { flex: 1; width: 100%; max-width: var(--column); margin: 0 auto; padding: 0 1rem 2.5rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	padding: .75rem 1rem .5rem;
	background: linear-gradient(var(--bg) 72%, transparent);
}
.site-header .brand { display: block; line-height: 0; }
.site-header .brand img { width: 128px; height: auto; }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.chip {
	display: inline-flex; align-items: center; gap: .3rem;
	font: 700 .85rem/1 var(--display); padding: .45rem .75rem; border-radius: 999px;
	border: 2.5px solid var(--ink); background: var(--paper); color: var(--text); text-decoration: none;
	box-shadow: 0 3px 0 var(--ink);
}
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.site-menu { position: relative; }
.site-menu summary {
	list-style: none; cursor: pointer; width: 2.4rem; height: 2.4rem; border-radius: .75rem;
	border: 2.5px solid var(--ink); background: var(--paper); box-shadow: 0 3px 0 var(--ink);
	display: grid; place-items: center;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span { display: block; width: 1rem; height: 2.5px; border-radius: 2px; background: var(--text); box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text); }
.site-menu[open] summary span { box-shadow: none; transform: rotate(45deg); }
.site-menu[open] summary span::after { content: ""; display: block; height: 2.5px; border-radius: 2px; background: var(--text); transform: rotate(90deg); }
.site-menu nav {
	position: absolute; right: 0; top: calc(100% + .6rem); min-width: 12rem;
	display: grid; gap: .25rem; padding: .6rem;
	background: var(--paper); border: 2.5px solid var(--ink); border-radius: 1rem; box-shadow: 0 4px 0 var(--ink);
}
.site-menu nav a { font: 600 1rem var(--display); color: var(--text); text-decoration: none; padding: .45rem .6rem; border-radius: .6rem; }
.site-menu nav a:hover { background: color-mix(in srgb, var(--wood) 30%, transparent); }
/* The links in the bar, where they fit: then the menu that opens is not needed. */
.site-nav { display: none; align-items: center; gap: .3rem; margin-left: auto; }
.site-nav a { font: 600 1rem var(--display); color: var(--text); text-decoration: none; padding: .45rem .75rem; border-radius: 999px; }
.site-nav a:not(.nav-play):hover { background: color-mix(in srgb, var(--wood) 30%, transparent); }
@media (min-width: 760px) {
	.site-nav { display: flex; }
	.site-menu { display: none; }
}
/* Play, the call to action: green with the outline. Flat in the menu that
   opens; in the bar, raised like the language chip next to it. */
.site-nav a.nav-play, .site-menu nav a.nav-play {
	background: var(--c-grass); color: #2f4a12; border: 2px solid var(--c-outline);
	font-weight: 700; padding: .4rem 1.1rem; border-radius: 999px; margin-left: .35rem;
}
.site-menu nav a.nav-play { margin: .35rem 0 0; text-align: center; }
.site-nav a.nav-play:hover, .site-menu nav a.nav-play:hover { background: color-mix(in srgb, var(--c-grass) 85%, #ffffff); }
/* In the bar, next to the language chip: the same raised look and press. */
.site-nav a.nav-play { border-width: 2.5px; box-shadow: 0 3px 0 var(--c-outline); }
.site-nav a.nav-play:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c-outline); }

/* ---------- Buttons ---------- */
.cta, .button {
	display: inline-block; font: 700 1.05rem/1.2 var(--display); text-align: center; text-decoration: none;
	padding: .75rem 1.4rem; border-radius: 1.1rem; border: 3px solid var(--c-outline);
	background: var(--c-grass); color: #2f4a12; box-shadow: 0 4px 0 var(--c-outline);
}
.cta:active, .button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--c-outline); }
.button.secondary { background: var(--paper); color: var(--text); }
.button.alert { background: var(--c-tile); color: #fff; }
.button.disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Placeholders: an asset still missing (§10) ---------- */
.placeholder {
	position: relative; display: grid; place-items: center; text-align: center; padding: .6rem;
	border: 2px dashed currentColor; border-radius: .8rem; color: var(--text);
	background: repeating-linear-gradient(-45deg, color-mix(in srgb, currentColor 13%, transparent) 0 8px, transparent 8px 16px), var(--paper);
	font: 700 .8rem/1.3 var(--body);
}
.placeholder::before {
	content: "PLACEHOLDER"; position: absolute; top: -.6rem; left: .5rem;
	font: 800 .6rem/1 var(--body); letter-spacing: .08em; background: #e5484d; color: #fff; padding: .2rem .35rem; border-radius: .25rem;
}
.placeholder small { display: block; font-weight: 600; opacity: .8; }

/* ---------- The window (§6) ---------- */
.window { max-width: 26rem; margin: .25rem auto 0; padding: 0 .5rem; }
.arch {
	position: relative; aspect-ratio: 3 / 3.6; overflow: hidden;
	border-radius: 999px 999px 0 0; border: 9px solid var(--c-cream); outline: 3.5px solid var(--c-outline);
	background: var(--c-glass); touch-action: pan-y; margin: 0 1.1rem;
	user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.arch img { -webkit-user-drag: none; }
.arch picture, .arch img, .arch > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.arch > canvas { pointer-events: none; }
.arch .mullion {
	position: absolute; inset: 0; z-index: 3; pointer-events: none;
	background:
		linear-gradient(90deg, transparent calc(50% - 2.5px), var(--c-cream) calc(50% - 2.5px), var(--c-cream) calc(50% + 2.5px), transparent calc(50% + 2.5px)),
		linear-gradient(transparent 46%, var(--c-cream) 46%, var(--c-cream) calc(46% + 5px), transparent calc(46% + 5px));
}
.arch .placeholder-tag {
	position: absolute; z-index: 5; top: .8rem; left: 50%; translate: -50% 0; max-width: 80%;
	font: 800 .6rem/1.2 var(--body); letter-spacing: .05em; text-align: center; background: #e5484d; color: #fff; padding: .25rem .45rem; border-radius: .25rem;
}
.arch .veil { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.arch .veil span { position: absolute; border-radius: 50%; background: var(--c-cream); transform: scale(0); }
.arch.is-traveling .veil span { animation: puff .7s ease-in-out; }
.veil span:nth-child(1) { left: -40%; top: 25%; width: 80%; aspect-ratio: 1; }
.veil span:nth-child(2) { left: -15%; top: -10%; width: 70%; aspect-ratio: 1; }
.veil span:nth-child(3) { left: 12%; top: 22%; width: 76%; aspect-ratio: 1; }
.veil span:nth-child(4) { left: 42%; top: -12%; width: 66%; aspect-ratio: 1; }
.veil span:nth-child(5) { left: 62%; top: 24%; width: 62%; aspect-ratio: 1; }
.veil span:nth-child(6) { left: 0%; top: 55%; width: 70%; aspect-ratio: 1; }
.veil span:nth-child(7) { left: 38%; top: 58%; width: 66%; aspect-ratio: 1; }
.window.is-interactive .arch { cursor: grab; }
.window.is-interactive .arch:active { cursor: grabbing; }
.sill { position: relative; height: 1.2rem; border-radius: .4rem; background: var(--c-wood); border: 3px solid var(--c-outline); z-index: 2; }
.sill .pot { position: absolute; right: 1.4rem; bottom: .95rem; width: 2.2rem; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; }
.sill .play-badge { position: absolute; left: 1rem; bottom: .95rem; line-height: 0; }
.sill .play-badge img { height: 2.6rem; width: auto; }
.sill .play-badge .placeholder { width: 8.5rem; height: 2.6rem; font-size: .65rem; padding: .2rem; }
.scene-tabs { display: flex; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.scene-tabs[hidden] { display: none; }
.scene-tabs button { font: 700 .9rem/1 var(--display); padding: .5rem .9rem; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--paper); color: var(--text); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.scene-tabs button[aria-pressed="true"] { background: var(--c-sun); color: #5a3d2b; }

/* ---------- Home ---------- */
.home-intro { text-align: center; margin-top: 1.4rem; }
.home-intro h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin: 0; }
.home-intro p { margin: .4rem auto 0; max-width: 28rem; font-size: 1.05rem; }
.home-intro .cta { margin-top: 1rem; }
.section-title { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.section-title a { font: 700 .9rem var(--display); margin-left: .5rem; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.features li { padding: .7rem .9rem; border-radius: .9rem; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }

/* Frames hanging on the wall: a panel of their own, so a frame that sways
   near the edge is cut by the panel and not by the page. */
.wall {
	position: relative; border: 3px solid var(--c-outline); border-radius: 1.2rem;
	background-color: color-mix(in srgb, var(--bg) 82%, var(--c-wood));
	background-image: linear-gradient(90deg, var(--stripe) 50%, transparent 50%); background-size: 20px 20px;
	box-shadow: inset 0 -10px 0 color-mix(in srgb, var(--c-wood) 55%, transparent), 0 4px 0 var(--c-outline);
	overflow: hidden;
}
.wall-frames { display: flex; gap: 1.4rem; overflow-x: auto; padding: 2rem 1.4rem 1.6rem; scroll-snap-type: x mandatory; scroll-padding-inline: 1.4rem; scrollbar-width: none; }
.wall-frames::-webkit-scrollbar { display: none; }
.wall-frames::after { content: ""; flex: 0 0 1px; }
.frame {
	flex: none; width: 9.5rem; scroll-snap-align: start; margin: 0;
	padding: .5rem; background: var(--c-wood); border: 3px solid var(--c-outline); border-radius: .4rem;
	position: relative; transform-origin: 50% -1rem; animation: sway 6s ease-in-out infinite;
}
.frame:nth-child(2n) { animation-delay: -2s; }
.frame:nth-child(3n) { animation-delay: -4s; }
.frame::before { content: ""; position: absolute; top: -1.1rem; left: 50%; translate: -50% 0; width: 2.8rem; height: 1.1rem; border: 2.5px solid var(--c-outline); border-bottom: 0; border-radius: 1.4rem 1.4rem 0 0; }
.frame img, .frame .placeholder { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: .2rem; object-fit: cover; }
.frame .placeholder::before { display: none; }
.wall-nav {
	position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 2.6rem; height: 2.6rem; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer;
	font: 700 1.6rem/1 var(--display); color: var(--text); background: var(--paper);
	border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
}
.wall-nav[hidden] { display: none; }
.wall-nav:active { translate: 0 calc(-50% + 2px); box-shadow: 0 1px 0 var(--ink); }
.wall-nav.prev { left: .5rem; }
.wall-nav.next { right: .5rem; }
.wall-nav span { margin-top: -.15rem; }
.frame figcaption { font: 700 .85rem var(--display); text-align: center; margin-top: .35rem; color: #3f251b; }

/* Postcards (the news) */
.postcards { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.postcard {
	display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: start;
	padding: .85rem; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 1rem; box-shadow: 0 3px 0 var(--ink);
	color: var(--text); text-decoration: none;
}
.postcard:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.postcard h3 { font-size: 1.05rem; margin: 0; }
.postcard p { margin: .3rem 0 0; font-size: .92rem; color: var(--muted); }
.postcard .category { font: 700 .75rem var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--link); }
.stamp {
	width: 3.4rem; min-height: 3.8rem; padding: .3rem .2rem; border: 2px dashed var(--c-outline); border-radius: .3rem;
	background: var(--c-sun); color: #5a3d2b; display: grid; place-items: center; text-align: center;
	font: 700 .8rem/1.1 var(--display); transform: rotate(4deg);
}
.stamp b { display: block; font-size: 1.3rem; }

/* ---------- Paper sheet: legal, help, entries ---------- */
.paper {
	margin: .5rem 0 1rem; padding: 1.2rem 1.1rem 1.4rem;
	background: var(--paper); border: 2.5px solid var(--ink); border-radius: .5rem .5rem 1.4rem .5rem;
	box-shadow: 5px 6px 0 var(--shade);
}
.paper h1 { font-size: 1.7rem; margin: 0 0 .8rem; }
.paper h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.paper h3 { font-size: 1.1rem; margin: 1.5rem 0 .3rem; }
.paper h2, .paper h3 { scroll-margin-top: 4.5rem; }
.paper .anchor { color: inherit; text-decoration: none; }
.paper ul, .paper ol { padding-left: 1.4rem; }
.paper li + li { margin-top: .3rem; }
.paper .table { overflow-x: auto; margin: 1rem 0; }
.paper table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .92rem; }
.paper th, .paper td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid color-mix(in srgb, var(--text) 18%, transparent); }
.paper th { background: color-mix(in srgb, var(--wood) 25%, transparent); }
.toc { margin: 0 0 1.5rem; padding: .6rem .9rem; border-radius: .8rem; background: color-mix(in srgb, var(--wood) 22%, transparent); }
.toc summary { cursor: pointer; font: 700 1rem var(--display); }
.toc ol { margin: .5rem 0 0; }
.draft { border: 2px dashed var(--wood); border-radius: .75rem; padding: .75rem 1rem; }

/* FAQ as drawers */
.drawer { margin: .7rem 0; border: 2.5px solid var(--c-outline); border-radius: .7rem; background: var(--c-wood); box-shadow: 0 3px 0 var(--c-outline); }
.drawer summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .8rem;
	padding: .75rem .9rem; font: 700 1.02rem/1.3 var(--display); color: #3f251b;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: ""; flex: none; width: 1.6rem; height: .5rem; border-radius: .3rem; background: var(--c-outline); }
.drawer[open] summary::after { width: 1rem; height: 1rem; border-radius: 50%; }
.drawer > div { padding: .2rem 1rem .9rem; background: var(--paper); border-top: 2.5px solid var(--c-outline); border-radius: 0 0 .5rem .5rem; }
.drawer > div > :first-child { margin-top: .6rem; }

/* ---------- Blog entry ---------- */
.entry-cover { display: block; width: 100%; height: auto; border-radius: .8rem; border: 3px solid var(--ink); }
.entry-meta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.entry-meta .stamp { width: auto; min-height: 0; padding: .25rem .6rem; transform: rotate(-2deg); }
.entry-meta .category { font: 700 .8rem var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--link); }
.entry-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.6rem; }
.back { font: 700 .95rem var(--display); }

/* ---------- Wooden floor (footer) ---------- */
.floor {
	margin-top: 1.5rem; padding: 1.3rem 1rem 1.6rem;
	background: repeating-linear-gradient(90deg, var(--wood) 0 64px, var(--wood-dark) 64px 66px);
	border-top: 5px solid var(--c-outline); color: var(--floor-text);
}
.floor nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; font: 600 .95rem var(--display); }
.floor nav a { color: var(--floor-text); }
.floor .legal { text-align: center; font-size: .8rem; margin: .9rem 0 0; opacity: .85; }
.floor .legal.trademark { font-size: .7rem; margin-top: .3rem; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1rem; list-style: none; padding: 0; }
.socials a {
	display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem;
	background: var(--c-cream); border: 2.5px solid var(--c-outline); box-shadow: 0 3px 0 var(--c-outline); transform: rotate(-4deg);
}
.socials li:nth-child(even) a { transform: rotate(5deg); }
.socials a .icon { width: 1.3rem; height: 1.3rem; background: var(--c-outline); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
/* No inline styles (the CSP): one rule per network's icon. */
.icon-instagram { --icon: url("/social/instagram.svg"); }
.icon-tiktok { --icon: url("/social/tiktok.svg"); }
.icon-youtube { --icon: url("/social/youtube.svg"); }
.icon-discord { --icon: url("/social/discord.svg"); }
.icon-bluesky { --icon: url("/social/bluesky.svg"); }

/* ---------- The Worker's short pages (house link, not found) ---------- */
.card main { max-width: 26rem; padding-top: 1rem; text-align: center; }
.card .paper { display: grid; gap: .6rem; justify-items: center; }
.card .code { font: 700 1.6rem var(--mono); letter-spacing: .15em; margin: 0; }
.card .button { width: 100%; }
.small { font-size: .8rem; opacity: .8; overflow-wrap: anywhere; }

/* ---------- Motion ---------- */
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes puff { 0% { transform: scale(0); } 45%, 55% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes pop-in { 0% { transform: scale(.7) rotate(-6deg); opacity: 0; } 70% { transform: scale(1.05) rotate(1deg); opacity: 1; } 100% { transform: none; } }
.site-header .brand img { animation: pop-in .6s cubic-bezier(.3, 1.4, .5, 1) both; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 900px) {
	.site-header { padding-inline: max(1rem, calc((100vw - 60rem) / 2)); }
	.site-header .brand img { width: 150px; }
	main.home { max-width: 60rem; display: grid; grid-template-columns: 26rem minmax(0, 1fr); column-gap: 3rem; align-items: start; }
	main.home > .window { grid-row: 1 / span 4; margin: 1rem 0 0; width: 100%; max-width: none; }
	main.home > .home-intro { text-align: left; align-self: end; }
	main.home > .home-intro p { margin-left: 0; }
	main.home > section { grid-column: 2; }
}

/* Wide and tall enough: the window stays in place while the column on the
   right scrolls, and the page's scroll turns the house
   (src/scripts/window.ts). */
@media (min-width: 900px) and (min-height: 700px) {
	main.home > .window { position: sticky; top: 5.5rem; align-self: start; }
}
