@font-face {
  font-family: Inter;
  src: url("fonts/inter-normal-400-800.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #faf9f6;
  --ink: #282a25;
  --muted: #53574e;
  --rule: #ddded5;
  --accent: #354b42;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
p { color: var(--muted); }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: .12rem; }
.wrap { width: min(calc(100% - 3rem), 53rem); margin-inline: auto; }
.home { padding-block: clamp(3rem, 8vw, 6.1rem) clamp(3rem, 8vw, 6rem); }
.identity h1 {
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  font-weight: 640;
  line-height: 1.13;
  letter-spacing: -.047em;
}
.identity p { font-size: 1.08rem; margin-top: .35rem; }
.about { max-width: 37rem; margin-top: clamp(2.7rem, 7vw, 5.25rem); }
.about p { margin-top: .75rem; }
h2 { font-size: 1.13rem; font-weight: 650; letter-spacing: -.025em; }
h3 { font-size: 1rem; font-weight: 650; line-height: 1.32; }
.projects, .event-grid, .links { margin-top: clamp(2.65rem, 7vw, 4.75rem); }
.projects > h2 { margin-bottom: .95rem; }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 30.5%);
  grid-template-areas: "title photo" "text photo" "more photo";
  gap: .5rem clamp(1rem, 4vw, 2.15rem);
  align-items: start;
  padding-block: 1.3rem;
  border-top: 1px solid var(--rule);
  scroll-margin-block: .75rem;
}
.project h3 { grid-area: title; }
.project p { grid-area: text; }
.project-more {
  grid-area: more;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.project-more:hover { color: var(--ink); }
.media { overflow: hidden; aspect-ratio: 3 / 2; border-radius: .38rem; background: #eeebe6; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project .media { grid-area: photo; margin-top: .16rem; }
.volumetric-display img { object-position: 40% center; }
.wro img { object-position: center 42%; }
.placeholder {
  display: grid; place-items: center; padding: .75rem;
  text-align: center; color: var(--muted); font-size: .875rem;
  border: 1px dashed #cbc7bd;
}
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.competitions { grid-column: span 2; }
.event-group > h2 { margin-bottom: .95rem; }
.event-cards { display: grid; gap: 1.35rem; }
.competitions .event-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event h3 { margin-block: .75rem .38rem; }
.links { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.links ul { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; list-style: none; margin: .65rem 0 0; padding: 0; }
.links a { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .project-more { transition: color .14s ease; }
}
@media (max-width: 40rem) {
  .project {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "photo" "text" "more";
    row-gap: .68rem;
  }
  .project .media { max-width: 27rem; width: 100%; }
  .event-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .competitions { grid-column: auto; }
  .hackathons .event { max-width: 27rem; }
}
@media (max-width: 30rem) {
  .wrap { width: calc(100% - 2rem); }
  .competitions .event-cards { grid-template-columns: minmax(0, 1fr); }
}
