:root{
  color-scheme:light;
  --bg:#fcfcfb;
  --text:#202522;
  --muted:#626a65;
  --accent:#315d49;
  --line:#dce1dc;
  --surface:#f1f3ef;
  --accent-rgb:49,93,73;
  --card-border:var(--line);
  --card-bg:var(--surface);
  --card:#fff;
  --button-bg:#202522;
  --button-text:#fff;
  --tag-text:#535e56;
  --selection:#dce9dc;
  --detail-line:#bacbbd;
  --hover-border:#869c8c
}
*{
  box-sizing:border-box
}
html{
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased
}
a{
  color:inherit;
  text-decoration-thickness:1px;
  text-underline-offset:5px
}
a:hover{
  color:var(--accent)
}
a:focus-visible,summary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:6px;
  border-radius:2px
}
img{
  max-width:100%;
  display:block
}
h1,h2,h3,h4,p{
  margin:0
}
h1,h2,h3,h4{
  font-weight:500;
  line-height:1.15
}
::selection{
  background:var(--selection)
}
.wrap{
  width:min(1104px,calc(100% - 96px));
  margin-inline:auto
}
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:104px;
  border-bottom:1px solid var(--line);
  gap:24px
}
.wordmark{
  font-size:22px;
  font-weight:600;
  letter-spacing:-.8px;
  text-decoration:none
}
.brand-dot{
  color:var(--accent)
}
.site-header nav{
  margin-left:auto;
  display:flex;
  gap:32px;
  font-size:14px
}
.site-header nav a{
  text-decoration:none
}
.skip-link{
  position:absolute;
  left:20px;
  top:-90px;
  padding:12px 20px;
  background:var(--text);
  color:white;
  z-index:10
}
.skip-link:focus{
  top:12px
}
.hero{
  padding:88px 0 0
}
.eyebrow{
  font-size:12px;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:24px
}
.hero h1{
  font-size:clamp(48px,6.6vw,84px);
  letter-spacing:-.065em;
  line-height:1.04
}
.hero h1 span{
  color:var(--accent)
}
.hero-bottom{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:48px;
  margin-top:32px
}
.hero-bottom>p{
  max-width:540px;
  font-size:18px;
  line-height:1.65;
  color:var(--muted)
}
.hero-links{
  display:flex;
  gap:24px;
  align-items:center;
  flex-shrink:0;
  font-size:14px;
  padding-bottom:4px
}
.button{
  display:inline-flex;
  padding:13px 20px;
  border-radius:5px;
  background:var(--button-bg);
  color:var(--button-text);
  text-decoration:none
}
.button:hover{
  background:var(--accent);
  color:#fff
}
.text-link{
  white-space:nowrap
}
.hero-footnote{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-top:56px;
  padding:20px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:12px
}
.section{
  padding:68px 0;
  border-bottom:1px solid var(--line)
}
.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:24px;
  margin-bottom:28px
}
.section-heading h2{
  font-size:28px;
  letter-spacing:-.9px
}
.section-heading>p{
  font-size:14px;
  color:var(--muted)
}
.project-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px
}
.project-card{
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:var(--card);
  display:flex;
  flex-direction:column;
  transition:border-color .2s
}
.project-card:hover{
  border-color:var(--hover-border)
}
.project-image{
  height:278px;
  background:#edf0ed;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--line);
  overflow:hidden
}
.project-image img{
  width:100%;
  height:100%;
  object-fit:contain
}
.jenga{
  background:#f2f3f1
}
.jenga img{
  padding:12px
}
.cuphead{
  background:#18251f
}
.cuphead img{
  object-fit:cover
}
.project-body{
  padding:26px;
  flex:1;
  display:flex;
  flex-direction:column
}
.project-meta{
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:baseline;
  color:var(--muted);
  font-size:12px;
  margin-bottom:20px
}
.status{
  white-space:nowrap;
  color:var(--accent)
}
.project-card h3{
  font-size:27px;
  letter-spacing:-1px;
  margin-bottom:14px
}
.project-body>p{
  color:var(--muted);
  font-size:16px;
  line-height:1.65
}
.project-detail{
  margin:24px 0 20px;
  padding-left:14px;
  border-left:2px solid var(--detail-line)
}
.project-detail>span{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--accent)
}
.project-detail p{
  font-size:14px;
  margin-top:5px;
  line-height:1.55
}
.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0 0 24px
}
.tags li,.tags .tag{
  font-size:12px;
  color:var(--tag-text);
  background:var(--surface);
  padding:4px 9px;
  border-radius:4px
}
.project-links{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding-top:20px;
  border-top:1px solid var(--line);
  font-size:14px;
  margin-top:auto
}
.about-grid{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:80px
}
.about-grid h2{
  font-size:40px;
  letter-spacing:-1.5px
}
.about-copy>p{
  color:var(--muted);
  margin-bottom:18px
}
.skills{
  margin:28px 0 0
}
.skills>div+div{
  margin-top:16px
}
.skills dt{
  font-size:14px;
  font-weight:600
}
.skills dd{
  margin:3px 0 0;
  color:var(--muted);
  font-size:14px
}
.experience-row{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:80px;
  padding:26px 0;
  border-top:1px solid var(--line)
}
.experience-row:last-child{
  padding-bottom:0
}
.experience-row h3{
  font-size:20px;
  margin-bottom:6px
}
.experience-row span{
  font-size:14px;
  color:var(--muted)
}
.experience-row h4{
  font-size:16px;
  margin-bottom:10px
}
.experience-row p{
  color:var(--muted);
  font-size:16px;
  max-width:570px
}
.writing-list{
  list-style:none;
  padding:0;
  margin:0
}
.writing-list li{
  padding:20px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:baseline
}
.writing-list a{
  text-decoration:none;
  font-size:17px
}
.writing-list a:hover{
  text-decoration:underline
}
.writing-list span{
  white-space:nowrap;
  font-size:13px;
  color:var(--muted)
}
details{
  margin-top:18px
}
summary{
  cursor:pointer;
  color:var(--muted);
  font-size:14px;
  width:fit-content;
  padding:4px 0
}
details[open] summary{
  margin-bottom:16px
}
.contact-section{
  padding:80px 0 72px
}
.contact-section h2{
  font-size:clamp(38px,5vw,60px);
  letter-spacing:-.05em;
  margin-bottom:24px
}
.contact-section>p:not(.eyebrow){
  color:var(--muted);
  margin-bottom:28px
}
.contact-email{
  font-size:clamp(17px,2.6vw,28px);
  letter-spacing:-.03em;
  color:var(--accent)
}
.contact-links{
  display:flex;
  gap:24px;
  margin-top:24px;
  font-size:14px
}
.site-footer{
  display:flex;
  gap:28px;
  padding:26px 0 36px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:var(--muted)
}
.site-footer>span{
  margin-right:auto
}
.site-footer a{
  text-decoration:none
}
@media(min-width:1400px){
  .hero{
    padding-top:100px
  }
}
@media(max-width:980px){
  .hero-bottom{
    align-items:flex-start;
    flex-direction:column;
    gap:24px
  }
  .hero-bottom>p{
    max-width:650px
  }
  .project-meta{
    flex-wrap:wrap;
    gap:4px
  }
  .project-image{
    height:240px
  }
  .about-grid,.experience-row{
    gap:40px
  }
  .project-body{
    padding:22px
  }
}
@media(max-width:640px){
  .wrap{
    width:calc(100% - 40px)
  }
  .site-header{
    min-height:82px;
    gap:16px
  }
  .wordmark{
    font-size:19px
  }
  .site-header nav{
  margin-left:auto;
    gap:18px;
    font-size:14px
  }
  .hero{
    padding-top:56px
  }
  .hero h1{
    font-size:clamp(42px,10.5vw,64px)
  }
  .hero-bottom>p{
    font-size:16px
  }
  .hero-footnote{
    flex-direction:column;
    gap:6px;
    margin-top:40px
  }
  .section{
    padding:44px 0
  }
  .section-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:10px
  }
  .section-heading h2{
    font-size:26px
  }
  .project-grid{
    grid-template-columns:1fr;
    gap:24px
  }
  .project-image{
    height:260px
  }
  .project-meta{
    flex-wrap:nowrap;
    font-size:11px
  }
  .project-card h3{
    font-size:26px
  }
  .about-grid,.experience-row{
    grid-template-columns:1fr;
    gap:24px
  }
  .about-grid h2{
    font-size:34px
  }
  .about-grid .eyebrow{
    margin-bottom:16px
  }
  .experience-row{
    gap:18px
  }
  .writing-list li{
    flex-direction:column;
    gap:6px
  }
  .writing-list a{
    font-size:16px
  }
  .contact-section{
    padding:52px 0
  }
  .site-footer{
    gap:16px;
    flex-wrap:wrap
  }
  .site-footer>span{
    width:100%
  }
  .hero-links{
    gap:24px
  }
}
@media(prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto
  }
  *{
    transition:none!important
  }
}

/* Both palettes share the same layout and readable contrast. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111613;
  --text: #edf2ed;
  --muted: #a9b4ac;
  --accent: #a0cfaf;
  --line: #344039;
  --surface: #222c25;
  --card: #18201b;
  --button-bg: #b5d8bd;
  --button-text: #14251a;
  --tag-text: #c0cec3;
  --selection: #365442;
  --detail-line: #577762;
  --hover-border: #8bb298;
  --accent-rgb: 160, 207, 175;
  --code-string: #e6bf89;
}
.button:hover { color: var(--bg); }
.theme-toggle {
  flex-shrink: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
:root[data-theme="dark"] .theme-toggle { border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.studio-card { grid-column: 1 / -1; }
.studio-intro { padding: 32px; }
.studio-intro h3 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 20px; letter-spacing: -.04em; }
.studio-intro > p { max-width: 760px; color: var(--muted); line-height: 1.7; }
.studio-figure { margin: 0; }
.studio-figure img { width: 100%; height: auto; }
.studio-figure a:focus-visible { outline-offset: -4px; }
.studio-figure figcaption { padding: 14px 32px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.studio-figure figcaption a { margin-left: 8px; }
.studio-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 32px; }
.studio-features h4 { font-size: 17px; margin-bottom: 12px; }
.studio-features p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.studio-footer { margin: 0 32px; padding: 24px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.studio-footer p { color: var(--muted); font-size: 14px; }
.studio-footer .button { flex-shrink: 0; font-size: 14px; }
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; padding: 18px 0; gap: 12px; }
  .site-header .wordmark { flex: 1; }
  .site-header nav { order: 3; width: 100%; margin-left: 0; gap: 24px; }
  .theme-toggle { margin-left: auto; }
  .studio-intro { padding: 22px; }
  .studio-figure figcaption { padding: 14px 22px; }
  .studio-features { grid-template-columns: 1fr; padding: 24px 22px; gap: 24px; }
  .studio-footer { margin: 0 22px; align-items: flex-start; flex-direction: column; gap: 16px; }
}

.studio-intro > .studio-tagline { font-size: clamp(20px, 2.5vw, 26px); color: var(--text); margin-bottom: 16px; line-height: 1.3; letter-spacing: -.02em; }
@media (max-width: 640px) { .studio-intro .project-meta { flex-wrap: wrap; gap: 8px; font-size: 12px; } }
