@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/bricolage-latin.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: 'Silkscreen';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/silkscreen-latin.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;
}

:root {
  --bg: #FBF7EC; --ink: #23302A; --muted: #5D6A62; --line: #E2DAC6;
  --accent: #2E7A5E; --sun: #F2C14E; --card: #FFFFFF; --rose: #E0715A; --mint: #DCEFE6;
  --px: 'Silkscreen', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Bricolage Grotesque', system-ui, sans-serif; line-height: 1.4; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- top bar ---- */
.topbar { display: flex; justify-content: space-between; align-items: center; max-width: 1168px; margin: 0 auto; padding: 18px 24px; }
.topbar .logo { font-family: var(--px); font-size: 16px; text-decoration: none; }
.topbar ul { display: flex; gap: 22px; list-style: none; font-size: 15px; font-weight: 500; }
.topbar ul a { text-decoration: none; }
.topbar ul a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---- the cat ---- */
.cat-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y pinch-zoom; cursor: pointer; }
.pxhud { font-family: var(--px); font-size: 11.5px; }
.strip .screen { height: 168px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: #C2A452; }
/* Below the street, like the phone's status bar. The status gets a fixed width (room for its longest line), so
   the instructions wrap under it on narrower screens and don't jump around as the status changes length. */
.strip .statusbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 8px 12px; background: var(--ink); color: var(--bg); }
.strip .pxhud { flex: 0 0 34em; }
.strip .tip { font-family: var(--px); font-size: 11px; color: #B9C4BD; }
.gamewin { display: none; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: var(--bg); border-radius: 6px; overflow: hidden; margin: 4px 0 8px; }
.gamewin .screen { height: 200px; background: #C2A452; }
.gamewin .statusbar { border-top: 3px solid var(--ink); padding: 7px 10px; }
.gamewin .tip { font-family: var(--px); font-size: 10.5px; line-height: 1.6; color: var(--muted); padding: 0 10px 8px; }

/* ---- profile ---- */
.profile { display: grid; grid-template-columns: auto 1fr; column-gap: 36px; align-items: start; padding: 44px 0 36px; margin-bottom: 24px; }
.profile picture { grid-row: 1 / span 2; }
.avatar { width: 168px; height: 168px; object-fit: cover; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 7px 7px 0 var(--sun), 7px 7px 0 3px var(--ink); }
.profile .id, .profile .bio { grid-column: 2; }
.kicker { font-family: var(--px); font-size: 13px; color: var(--accent); margin-bottom: 8px; }
h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 60px); line-height: 1; letter-spacing: -0.03em; }
.lead p { font-size: 18.5px; line-height: 1.58; color: #34423B; margin-top: 14px; max-width: 38em; }
.lead p.aside { font-size: 17px; color: var(--muted); }
.lead b { font-weight: 700; color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 7px 14px; border: 2px solid var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--ink); border-radius: 6px; transition: transform .08s, box-shadow .08s; }
.links a:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.links a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.links a.primary { background: var(--sun); }

/* ---- papers & news ---- */
h2 { font-weight: 800; font-size: 32px; letter-spacing: -0.02em; margin-bottom: 18px; }
section { margin-bottom: 64px; scroll-margin-top: 16px; }
.pubs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pub { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 18px 20px; box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; gap: 8px; }
.venue { align-self: flex-start; font-family: var(--px); font-size: 11.5px; background: var(--sun); border: 2px solid var(--ink); padding: 2px 8px; }
.venue.old { background: var(--mint); }
.pub h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.pub .authors { color: var(--ink); font-size: 14.5px; }
.pub .authors b { font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 2px; }
.pub p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.pub .pl { margin-top: auto; padding-top: 2px; font-weight: 600; font-size: 14.5px; display: flex; gap: 14px; }
.pub .pl a { color: var(--accent); }
.more { margin-top: 18px; font-weight: 600; }
.more a { color: var(--accent); }
.news { list-style: none; max-width: 760px; }
.news li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 10px 0; font-size: 16px; line-height: 1.45; border-bottom: 2px dashed var(--line); }
.news time { font-family: var(--px); font-size: 12px; color: var(--muted); padding-top: 3px; }
footer.wrap { border-top: 3px solid var(--ink); padding: 20px 24px 40px; font-size: 14px; color: var(--muted); }

/* ---- 404 ---- */
.lost { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 24px; }
.lost svg { width: 168px; height: auto; }

@media (max-width: 860px) {
  .topbar ul, .strip { display: none; }
  .gamewin { display: block; }
  .profile { grid-template-columns: 84px minmax(0, 1fr); column-gap: 18px; padding: 16px 0 28px; margin-bottom: 0; }
  .profile picture { grid-row: 1; }
  .avatar { width: 84px; height: 84px; box-shadow: 4px 4px 0 var(--sun), 4px 4px 0 3px var(--ink); }
  .profile .id { align-self: center; }
  .profile .bio { grid-column: 1 / span 2; }
  h1 { font-size: clamp(24px, 7.6vw, 34px); overflow-wrap: anywhere; } /* the surname fits beside the photo down to 320px */
  .kicker { font-size: 11px; }
  .lead p { font-size: 17px; }
  .pubs { grid-template-columns: 1fr; }
  .news li { grid-template-columns: 76px 1fr; }
}
