/* pandapuzzles.com home: the Panda look (Jeff, 2026-11-09: "crisp minimalist look,
   black and white like a panda. This is my brand.").
   Pure black on white, no grey. Solid black section bars with white bold capitals,
   dotted hairline rules, a heavy rule under the masthead, newspaper columns.
   One radius (0). One distinctive move: screenshots stay black and white until you
   point at a game, then it shows its real colors. Dark mode flips ink and paper. */
:root {
    --ink: #000;
    --paper: #fff;
    --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --mono: "IBM Plex Mono", Menlo, monospace;
    --rule: 2px solid var(--ink);
    --heavy: 4px solid var(--ink);
    --dots: 1px dotted var(--ink);
}
@media (prefers-color-scheme: dark) {
    :root { --ink: #fff; --paper: #000; }
    .logo img { filter: invert(1); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--body); }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px 48px; }
@media (min-width: 720px) { .wrap { padding: 0 32px 64px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); border: var(--rule); padding: 8px 12px; }
.skip:focus { left: 16px; z-index: 5; }

/* Masthead */
.mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 12px; border-bottom: var(--heavy); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.logo img { height: 72px; width: auto; }
.brand-name { font: 900 clamp(28px, 4.6vw, 44px)/0.95 var(--body); text-transform: uppercase; letter-spacing: -0.02em; }
.brand-line { display: block; font: italic 400 15px/1.3 var(--body); margin-top: 4px; }
.mast nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
.mast nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: 800 14px/1 var(--body); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; border: 2px solid transparent; transition: background-color 150ms ease-out, color 150ms ease-out; }
.mast nav a:hover { border-color: var(--ink); }
.mast nav a:active { background: var(--ink); color: var(--paper); }
@media (max-width: 560px) { .logo img { height: 52px; } .mast nav a { padding: 0 8px; } }

/* The split intro: the games pitch, then the academy in one line */
.intro { display: grid; gap: 16px 48px; padding: 32px 0; border-bottom: var(--dots); }
@media (min-width: 860px) { .intro { grid-template-columns: 1.5fr 1fr; align-items: end; } }
.intro h1 { font: 900 clamp(34px, 6vw, 64px)/0.98 var(--body); letter-spacing: -0.03em; }
.intro .academy { font-size: 17px; max-width: 34rem; }
.intro .academy b { font-weight: 800; }
.intro .academy a { font-weight: 800; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Section bars */
.bar { margin: 40px 0 16px; background: var(--ink); color: var(--paper); font: 800 15px/1 var(--body); text-transform: uppercase; letter-spacing: 0.12em; padding: 10px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.bar .n { font: 700 13px/1 var(--mono); letter-spacing: 0; text-transform: none; }

/* Featured */
.card { display: grid; text-decoration: none; border: var(--rule); background: var(--paper); transition: transform 150ms ease-out; }
.card:hover { transform: translateY(-3px); }
.card:active { transform: translateY(0); }
.shot { position: relative; overflow: hidden; border-bottom: var(--rule); background: var(--ink); }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter 200ms ease-out; }
.card:hover .shot img, .card:focus-visible .shot img { filter: none; }
.copy { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.kind { font: italic 400 14px/1.3 var(--body); }
.name { font: 900 24px/1.05 var(--body); letter-spacing: -0.01em; }
.note { font-size: 16px; }
.go { margin-top: auto; padding-top: 8px; font: 800 13px/1 var(--body); text-transform: uppercase; letter-spacing: 0.1em; }
.go::after { content: " \2192"; }

.lead { margin-bottom: 16px; }
.lead .shot { height: 260px; }
.lead .name { font-size: clamp(30px, 4.4vw, 48px); }
.lead .note { font-size: 18px; max-width: 36rem; }
@media (min-width: 860px) {
    .lead { grid-template-columns: 1.35fr 1fr; }
    .lead .shot { height: 100%; min-height: 360px; border-bottom: 0; border-right: var(--rule); }
    .lead .copy { padding: 24px; justify-content: center; }
}
.two { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }
.two .shot { height: 220px; }
.two .shot img { object-position: top; }
.four { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .four { grid-template-columns: repeat(4, 1fr); } }
.four .shot { height: 168px; }
.shot img.top { object-position: top; }

/* Worksheet of the day strip */
.sheet-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border: var(--rule); border-style: dashed; padding: 16px; text-decoration: none; }
.sheet-strip b { font: 900 22px/1.1 var(--body); display: block; }
.sheet-strip span { font-size: 16px; }
.sheet-strip .go { padding: 0; margin: 0; }
.sheet-strip:hover { border-style: solid; }

/* Every game: newspaper columns */
.list { column-gap: 32px; column-rule: 1px solid var(--ink); }
@media (min-width: 640px) { .list { column-count: 2; } }
@media (min-width: 1000px) { .list { column-count: 3; } }
.list li { break-inside: avoid; border-bottom: var(--dots); }
.list a { display: block; padding: 10px 0; text-decoration: none; min-height: 44px; }
.list a:hover .ln { text-decoration: underline; text-underline-offset: 3px; }
.ln { font: 800 17px/1.25 var(--body); }
.ld { display: block; font-size: 15px; line-height: 1.4; }
.empty, .err { padding: 16px 0; font-style: italic; }

/* The maker */
.maker { display: grid; gap: 24px 48px; }
@media (min-width: 860px) { .maker { grid-template-columns: 1fr 1.2fr; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--rule); border-left: var(--rule); align-self: start; }
.stat { border-right: var(--rule); border-bottom: var(--rule); padding: 16px; }
.stat b { display: block; font: 700 clamp(24px, 3.6vw, 34px)/1 var(--mono); }
.stat span { display: block; font-size: 14px; margin-top: 8px; line-height: 1.35; }
.maker p { max-width: 38rem; }
.maker p + p { margin-top: 12px; }
.maker a { text-underline-offset: 3px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: var(--rule); font: 800 14px/1 var(--body); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; transition: background-color 150ms ease-out, color 150ms ease-out; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--paper); color: var(--ink); }

/* Academy: ratings + updates */
.academy-grid { display: grid; gap: 24px 48px; }
@media (min-width: 860px) { .academy-grid { grid-template-columns: 1fr 1.4fr; } }
.sub { font: 800 14px/1 var(--body); text-transform: uppercase; letter-spacing: 0.1em; padding-bottom: 8px; border-bottom: var(--rule); display: flex; justify-content: space-between; gap: 8px; }
.sub a { font-weight: 800; text-underline-offset: 3px; }
.ratings li { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; padding: 10px 0; border-bottom: var(--dots); }
.ratings .r { font: 700 15px/1.4 var(--mono); }
.ratings .p { font-weight: 600; }
.posts li { padding: 12px 0; border-bottom: var(--dots); }
.posts time { display: block; font: 700 13px/1.3 var(--mono); margin-bottom: 4px; }
.posts p { white-space: pre-line; overflow-wrap: anywhere; }
.posts a { text-underline-offset: 3px; }

/* Foot */
.foot { margin-top: 56px; border-top: var(--heavy); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot a { text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .card:hover { transform: none; } }
@media print { .mast nav, .skip { display: none; } .shot img { filter: grayscale(1); } }
