:root {
  color-scheme: light;
  --ink: #202724;
  --muted: #5f6f69;
  --paper: #f4f7f3;
  --surface: #ffffff;
  --wash: #e8f1ee;
  --line: #d7ded6;
  --green: #205f4b;
  --blue: #286887;
  --gold: #b06f16;
  --red: #9d463f;
  --plum: #69508f;
  --shadow: 0 18px 42px rgba(32, 39, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(32, 95, 75, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(40, 104, 135, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: 0;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.button-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ink);
  color: #f8d482;
  font-size: 13px;
  letter-spacing: 0;
}

.site-nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.eyebrow,
.feature-kicker,
.card-kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.button-row {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  padding: 0 16px;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(32, 39, 36, 0.1);
}

.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.home-page {
  min-height: 100vh;
}

.home-choice {
  min-height: 100vh;
  width: min(920px, calc(100% - 36px));
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 64px 0;
}

.home-choice h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 76px;
}

.home-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.choice-card {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 24px;
  text-decoration: none;
}

.choice-card:hover,
.play-card:hover,
.feature-card:hover,
.project-card:hover,
.portfolio-piece:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(32, 39, 36, 0.14);
}

.choice-card span {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.choice-card small {
  max-width: 320px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.choice-play {
  border-top-color: var(--gold);
}

.home-email {
  color: var(--muted);
  font-size: 16px;
}

.home-email a,
.site-footer a,
.feature-card a,
.project-card a,
.contact-band a {
  font-weight: 800;
  text-decoration: none;
}

.page-hero {
  max-width: 880px;
  padding: 78px 0 42px;
}

.play-hero {
  max-width: 940px;
}

.play-grid,
.feature-grid,
.portfolio-grid,
.stat-grid {
  display: grid;
  gap: 16px;
}

.play-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 0 84px;
}

.play-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 276px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(32, 39, 36, 0.08);
  color: var(--ink);
  padding: 20px;
  text-decoration: none;
}

.play-card:nth-child(2) {
  border-top-color: var(--blue);
}

.play-card:nth-child(3) {
  border-top-color: var(--plum);
}

.play-card:nth-child(4) {
  border-top-color: var(--red);
}

.play-card:nth-child(5) {
  border-top-color: var(--gold);
}

.play-card:nth-child(6) {
  border-top-color: var(--blue);
}

.play-card:nth-child(7) {
  border-top-color: var(--green);
}

.play-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.play-card-featured {
  grid-column: span 2;
}

.play-card-featured img {
  aspect-ratio: 16 / 8;
}

.comic-card img {
  aspect-ratio: 4 / 5;
  object-position: top center;
}

.play-landgrab-preview {
  position: relative;
  min-height: 148px;
  margin-bottom: 4px;
}

.play-landgrab-preview span {
  position: absolute;
  display: grid;
  width: 92px;
  height: 126px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 14px 26px rgba(32, 39, 36, 0.12);
  font-size: 30px;
  font-weight: 900;
}

.play-landgrab-preview span:nth-child(1) {
  left: 8%;
  top: 12px;
  transform: rotate(-10deg);
}

.play-landgrab-preview span:nth-child(2) {
  left: 34%;
  top: 2px;
  color: #b83b35;
}

.play-landgrab-preview span:nth-child(3) {
  left: 60%;
  top: 18px;
  transform: rotate(10deg);
}

.play-card h2 {
  margin-bottom: 2px;
  font-size: 28px;
}

.play-card p {
  color: var(--muted);
}

.play-card strong {
  margin-top: 8px;
  color: var(--green);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 42px 0 84px;
}

.contact-band h2 {
  margin-bottom: 0;
}

.book-card {
  background: #fffefa;
}

.work-hero {
  max-width: 960px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 56px;
}

.stat-grid article,
.feature-card,
.project-card,
.resume-sidebar,
.resume-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(32, 39, 36, 0.08);
}

.stat-grid article {
  padding: 20px;
}

.stat-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.stat-grid p,
.feature-card p,
.project-card p,
.resume-section p,
.resume-sidebar p,
.prose p,
.timeline-item li,
.work-list p {
  color: var(--muted);
}

.work-section,
.section-band,
.split-section,
.resume-layout,
.portfolio-grid {
  padding: 48px 0;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 24px;
}

.feature-grid,
.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.project-card,
.resume-sidebar,
.resume-section {
  padding: 22px;
}

.feature-card a {
  color: var(--green);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 0.9fr);
  gap: 28px;
  border-top: 1px solid var(--line);
}

.prose {
  max-width: 720px;
  font-size: 18px;
}

.work-list {
  display: grid;
  gap: 12px;
}

.work-list article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.work-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.work-list h3 {
  margin-bottom: 4px;
}

.portfolio-page {
  width: min(1380px, calc(100% - 36px));
}

.portfolio-hero {
  max-width: 920px;
  padding: 72px 0 34px;
}

.portfolio-layout {
  display: grid;
  grid-template-areas: "left resume right";
  grid-template-columns: minmax(240px, 0.82fr) minmax(430px, 1.3fr) minmax(240px, 0.82fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 86px;
}

.portfolio-left {
  grid-area: left;
}

.portfolio-right {
  grid-area: right;
}

.portfolio-resume {
  grid-area: resume;
}

.portfolio-column {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.portfolio-piece,
.portfolio-resume {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(32, 39, 36, 0.08);
}

.portfolio-piece {
  display: grid;
  gap: 10px;
  padding: 20px;
  text-decoration: none;
}

.portfolio-piece h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.portfolio-piece p {
  color: var(--muted);
}

.portfolio-piece strong,
.artifact-link strong {
  color: var(--green);
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.artifact-link {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  text-decoration: none;
}

.artifact-with-preview {
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.artifact-with-preview img {
  grid-row: span 2;
  width: 72px;
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}

.portfolio-resume {
  padding: clamp(24px, 4vw, 40px);
}

.portfolio-resume-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  padding-bottom: 16px;
  text-align: center;
}

.portfolio-resume-header h2 {
  margin-bottom: 6px;
  font-size: 42px;
}

.resume-contact {
  color: var(--muted);
  font-size: 14px;
}

.resume-contact a {
  font-weight: 800;
  text-decoration: none;
}

.portfolio-resume-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.portfolio-resume-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.portfolio-resume-section h3 {
  color: #1c5568;
  font-size: 18px;
  text-transform: uppercase;
}

.portfolio-resume-section p,
.portfolio-resume-section li {
  color: var(--muted);
  font-size: 15px;
}

.portfolio-resume-section ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.compact-role {
  margin-top: 16px;
}

.compact-role h4 {
  margin: 0 0 2px;
  font-size: 17px;
}

.compact-role p {
  margin-bottom: 7px;
}

.portfolio-resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.project-featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.project-featured img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  margin: 46px auto 0;
  width: min(1180px, calc(100% - 36px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0 34px;
  font-size: 14px;
}

.resume-page {
  width: min(980px, calc(100% - 36px));
}

.resume-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 28px 0 12px;
}

.resume-document {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 54px;
}

.resume-document-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 8px;
  text-align: center;
}

.resume-document-header h1 {
  margin-bottom: 6px;
  font-size: 44px;
  line-height: 1;
}

.resume-document-header p,
.resume-document p,
.resume-document li {
  font-size: 16px;
  line-height: 1.45;
}

.resume-document p {
  margin-bottom: 8px;
}

.resume-subtitle {
  color: #1c5568;
  font-weight: 800;
}

.resume-intro {
  margin-bottom: 18px;
}

.resume-document ul {
  margin: 6px 0 0;
  padding-left: 26px;
}

.resume-block {
  margin-top: 24px;
}

.resume-block h2 {
  border-bottom: 1px solid var(--line);
  color: #1c5568;
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 10px;
  padding-bottom: 5px;
}

.resume-role {
  margin-top: 22px;
}

.resume-role h3 {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 2px;
}

.resume-role h3 span {
  color: var(--muted);
  font-weight: 500;
}

.resume-role > p:first-of-type strong {
  color: #1c5568;
}

.book-page {
  width: min(960px, calc(100% - 36px));
}

.book-hero {
  max-width: 820px;
  padding: 78px 0 34px;
}

.book-hero h1 {
  font-size: 58px;
}

.book-author {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.book-summary {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.book-toc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(32, 39, 36, 0.08);
  margin: 18px 0 48px;
  padding: 18px;
}

.book-toc summary {
  cursor: pointer;
  font-weight: 900;
}

.book-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.book-toc-grid a {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
  text-decoration: none;
}

.book-toc-grid span {
  font-weight: 800;
}

.book-toc-grid small {
  color: var(--muted);
}

.book-text {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 80px;
  font-family: Georgia, "Times New Roman", serif;
}

.book-section {
  border-top: 1px solid var(--line);
  padding-top: 42px;
  margin-top: 42px;
}

.book-section:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.book-chapter-heading {
  margin-bottom: 22px;
}

.book-chapter-number {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-text h2 {
  margin-bottom: 4px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 30px;
}

.book-text h3 {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
}

.book-text p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.78;
}

.muted {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 7px 10px;
}

@media (max-width: 900px) {
  h1,
  .home-choice h1,
  .book-hero h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .site-header,
  .split-section,
  .project-featured {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .home-options,
  .play-grid,
  .feature-grid,
  .portfolio-grid,
  .stat-grid,
  .portfolio-layout,
  .book-toc-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-layout {
    grid-template-areas:
      "resume"
      "left"
      "right";
  }

  .portfolio-column {
    position: static;
  }

  .play-card-featured,
  .project-featured {
    grid-column: auto;
  }

  .contact-band {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer,
  .home-choice,
  .resume-page,
  .book-page,
  .portfolio-page {
    width: min(100% - 28px, 1180px);
  }

  h1,
  .home-choice h1,
  .book-hero h1 {
    font-size: 38px;
  }

  .lede,
  .book-author {
    font-size: 18px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .choice-card {
    min-height: 160px;
    padding: 20px;
  }

  .choice-card span {
    font-size: 30px;
  }

  .site-nav a {
    padding: 7px 8px;
  }

  .resume-toolbar {
    justify-content: stretch;
  }

  .resume-document {
    padding: 20px;
  }

  .resume-document-header,
  .portfolio-resume-header {
    text-align: left;
  }

  .resume-document-header p,
  .resume-document p,
  .resume-document li {
    font-size: 15px;
  }

  .book-text p {
    font-size: 17px;
    line-height: 1.7;
  }

  .portfolio-resume {
    padding: 20px;
  }

  .portfolio-resume-header h2 {
    font-size: 34px;
  }

  .artifact-with-preview {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .artifact-with-preview img {
    width: 58px;
    height: 76px;
  }
}
