/* Shared theme. All pages use this stylesheet. */
:root {
  color-scheme: dark;
  --background: #11171d;
  --ink: #e5edf3;
  --muted: #a6b4c0;
  --accent: #9bc4e3;
  --line: #2d3944;
  --surface: #1c2731;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--ink); font: 16px/1.75 system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: 5px; }
a:hover { color: #cce7fa; }
a:focus-visible, button:focus-visible { outline: 3px solid #9bc4e3; outline-offset: 5px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--line); }
.site-name { font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: -.7px; }
.site-name span { color: #9bc4e3; }
nav { display: flex; gap: 28px; flex-wrap: wrap; }
nav a { font-size: 14px; color: var(--muted); text-decoration: none; padding-block: 9px; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: #83a4bc; text-underline-offset: 9px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(38px, 4.7vw, 57px); letter-spacing: -1.8px; line-height: 1.14; margin: 0 0 24px; }
h1 span { display: block; }
h2 { font-size: 34px; letter-spacing: -.7px; line-height: 1.25; margin: 0 0 20px; }
h3, h4 { margin: 0 0 10px; }
h4 { font-size: 19px; font-weight: 650; line-height: 1.4; }
p { margin: 0 0 18px; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.intro { padding-block: 58px 48px; }
.intro h1 { font-size: clamp(34px, 4.3vw, 48px); margin-bottom: 16px; }
.intro .lead { color: var(--muted); margin: 0; max-width: 650px; }
.lead { font-size: 20px; line-height: 1.65; max-width: 620px; }
.intro-detail { color: var(--muted); max-width: 600px; }
.button { display: inline-block; margin-top: 12px; background: var(--accent); color: #11171d; text-decoration: none; padding: 10px 20px; border-radius: 5px; font-size: 14px; font-weight: 600; }
.button:hover { background: #193e59; color: white; }
.intro-note { background: var(--surface); border-top: 3px solid #829fb3; padding: 28px; border-radius: 0 0 6px 6px; }
.intro-note dl { margin: 0; }
.intro-note dl div + div { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
dt { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
dd { margin: 0; font-size: 14px; }
.section { padding-block: 48px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; }
button { background: transparent; color: var(--accent); border: 1px solid #516779; border-radius: 5px; padding: 9px 14px; font: inherit; font-size: 14px; cursor: pointer; }
button:hover { background: var(--surface); }
[hidden] { display: none !important; }
.resume-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 80px; }
.section-label { font-size: 14px; font-weight: 650; margin-bottom: 22px; }
.experience { border-left: 2px solid #58768d; padding-left: 22px; }
.experience + .experience { margin-top: 32px; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.organization { color: var(--accent); font-size: 14px; }
.experience > p:not(.meta):not(.organization), .experience ul { color: var(--muted); }
ul { padding-left: 20px; }
.resume-details { border-left: 1px solid var(--line); padding-left: 28px; }
.resume-details section + section { margin-top: 30px; }
.resume-details p { margin-bottom: 7px; }
.skills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { background: var(--surface); padding: 4px 10px; border-radius: 4px; font-size: 14px; }
.project-preview, .contact { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.project-preview .eyebrow, .contact .eyebrow { margin-bottom: 10px; }
.project-preview h2, .contact h2 { font-size: 29px; margin-bottom: 12px; }
.project-preview p:last-child, .contact p { color: var(--muted); margin-bottom: 0; }
.text-link { font-size: 14px; font-weight: 600; flex-shrink: 0; }
.contact a { overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 24px; font-size: 12px; color: var(--muted); }
.page-intro { padding-block: 65px 30px; }
.empty-state { padding: 35px; background: var(--surface); border-radius: 6px; margin-bottom: 80px; }
.empty-state h2 { font-size: 28px; }
.empty-state p { margin: 0; color: var(--muted); }
.project-entry { padding-block: 32px; border-top: 1px solid var(--line); }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--surface); padding: 10px; z-index: 2; }
.skip-link:focus { top: 10px; }
@media (max-width: 800px) {
  .intro, .resume-grid { gap: 35px; }
  .wrap { width: calc(100% - 48px); }
}
@media (max-width: 600px) {
  .site-header { padding-block: 20px; flex-direction: column; align-items: start; gap: 12px; }
  nav { gap: 23px; }
  .intro { grid-template-columns: 1fr; padding-block: 40px; gap: 30px; }
  .intro-note { padding: 22px; }
  .lead { font-size: 18px; }
  .resume-grid { grid-template-columns: 1fr; }
  .resume-details { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .project-preview, .contact { flex-direction: column; align-items: start; gap: 20px; }
  .section { padding-block: 35px; }
  h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  @page { margin: 16mm; }
  :root { color-scheme: light; --ink: #203747; --muted: #4b5963; --accent: #284f6c; --line: #cbd4db; --surface: #f0f3f5; }
  body { color: black; background: white; font-size: 11pt; }
  .wrap { width: 100%; }
  .site-header, .skip-link, button, .button, .project-preview, footer { display: none !important; }
  .intro { display: block; padding: 0 0 20px; }
  .intro-note { display: none; }
  h1 { font-size: 28pt; }
  .lead { font-size: 12pt; }
  .section { padding-block: 20px; }
  .resume-grid { grid-template-columns: 1.7fr 1fr; gap: 25px; }
  .experience, .resume-details section { break-inside: avoid; }
  .contact { display: block; }
}

/* Contact details from the resume. */
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 12px; }
/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 8px 0 70px; }
.project-card { display: flex; flex-direction: column; padding: 30px; min-height: 300px; border: 1px solid #345548; border-radius: 12px; background: linear-gradient(135deg, #1b302a, #17212a 75%); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.project-card:hover { color: var(--ink); border-color: #80d9ac; transform: translateY(-3px); }
.project-card-top { display: flex; justify-content: space-between; gap: 20px; color: #92cfac; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 28px; }
.project-card h2 { font-size: 36px; margin-bottom: 12px; }
.project-card h2 span, .game-accent { color: #82dbab; }
.project-card p { color: var(--muted); }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.project-tech span { border: 1px solid #3e514d; border-radius: 4px; padding: 2px 8px; font-size: 12px; color: #b5c8c0; }
.project-open { margin-top: auto; font-size: 14px; font-weight: 600; color: #9fe6be; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 32px 0; }
.game-heading a { font-size: 14px; }
.game-heading h1 { margin: 16px 0 0; font-size: 42px; }
.game-heading h1 span { display: inline; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; margin-bottom: 60px; }
.game-panel { min-width: 0; }
.game-toolbar, .game-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.game-toolbar strong { color: #82dbab; margin-inline: 5px 12px; }
.best-label { color: var(--muted); }
.mode-controls { display: flex; gap: 6px; }
.mode-controls button[aria-pressed="true"] { background: #82dbab; border-color: #82dbab; color: #10251b; }
#c { display: block; width: 100%; max-width: 500px; height: auto; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 7px; margin: 0 auto 18px; }
.game-actions { justify-content: center; }
#game-status { font-size: 14px; color: var(--muted); text-align: center; }
.game-notes { padding-top: 8px; }
.game-notes h2 { font-size: 26px; }
.game-notes h3 { font-size: 17px; margin-top: 28px; }
.game-notes p { color: var(--muted); }
@media (max-width: 700px) { .project-grid, .game-layout { grid-template-columns: 1fr; } .game-heading { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .project-card { transition: none; } .project-card:hover { transform: none; } }
