@font-face {
  font-family: Epilogue;
  src: url("assets/epilogue-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f3f0;
  --ink: #1d1d1b;
  --muted: #585752;
  --line: #cbc9c2;
  --light: #f8f7f4;
  --night: #21211e;
  --display: Epilogue, "Segoe UI", sans-serif;
  --body: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
::selection { background: var(--ink); color: var(--light); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .statement { font-family: var(--display); text-wrap: balance; letter-spacing: -.04em; }
p { text-wrap: pretty; }
a { color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: #67655b22; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.shell { width: min(100% - clamp(2.5rem, 9vw, 9rem), 82rem); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  padding: .7rem 1rem;
  color: var(--light);
  background: var(--ink);
  transform: translateY(calc(-100% - 1.5rem));
}
.skip:focus { transform: none; }

.site-header {
  min-height: 5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .4rem 2rem;
  border-bottom: 1px solid var(--line);
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 clamp(1rem, 3.4vw, 3rem); }
.site-header a { min-height: 44px; }
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand span { color: var(--muted); }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
}
.site-header nav a:hover, .brand:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .28em; }
.header-contact { justify-self: end; }
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  text-underline-offset: .3em;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}
.inline-link:hover { text-decoration-thickness: 2px; }
.inline-link .icon { width: .96rem; height: .96rem; }

.hero {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  display: grid;
  align-items: center;
  min-height: clamp(37rem, 53vw, 48rem);
  overflow: clip;
}
.hero-copy { position: relative; z-index: 1; width: fit-content; padding-block: 3.2rem; }
.hello {
  display: block;
  font-size: clamp(6.2rem, 12.4vw, 11.5rem);
  line-height: .94;
  font-weight: 500;
  letter-spacing: -.04em;
}
.intro {
  display: block;
  margin-top: .8rem;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  font-weight: 450;
  line-height: 1.16;
  letter-spacing: -.035em;
}
.intro strong { font-weight: 650; }
.hero-copy > p { margin-top: 1rem; max-width: 42ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  width: fit-content;
  margin-top: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 600;
  text-decoration: none;
}
.circle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1px solid #a9a69e;
  color: var(--ink);
  text-decoration: none;
}
.hero-link:hover .circle, .circle:hover { background: var(--ink); color: var(--light); border-color: var(--ink); }
.hero-link:focus-visible { outline-offset: -2px; }
.portrait {
  position: absolute;
  inset: auto 0 -6.6rem auto;
  width: min(59%, 43rem);
  mix-blend-mode: multiply;
  transform: translate3d(0, var(--portrait-shift, 0px), 0);
}
.portrait-image { display: block; width: 100%; height: auto; filter: grayscale(1); }
.hero-note {
  position: absolute;
  top: 2rem;
  right: 0;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.section { padding-block: clamp(4rem, 8vw, 7.5rem); border-top: 1px solid var(--line); }
.about, .experience { display: grid; grid-template-columns: minmax(10rem, .7fr) minmax(0, 1.5fr); gap: 1.5rem 2.5rem; }
.section-label { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; }
.statement { max-width: 18ch; font-size: clamp(2.7rem, 5.5vw, 5rem); line-height: 1.02; font-weight: 500; overflow-wrap: break-word; }
.about-content > p + p { max-width: 58ch; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.5rem; margin-bottom: clamp(1.3rem, 3vw, 2.5rem); }
.section-heading h2, .experience > h2 { font-size: clamp(2.2rem, 4.7vw, 4.2rem); line-height: 1.05; font-weight: 550; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3.6vw, 3rem); }
.project { min-width: 0; }
.cover {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 23rem;
  padding: 1.75rem 1rem;
  overflow: hidden;
  background: #dedfd5;
}
.cover-delivery { background: #dfd9d1; }
.cover-word {
  position: absolute;
  z-index: -1;
  font: 650 clamp(4rem, 10vw, 8.6rem)/1 var(--display);
  letter-spacing: -.04em;
  color: #cbcec0;
}
.cover-delivery .cover-word { color: #cdc5bb; }
.device {
  display: flex;
  flex-direction: column;
  gap: .48rem;
  width: min(100%, 11rem);
  padding: .7rem;
  border: 4px solid #252923;
  border-radius: 1.45rem;
  background: #fbfaf5;
  color: #222720;
  box-shadow: 0 15px 25px #211f1a25;
  font-size: .66rem;
  line-height: 1.2;
  transform: rotate(-9deg);
}
.cover-delivery .device { transform: rotate(8deg); border-color: #2c2926; background: #faf6ef; color: #2d2924; }
.camera { align-self: center; width: 1.8rem; height: .26rem; margin-bottom: .23rem; background: #252923; border-radius: 1rem; }
.screen-kicker { color: #4b574a; }
.screen-title { font: 650 1.05rem/1.1 var(--display); letter-spacing: -.035em; }
.screen-tabs { display: flex; gap: .3rem; }
.screen-tabs span { padding: .22rem .42rem; border-radius: .65rem; background: #eaece2; }
.screen-tabs span:first-child, .screen-action { background: #2d4637; color: white; }
.task-row, .food-name { display: flex; align-items: center; gap: .32rem; padding: .39rem; border-radius: .35rem; background: #eaece2; font-weight: 650; }
.task-row small, .food-name small { display: block; margin-top: .15rem; color: #4b574a; font-size: .56rem; font-weight: 500; }
.check { flex: 0 0 .75rem; height: .75rem; border: 1px solid #647565; border-radius: .16rem; }
.check.done { display: grid; place-items: center; color: white; background: #2d4637; border-color: #2d4637; }
.check .icon { width: .66rem; height: .66rem; }
.screen-action { padding: .45rem .35rem; border-radius: .35rem; text-align: center; font-weight: 700; }
.food-picture { background: #e9dac5; border-radius: .35rem; }
.food-picture svg { display: block; width: 100%; height: 5rem; }
.food-name { display: block; background: #f0e8db; }
.cover-delivery .screen-action { background: #4a352d; }
.project-figure figcaption { margin-top: .55rem; font-size: .78rem; color: var(--muted); }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.project-heading h3 { font-size: clamp(1.6rem, 3.1vw, 2.55rem); font-weight: 600; line-height: 1.1; }
.project > p { margin-top: .45rem; max-width: 54ch; color: var(--muted); }
.project > .project-stack { margin-top: .85rem; color: var(--ink); font-size: .85rem; }

.experience-entry {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: .5rem 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}
.experience-entry:last-child { border-bottom: 1px solid var(--line); }
.experience-entry h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.2; font-weight: 650; }
.experience-entry p { color: var(--muted); }
.experience-entry .experience-role { margin-bottom: .25rem; color: var(--ink); font-weight: 650; }

.contact, .site-footer { background: var(--night); color: var(--light); }
.contact-inner { padding-block: clamp(3.8rem, 9vw, 8rem); }
.contact h2 { max-width: 15ch; font-size: clamp(2.65rem, 8vw, 7.5rem); line-height: 1.02; font-weight: 500; }
.contact h2 span { color: #d2cabe; }
.contact-details { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1.15rem; }
.contact-details > p { color: #d7d4ca; font-size: 1.08rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: .25rem 1.65rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 1.25rem; padding-block: .55rem; border-top: 1px solid #646159; color: #d7d4ca; font-size: .9rem; }
.arrow-up { transform: rotate(180deg); }

@media (max-width: 860px) {
  .hero { min-height: clamp(32rem, 62vw, 38rem); }
  .portrait { width: min(61%, 32rem); bottom: -3.5rem; }
  .hello { font-size: clamp(5.75rem, 14vw, 8.5rem); }
  .cover { min-height: 20.5rem; }
  .experience { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { min-height: 0; grid-template-columns: 1fr auto; padding-block: .45rem .25rem; column-gap: .8rem; }
  .site-header nav { grid-area: 2 / 1 / 3 / 2; gap: 0 .55rem; }
  .header-contact { grid-area: 2 / 2 / 3 / 3; align-self: end; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { padding-block: 2.7rem 0; }
  .hello { font-size: clamp(5rem, 20vw, 8rem); }
  .intro { margin-top: .5rem; font-size: clamp(1.45rem, 5.6vw, 2rem); }
  .hero-copy > p { margin-top: .75rem; }
  .hero-link { margin-top: 1rem; }
  .portrait { position: relative; inset: auto; width: min(100%, 25rem); align-self: center; margin-top: -1rem; }
  .portrait-image { max-height: 27rem; object-fit: cover; object-position: center 31%; }
  .hero-note { display: none; }
  .about, .project-grid, .experience-entry { grid-template-columns: minmax(0, 1fr); }
  .statement { font-size: clamp(2.05rem, 9vw, 3.6rem); }
  .project-grid { gap: 2.75rem; }
  .cover { min-height: 20.5rem; }
  .cover-word { font-size: clamp(4rem, 17vw, 7.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .portrait { transform: none; }
}
