:root {
  --pond: #CEEBB2;
  --pond-light: #E8F7D9;
  --hat: #639BFF;
  --bill: #DF7126;
  --duck: #FFFFFF;
  --gray: #BCBCBC;
  --ink: #111111;
  --shadow: 6px 6px 0 var(--ink);
  --border: 3px solid var(--ink);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(17,17,17,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px),
    var(--pond);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

img { image-rendering: pixelated; }
a { color: inherit; }
.shell { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 99; background: var(--duck); border: var(--border); padding: 8px 12px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: -.04em; }
.brand img { border: 2px solid var(--ink); background: var(--pond); }
nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
nav a { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
nav a:hover { color: #000; background: var(--duck); outline: 2px solid var(--ink); text-decoration: none; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(32px, 8vw, 100px);
  padding-block: 64px 88px;
}
.eyebrow, .kicker, .status { font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: inline-block; background: var(--hat); border: 2px solid var(--ink); padding: 5px 8px; transform: rotate(-1deg); }
h1 { font-size: clamp(3.4rem, 9vw, 7.5rem); line-height: .88; letter-spacing: -.045em; margin: 22px 0 24px; text-transform: uppercase; }
h1 span { color: var(--bill); -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--duck); }
.lede { max-width: 620px; font-size: clamp(1rem, 2vw, 1.22rem); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
  display: inline-block;
  border: var(--border);
  background: var(--duck);
  padding: 11px 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 90ms ease, box-shadow 90ms ease;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button.primary { background: var(--bill); }
.button.disabled { opacity: .55; box-shadow: none; cursor: default; }

.hero-art { position: relative; justify-self: center; }
.logo-frame { background: var(--pond); border: 4px solid var(--ink); box-shadow: 12px 12px 0 var(--hat); transform: rotate(1.2deg); }
.logo-frame img { display: block; width: min(100%, 360px); height: auto; }
.duck-note { position: absolute; right: -18px; bottom: -52px; margin: 0; font-weight: 900; font-style: italic; transform: rotate(-4deg); text-decoration: underline 3px wavy var(--bill); }

.section { padding-block: 72px; border-top: 2px solid var(--ink); }
.section-heading { display: flex; align-items: end; gap: 18px; margin-bottom: 30px; }
.section-number { font-size: 1.1rem; font-weight: 900; color: var(--bill); }
.kicker { margin: 0 0 2px; }
h2 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: .95; letter-spacing: -.07em; margin: 0; text-transform: uppercase; }
h3 { font-size: 1.35rem; margin-top: 0; }

.panel, .game-card, .link-card { border: var(--border); background: var(--pond-light); box-shadow: var(--shadow); }
.game-card { display: grid; grid-template-columns: 260px 1fr; overflow: hidden; }
.game-art { min-height: 260px; border-right: var(--border); }
.placeholder-art { position: relative; display: grid; place-items: center; background: var(--gray); overflow: hidden; }
.placeholder-art img { width: 170px; filter: grayscale(.1); opacity: .95; transform: rotate(-3deg); }
.placeholder-art span { position: absolute; right: 16px; top: 6px; font-size: 5rem; font-weight: 900; color: var(--hat); -webkit-text-stroke: 2px var(--ink); }
.game-copy { padding: 30px; align-self: center; }
.status { display: inline-block; background: var(--duck); border: 2px solid var(--ink); padding: 3px 7px; }

.split-panel { padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.split-panel p { max-width: 700px; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.about-grid .panel { padding: 28px; }
.values { display: grid; gap: 12px; }
.value { border: var(--border); background: var(--duck); padding: 18px; display: flex; gap: 14px; align-items: baseline; font-weight: 800; }
.value strong { color: var(--bill); }

.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.link-card { min-height: 145px; padding: 18px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: transform 100ms ease, box-shadow 100ms ease; }
.link-card:hover { transform: translate(3px, 3px) rotate(-.3deg); box-shadow: 3px 3px 0 var(--ink); background: var(--duck); }
.link-card span { font-weight: 900; font-size: 1.15rem; }
.link-card small { font-size: .76rem; }
.link-card[data-disabled="true"] { opacity: .6; cursor: not-allowed; }
.link-card .missing-link-note { display: block; margin-top: 8px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bill); }

.site-footer { border-top: 2px solid var(--ink); padding-block: 28px 42px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 800; }
.site-footer img { border: 2px solid var(--ink); }
.footer-joke { margin-left: auto; font-size: .8rem; }

@media (max-width: 850px) {
  .site-header { align-items: flex-start; }
  nav { justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { order: -1; }
  .logo-frame img { width: min(78vw, 320px); }
  .duck-note { right: 0; }
  .game-card { grid-template-columns: 1fr; }
  .game-art { border-right: 0; border-bottom: var(--border); min-height: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 20px, var(--max)); }
  .site-header { flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero { padding-top: 36px; }
  h1 { font-size: clamp(3rem, 19vw, 5rem); }
  .split-panel { align-items: flex-start; flex-direction: column; }
  .link-grid { grid-template-columns: 1fr; }
  .footer-joke { width: 100%; margin-left: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

#games-list { display: grid; gap: 26px; }


/* Frank's Office shared rendering layer */
:root { --body-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; --display-font: Arial, Helvetica, sans-serif; --radius: 0px; --shadow-offset: 6px; }
.header-tools { display:flex; align-items:center; justify-content:flex-end; gap:18px; }
.theme-picker { display:flex; align-items:center; gap:5px; }
.theme-choice { width:22px; height:22px; padding:0; border:2px solid var(--ink); border-radius:50%; background:var(--theme-color); cursor:pointer; box-shadow:2px 2px 0 var(--ink); }
.theme-choice[aria-pressed="true"] { outline:2px solid var(--duck); outline-offset:2px; transform:translate(1px,1px); box-shadow:1px 1px 0 var(--ink); }
body { font-family:var(--body-font); }
h1, h2 { font-family:var(--display-font); }
.hero-title-top, .hero-title-bottom { display:block; }
h1 .hero-title-top { color:var(--ink); -webkit-text-stroke:0; text-shadow:none; }
h1 .hero-title-bottom { color:var(--bill); -webkit-text-stroke:2px var(--ink); text-shadow:4px 4px 0 var(--duck); margin-top:.12em; }
.panel, .game-card, .link-card, .button, .value, .eyebrow, .status, .brand img, .site-footer img { border-radius:var(--radius); }
@media (max-width:850px) { .header-tools { align-items:flex-end; flex-direction:column-reverse; gap:12px; } }
@media (max-width:560px) { .header-tools { width:100%; align-items:flex-start; } }
