@font-face {
  font-family: "Malvinas Sans";
  src: url("./fonts/MalvinasSans-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --ink: #171713;
  --paper: #f1eddf;
  --red: #e23d28;
  --blue: #2f60d3;
  --green: #357a53;
  --yellow: #f4c542;
  --line: rgba(23, 23, 19, 0.22);
  font-family: "Malvinas Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.icon-button {
  display: inline-grid;
  width: 2.75rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.home-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(23,23,19,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,23,19,.08) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}

.home-header { padding: 1.1rem; }
.home-main { padding: 4rem 1.1rem 1.1rem; }
.home-intro { max-width: 45rem; margin-bottom: 4rem; }
.home-intro h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4rem, 19vw, 8rem);
  line-height: 0.8;
  font-weight: 400;
  text-transform: uppercase;
}
.home-intro > p:last-child { max-width: 35rem; margin: 2rem 0 0; font-size: 1.1rem; line-height: 1.45; }
.experience-list { border-top: 1px solid var(--ink); }
.experience-link {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.6rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: padding .25s ease, background .25s ease;
}
.experience-number { font-size: .7rem; }
.experience-title { font-size: clamp(2.5rem, 13vw, 5rem); line-height: .9; text-transform: uppercase; }
.experience-action { grid-column: 2; margin-top: .4rem; font-size: .8rem; text-transform: uppercase; }
.experience-link:hover { padding-inline: .8rem; }
.experience-link--red:hover { background: var(--red); }
.experience-link--blue:hover { background: var(--blue); color: white; }
.experience-link--green:hover { background: var(--green); color: white; }

@media (min-width: 800px) {
  .home-header { padding: 1.5rem 2rem; }
  .home-main { display: grid; grid-template-columns: minmax(18rem, .8fr) 1.2fr; gap: 6vw; align-items: end; min-height: calc(100vh - 6rem); padding: 4rem 2rem 2rem; }
  .home-intro { margin: 0; }
  .home-intro h1 { font-size: clamp(5rem, 9.5vw, 9rem); }
  .experience-link { grid-template-columns: 3rem 1fr auto; align-items: end; padding: 1.7rem 0; }
  .experience-action { grid-column: auto; margin: 0 0 .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
