/* Folio: a small, self-contained theme. No runtime dependencies. */
:root {
  color-scheme:dark;
  --bg:#111410;
  --surface:#1b1f19;
  --text:#f0f2e9;
  --muted:#a8b09f;
  --accent:#c7f59a;
  --line:#343b2e;
  --font:Arial,Helvetica,sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:2rem;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:1rem;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

::selection {
  background:var(--accent);
  color:var(--bg);
}

a {
  color:inherit;
  text-decoration:none;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

a:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:6px;
  border-radius:2px;
}

a:hover {
  color:var(--accent);
}

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

h1,h2,h3,h4,p,figure {
  margin:0;
}

h1,h2,h3,h4 {
  font-weight:500;
}

ul {
  padding-left:1.3rem;
}

.site-shell {
  max-width:1280px;
  padding:0 64px;
  margin:auto;
}

.skip-link {
  position:fixed;
  top:12px;
  left:12px;
  z-index:10;
  padding:12px 20px;
  background:var(--accent);
  color:var(--bg);
  transform:translateY(-200%);
}

.skip-link:focus {
  transform:none;
}

main:focus {
  outline:none;
}

.site-header {
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  border-bottom:1px solid var(--line);
}

.brand {
  display:flex;
  align-items:center;
  gap:20px;
}

.brand-mark {
  font-size:2.4rem;
  font-weight:700;
  letter-spacing:-.22rem;
  line-height:1;
}

.brand-mark span {
  color:var(--accent);
}

.brand-name {
  font-family:var(--mono);
  font-size:.75rem;
  letter-spacing:.11em;
}

.main-nav {
  display:flex;
  align-items:center;
  gap:32px;
  font-size:.875rem;
}

.main-nav a {
  padding:12px 0;
}

.main-nav a[aria-current] {
  color:var(--accent);
}

.main-nav .resume-link {
  border:1px solid var(--line);
  border-radius:5px;
  padding:9px 15px;
}

.resume-link span {
  margin-left:10px;
  color:var(--accent);
}

.eyebrow {
  font-family:var(--mono);
  font-size:.75rem;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--muted);
}

.hero {
  padding:57px 0 0;
}

.hero-eyebrow {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.hero-eyebrow>.eyebrow:first-child {
  color:var(--accent);
}

.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  margin-right:10px;
  vertical-align:2px;
}

.hero h1 {
  font-size:clamp(3.6rem,7.7vw,6.8rem);
  line-height:.99;
  letter-spacing:-.075em;
  margin:35px 0 30px;
  font-weight:500;
}

.hero h1>span,.page-heading h1>span {
  color:var(--accent);
}

.hero-bottom {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:40px;
}

.hero-bottom p {
  max-width:465px;
  font-size:1.0625rem;
  color:var(--muted);
  line-height:1.65;
}

.text-link {
  font-size:.875rem;
  display:inline-flex;
  align-items:center;
  gap:16px;
  min-height:44px;
}

.text-link span {
  color:var(--accent);
}

.hero-cta {
  border-bottom:1px solid var(--muted);
  padding-bottom:8px;
  white-space:nowrap;
}

.hero-caption {
  margin-top:39px;
  padding:19px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:.75rem;
  font-family:var(--mono);
}

.hero-caption a {
  color:var(--text);
}

.hero-caption>span:last-child {
  font-size:.75rem;
  letter-spacing:.04em;
}

.hero-caption>span:last-child span {
  margin:0 12px;
  color:#758269;
}

.section {
  padding-top:64px;
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}

.section-heading h2 {
  font-size:1.25rem;
  letter-spacing:-.02em;
}

.section-index {
  font-family:var(--mono);
  font-size:.75rem;
  color:var(--muted);
  margin-right:18px;
}

.project-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:54px 28px;
}

.project-cover {
  display:block;
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:5px;
  background:var(--surface);
}

.project-cover img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.project-cover:hover img {
  transform:scale(1.035);
}

.project-cover.ironman img {
  object-position:center;
}

.cover-arrow {
  position:absolute;
  bottom:16px;
  right:16px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  background:var(--bg);
  border:1px solid #59654d;
  border-radius:50%;
  font-size:1.25rem;
  color:var(--text);
  transition:background .2s,color .2s;
}

.project-cover:hover .cover-arrow {
  color:var(--bg);
  background:var(--accent);
}

.project-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-family:var(--mono);
  font-size:.75rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  margin:20px 0 7px;
}

.project-card :is(h2,h3) {
  font-size:1.5rem;
  letter-spacing:-.045em;
}

.project-card p {
  font-size:1rem;
  color:var(--muted);
  line-height:1.65;
  margin-top:7px;
  max-width:490px;
}

.tags {
  list-style:none;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:17px 0 0;
}

.tags li {
  border:1px solid var(--line);
  padding:3px 9px;
  border-radius:4px;
  font-size:.75rem;
  color:var(--muted);
}

.type-cover {
  height:100%;
  padding:30px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:#222b1c;
  color:var(--accent);
}

.type-cover strong {
  font-size:clamp(2.1rem,4.7vw,4.2rem);
  font-weight:400;
  line-height:1.05;
  letter-spacing:-.06em;
  max-width:85%;
}

.type-cover>span {
  font: .75rem var(--mono);
  text-transform:uppercase;
  letter-spacing:.1em;
}

.experience-list {
  border-top:1px solid var(--line);
}

.experience-row {
  display:grid;
  grid-template-columns:1fr 1.6fr auto;
  gap:30px;
  padding:28px 0;
  border-bottom:1px solid var(--line);
}

.experience-company h3 {
  font-size:1.125rem;
  letter-spacing:-.025em;
  margin-bottom:5px;
}

.experience-company .eyebrow {
  font-size:.75rem;
}

.experience-row h4 {
  font-size:.9375rem;
  margin-bottom:8px;
}

.experience-row p {
  color:var(--muted);
  font-size:.875rem;
  max-width:450px;
}

.experience-location {
  font-size:.75rem;
  color:var(--muted);
}

.about-strip {
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:40px;
  padding:75px 0;
  margin-top:40px;
}

.about-strip>.eyebrow {
  padding-top:11px;
}

.about-strip h2 {
  font-size:clamp(2rem,3.2vw,2.75rem);
  letter-spacing:-.055em;
  line-height:1.15;
  margin-bottom:20px;
}

.about-strip p {
  color:var(--muted);
  max-width:420px;
  margin-bottom:16px;
}

.site-footer {
  border-top:1px solid var(--line);
  padding:37px 0 24px;
}

.footer-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:40px;
}

.footer-top p {
  color:var(--muted);
  font-size:.9375rem;
}

.contact-link {
  font-size:2.5rem;
  letter-spacing:-.06em;
}

.contact-link span {
  color:var(--accent);
  margin-left:20px;
}

.footer-bottom {
  border-top:1px solid var(--line);
  padding-top:23px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:.75rem;
}

.footer-bottom nav {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}

.footer-bottom a {
  display:inline-flex;
  align-items:center;
  min-height:32px;
}

.page-heading {
  padding:66px 0 48px;
}

.page-heading h1 {
  font-size:clamp(3rem,6.5vw,5.5rem);
  letter-spacing:-.065em;
  line-height:1.05;
  margin:25px 0;
}

.page-heading>p {
  font-size:1.125rem;
  color:var(--muted);
  max-width:590px;
}

.all-projects {
  padding-bottom:80px;
  row-gap:60px;
}

.back-link {
  display:flex;
  width:fit-content;
  margin-bottom:28px;
  color:var(--muted);
}

.project-heading {
  max-width:950px;
}

.project-heading h1 {
  font-size:clamp(2.8rem,6vw,5.25rem);
}

.project-heading .tags {
  margin-top:23px;
}

.case-cover {
  border-radius:5px;
  overflow:hidden;
  background:var(--surface);
}

.case-cover img {
  width:100%;
  max-height:650px;
  object-fit:contain;
}

.case-body {
  display:grid;
  grid-template-columns:1fr 2.4fr;
  gap:60px;
  padding:50px 0 70px;
}

.case-facts {
  display:flex;
  flex-direction:column;
  gap:28px;
}

.case-facts p {
  margin-top:8px;
  font-size:.9375rem;
}

.prose {
  color:var(--muted);
  font-size:1.0625rem;
  line-height:1.8;
  overflow-wrap:anywhere;
}

.prose p {
  margin-bottom:20px;
}

.prose h2 {
  color:var(--text);
  font-size:1.6rem;
  line-height:1.3;
  letter-spacing:-.04em;
  margin:30px 0 18px;
}

.prose h2:first-child {
  margin-top:0;
}

.prose h3 {
  color:var(--text);
  margin:24px 0 12px;
}

.prose a {
  color:var(--text);
  text-decoration:underline;
  text-decoration-color:var(--muted);
  text-underline-offset:4px;
}

.prose a:hover {
  color:var(--accent);
}

.prose li {
  padding-left:5px;
  margin-bottom:10px;
}

.prose img {
  border-radius:5px;
}

.prose pre {
  overflow:auto;
  background:var(--surface);
  padding:20px;
}

.next-project {
  display:flex;
  flex-direction:column;
  gap:12px;
  border-top:1px solid var(--line);
  padding:30px 0 55px;
}

.next-project>span:last-child {
  font-size:2rem;
  letter-spacing:-.04em;
  display:flex;
  justify-content:space-between;
}

.next-project>span:last-child>span {
  color:var(--accent);
}

.about-layout {
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:90px;
  align-items:start;
}

.portrait {
  max-width:320px;
  justify-self:end;
  transform:rotate(2deg);
}

.portrait img {
  border-radius:3px;
  height:auto;
}

.portrait figcaption {
  font-family:var(--mono);
  font-size:.75rem;
  color:var(--muted);
  padding-top:14px;
}

.skills-section {
  padding:55px 0 70px;
  display:grid;
  grid-template-columns:1fr 1.3fr 1.2fr;
  gap:40px;
}

.skills-section p {
  font-size:.9375rem;
  margin-top:15px;
  color:var(--muted);
}

.notes-list {
  padding-bottom:80px;
  min-height:230px;
}

.notes-list article {
  display:grid;
  grid-template-columns:180px 1fr;
  align-items:center;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:28px 0;
  gap:30px;
}

.notes-list time {
  font-size:.875rem;
  color:var(--muted);
}

.notes-list h2 {
  font-size:1.5rem;
  letter-spacing:-.03em;
}

.notes-list h2 a {
  display:flex;
  justify-content:space-between;
}

.notes-list h2 span {
  color:var(--accent);
}

.article-prose {
  max-width:750px;
  min-height:250px;
  padding-bottom:80px;
}

.not-found {
  min-height:65vh;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  padding:12px 18px;
  margin-top:30px;
  border:1px solid var(--accent);
  border-radius:4px;
  color:var(--accent);
}

.pagination {
  display:flex;
  gap:25px;
  margin-bottom:40px;
}

@media(min-width:1440px) {
  .site-shell {
    max-width:1360px;
    padding:0 80px;
  }
  .hero h1 {
    font-size:7.2rem;
  }
}

@media(max-width:1000px) {
  .site-shell {
    padding:0 36px;
  }
  .hero h1 {
    font-size:clamp(3.5rem,9vw,6rem);
  }
  .experience-row {
    grid-template-columns:1fr 1.65fr;
  }
  .experience-location {
    display:none;
  }
  .about-layout {
    gap:45px;
  }
  .footer-place {
    display:none;
  }
  .back-top {
    display:none;
  }
  .hero-location {
    font-size:.75rem;
  }
}

@media(max-width:640px) {
  .site-shell {
    padding:0 22px;
  }
  .site-header {
    min-height:94px;
    gap:20px;
    flex-wrap:wrap;
    padding:18px 0;
  }
  .brand {
    gap:10px;
  }
  .brand-mark {
    font-size:2rem;
  }
  .brand-name {
    display:none;
  }
  .main-nav {
    gap:19px;
    font-size:.875rem;
  }
  .main-nav .resume-link {
    padding:7px 10px;
  }
  .resume-link span {
    margin-left:3px;
  }
  .hero {
    padding-top:35px;
  }
  .hero-location {
    display:none;
  }
  .hero h1 {
    font-size:clamp(2.6rem,10.8vw,4.5rem);
    letter-spacing:-.07em;
    line-height:1.07;
    margin:27px 0 24px;
  }
  .hero-bottom {
    display:block;
  }
  .hero-bottom p {
    font-size:1rem;
    max-width:390px;
  }
  .hero-cta {
    margin-top:19px;
    padding-bottom:0;
  }
  .hero-caption {
    margin-top:27px;
    flex-wrap:wrap;
    gap:9px;
    padding:16px 0;
    font-size:.75rem;
  }
  .hero-caption>span:last-child {
    font-size:.75rem;
  }
  .section {
    padding-top:40px;
  }
  .section-heading {
    margin-bottom:20px;
    gap:14px;
  }
  .section-heading h2 {
    font-size:1.125rem;
  }
  .section-index {
    margin-right:10px;
    font-size:.75rem;
  }
  .section-heading .text-link {
    font-size:.875rem;
    gap:5px;
  }
  .project-grid {
    grid-template-columns:1fr;
    gap:38px;
  }
  .project-cover {
    aspect-ratio:16/10;
  }
  .project-meta {
    margin-top:16px;
    font-size:.75rem;
  }
  .project-card :is(h2,h3) {
    font-size:1.4rem;
  }
  .project-card p {
    font-size:1rem;
  }
  .experience-row {
    grid-template-columns:1fr;
    gap:16px;
    padding:23px 0;
  }
  .experience-company {
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:baseline;
  }
  .experience-company h3 {
    font-size:1rem;
  }
  .experience-company .eyebrow {
    font-size:.75rem;
    white-space:nowrap;
  }
  .experience-row p {
    font-size:.9375rem;
  }
  .about-strip {
    grid-template-columns:1fr;
    gap:22px;
    padding:32px 0 48px;
  }
  .about-strip h2 {
    font-size:2.1rem;
  }
  .footer-top {
    display:block;
    padding-bottom:26px;
  }
  .footer-top p {
    font-size:.875rem;
  }
  .contact-link {
    display:inline-flex;
    align-items:center;
    margin-top:6px;
    font-size:2.3rem;
  }
  .footer-bottom {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:13px;
    padding-top:18px;
  }
  .footer-bottom nav {
    gap:22px;
  }
  .site-footer {
    padding-top:26px;
  }
  .page-heading {
    padding:40px 0 35px;
  }
  .page-heading h1 {
    font-size:clamp(2.8rem,10.5vw,4rem);
    margin:23px 0;
    overflow-wrap:break-word;
  }
  .page-heading>p {
    font-size:1rem;
  }
  .all-projects {
    padding-bottom:50px;
  }
  .type-cover strong {
    font-size:3rem;
  }
  .case-body {
    grid-template-columns:1fr;
    gap:35px;
    padding:30px 0 45px;
  }
  .case-facts {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
  }
  .case-facts p {
    font-size:.875rem;
  }
  .prose {
    font-size:1rem;
  }
  .next-project>span:last-child {
    font-size:1.6rem;
    gap:20px;
  }
  .about-layout {
    grid-template-columns:1fr;
    gap:30px;
  }
  .portrait {
    max-width:260px;
    justify-self:start;
    margin:0 8px 20px;
  }
  .skills-section {
    grid-template-columns:1fr;
    gap:28px;
    padding:35px 0 45px;
  }
  .notes-list article {
    grid-template-columns:1fr;
    gap:12px;
    padding:25px 0;
  }
  .notes-list h2 {
    font-size:1.4rem;
  }
  .notes-list {
    min-height:220px;
    padding-bottom:50px;
  }
  .article-prose {
    min-height:200px;
    padding-bottom:50px;
  }
}

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

@media print {
  :root {
    --bg:white;
    --text:#111;
    --muted:#444;
    --line:#bbb;
    --accent:#254811;
    color-scheme:light;
  }
  .site-shell {
    max-width:none;
    padding:0;
  }
  .site-header,.site-footer,.hero-cta,.next-project {
    display:none;
  }
  a {
    text-decoration:underline;
  }
  .project-cover {
    break-inside:avoid;
  }
  .page-heading {
    padding-top:0;
  }
}

.prose .headerlink {
  display: none;
}

