:root {
  color-scheme: light;
  --paper: #eae9e5;
  --ink: #252522;
  --muted: #53514b;
  --line: #b9b7ae;
  --yellow: #f4b323;
  --display: 'Lilita One', 'Arial Black', sans-serif;
  --body: 'Space Grotesk', sans-serif;
  --mono: ui-monospace, 'Courier New', monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--yellow); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 8px 14px;
  background: var(--yellow);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 3; background: var(--paper); }
.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
}
.logo { font: 400 2rem/1 var(--display); color: var(--ink); text-decoration: none; }
.nav-links a { text-decoration: none; font-weight: 700; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 25px; font-size: .9rem; }
.nav-links a { padding-block: 5px; }
.nav-links a:hover { box-shadow: inset 0 -3px var(--yellow); }
.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  column-gap: 4%;
  padding: 24px 0 38px;
}
.hero-identity { grid-area: 1 / 2; }
.hero-art {
  position: relative;
  grid-area: 1 / 1 / 3 / 2;
  align-self: center;
  min-height: 365px;
  max-height: 510px;
  aspect-ratio: .95;
}
.hero-art img {
  position: absolute;
  left: 2%;
  bottom: 23px;
  width: 94%;
  height: calc(100% - 27px);
  object-fit: contain;
  object-position: bottom center;
}
.art-ring {
  position: absolute;
  right: 14%;
  top: 7%;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.art-block {
  position: absolute;
  bottom: 23px;
  left: 0;
  width: 98%;
  height: 59%;
  background-color: var(--yellow);
  background-image: radial-gradient(#25252240 .65px, transparent .75px);
  background-size: 5px 5px;
  border-radius: 4px 44px 4px 4px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 .76rem/1.35 var(--mono);
  text-transform: uppercase;
}
.eyebrow span { display: inline-grid; place-items: center; width: 30px; height: 26px; background: var(--yellow); }
.hero h1 { margin-bottom: 7px; font: 400 6rem/.95 var(--display); white-space: nowrap; }
.hero-role { font-size: 1.55rem; font-weight: 700; }
.hero-role span { color: var(--muted); font-size: .72em; font-weight: 600; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s, color .18s;
}
.btn.primary { background: var(--yellow); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn img { flex: none; }
.btn:hover img { filter: invert(1); }
.btn span, .footer span[aria-hidden] { font-size: 1.1em; }

.section { padding-block: 33px 40px; border-top: 1px solid var(--ink); }
.section-title { margin-bottom: 24px; }
.section-title h2, .contact-content h2 { margin-top: 8px; font: 400 3.6rem/1 var(--display); }
.section-title h2 span { color: #956200; }
.about-copy { grid-area: 2 / 2; min-width: 0; }
.hello {
  position: relative;
  width: fit-content;
  margin-bottom: 10px;
  font: 400 2.65rem/1 var(--display);
  text-transform: uppercase;
  transform: rotate(-5deg);
  transform-origin: left center;
}
.hello-prefix { position: absolute; top: 0; right: 100%; }
.hello-quote, .hello-period { color: #956200; }
.hello-quote { position: absolute; top: .1em; right: calc(100% + 3px); font-size: .65em; }
.about-copy > p { max-width: 68ch; color: var(--muted); }
.about-copy > p + p { margin-top: 10px; }
.profile-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 18px 24px;
  margin-top: 32px;
}
.profile-details h2 {
  width: fit-content;
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
  box-shadow: inset 0 -4px var(--yellow);
}
.education-status { color: var(--muted); font-size: .88rem; }
.software-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 46px));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.software-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.software-icon img { width: 29px; height: 29px; object-fit: contain; }

#skills { border-top: 0; margin-top: 12px; }
#skills .section-title { text-align: center; }
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(96%, 720px);
  margin-inline: auto;
}
.certificate { min-width: 0; margin: 0; text-align: center; }
.certificate-window {
  overflow: hidden;
  aspect-ratio: 64 / 45;
  border: 2px solid var(--yellow);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 0 #f4b32340;
}
.certificate-window img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.certificate figcaption { margin-top: 8px; overflow-wrap: anywhere; }
.certificate h3 { font-size: 1.05rem; line-height: 1.25; }
.certificate p { margin-top: 3px; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.project-description, .timeline-item p, .timeline-item ul { color: var(--muted); }

#projects, #experience { border-top: 0; margin-top: 12px; }
.section-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 880px);
}
.section-heading-row h2 { margin-top: 0; }
.section-heading-rule { flex: 1; min-width: 12px; height: 1px; background: var(--ink); }
.section-heading-jump {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.section-heading-jump:hover { background: var(--yellow); }
.section-heading-jump svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-grid { border-bottom: 1px solid var(--line); }
.project-card { border-top: 1px solid var(--line); }
.project-card summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 10px 12px;
  list-style: none;
  cursor: pointer;
}
.project-card summary::-webkit-details-marker { display: none; }
.project-card summary:hover, .project-card[open] summary { background: #f4b32329; }
.project-card summary:focus-visible { outline-offset: -2px; }
.project-number, .tag { font: 700 .73rem/1.3 var(--mono); }
.project-number { color: var(--muted); }
.project-title { font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.tag { background: var(--yellow); padding: 5px 8px; }
.project-toggle { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; }
.project-toggle::before { content: '+'; }
.project-card[open] .project-toggle::before { content: '\2212'; }
.project-description { padding: 12px 24px 18px 62px; max-width: 78ch; }
.project-description p + p { margin-top: 12px; }
.project-description ul { padding-left: 18px; margin: 8px 0 0; }

.activity-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.activity-filter {
  min-height: 40px;
  padding: 6px 13px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.activity-filter:hover, .activity-filter[aria-pressed='true'] { background: var(--yellow); }
.timeline-item { position: relative; padding: 16px 0 16px 22px; border-top: 1px solid var(--line); }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 23px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.timeline-item span { font: 700 .73rem/1.3 var(--mono); text-transform: uppercase; }
.timeline-item h3 { margin: 4px 0; font-size: 1.12rem; line-height: 1.3; }
.timeline-item p { max-width: 76ch; }
.timeline-item ul { margin: 4px 0 0; padding-inline-start: 1.2em; }

.contact-section { background: var(--yellow); border-block: 1px solid var(--ink); }
.contact-content { padding-block: 34px 40px; }
.contact-content h2 { margin: 0; white-space: nowrap; }
.contact-content p { margin-top: 10px; max-width: 65ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.contact-links a, .footer a { font-weight: 700; text-underline-offset: 4px; }
.contact-links a { display: inline-flex; align-items: center; gap: 6px; }
.contact-links img { flex: none; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; font-size: .84rem; }

@media (max-width: 1130px) {
  .hero h1 { font-size: 5rem; }
}
@media (max-width: 950px) {
  .container { width: calc(100% - 48px); }
  .hero h1 { font-size: 4.25rem; }
  .profile-details { grid-template-columns: 1fr; }
}
@media (min-width: 741px) and (max-width: 820px) {
  .hero h1 { font-size: 3.85rem; }
}
@media (max-width: 740px) {
  html { scroll-padding-top: 74px; }
  .container { width: calc(100% - 36px); }
  .nav { position: relative; min-height: 62px; flex-wrap: wrap; gap: 0; }
  .nav-links { width: 100%; padding-block: 4px 12px; gap: 2px 16px; }
  .nav.is-enhanced .nav-links {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: var(--paper);
    border: 1px solid var(--ink);
    padding: 12px 16px;
  }
  .nav.is-enhanced .nav-links.open { display: grid; gap: 3px; }
  .nav.is-enhanced .nav-links a { padding-block: 8px; }
  .hero { display: flex; flex-direction: column; gap: 16px; padding-block: 21px 30px; }
  .hero-art { aspect-ratio: 1.24; width: min(100%, 380px); min-height: 0; }
  .art-ring { width: 54%; right: 22%; top: 2%; }
  .art-block { width: 90%; left: 5%; border-top-right-radius: 28px; }
  .about-copy { --hello-indent: 3.25rem; }
  .hello { margin-inline-start: var(--hello-indent); font-size: 2.35rem; }
  .hello + p { text-indent: var(--hello-indent); }
  .section { padding-block: 25px 30px; }
  .section-title h2 { font-size: 2.85rem; }
  .certificate-grid { gap: 12px; }
  .certificate h3 { font-size: .9rem; }
  .certificate p { font-size: .74rem; }
  .contact-content h2 { font-size: 2.25rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 3.35rem; }
  .hero-role { font-size: 1.3rem; }
  .hero-actions { margin-top: 17px; }
  .hero-actions .btn { padding-inline: 9px; gap: 6px; font-size: .8rem; }
  .section-heading-row { gap: 8px; }
  #activity-title { font-size: 2.25rem; }
  .project-card summary { grid-template-columns: 24px minmax(0, 1fr) 30px; gap: 6px 9px; padding: 10px 4px; }
  .project-card .tag { grid-column: 2; width: fit-content; }
  .project-toggle { grid-area: 1 / 3 / 3 / 4; }
  .project-title { font-size: 1rem; }
  .project-description { padding: 10px 4px 14px 37px; }
  .contact-content h2 { font-size: 1.65rem; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 2.85rem; }
  .software-list { gap: 6px; }
  #activity-title { font-size: 2rem; }
  .contact-content h2 { font-size: 1.36rem; }
}
@media (min-width: 741px) {
  .menu-toggle { display: none; }
  .about-copy { margin-top: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-identity { animation: cover-in .42s ease-out both; }
  .hero-art img { animation: cover-in .55s .08s ease-out both; }
  @keyframes cover-in {
    from { opacity: 0; translate: 0 8px; }
    to { opacity: 1; translate: 0 0; }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .certificate-window { transition: transform .18s ease; }
  .certificate:hover .certificate-window { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
