@charset "utf-8";

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --paper: #f1f0ea;
  --ink: #0a0a0a;
  --ink-soft: #33322e;
  --accent: #ffb84d;
  --accent-deep: #d99420;
  --measure: 34rem;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.75rem, 5vw, 4rem);
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.75rem);
  width: 100%;
  max-width: 62rem;
}

.intro {
  flex: 0 1 var(--measure);
  min-width: 0;
  max-width: var(--measure);
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

p {
  margin: clamp(1.5rem, 3vw, 2.125rem) 0 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.8;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.2s ease;
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--accent-deep);
}

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

.portrait {
  flex: none;
  display: block;
  width: clamp(11rem, 22vw, 16rem);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border: 4px solid var(--ink);
  border-radius: 20px;
}

@media (max-width: 56rem) {
  .page {
    flex-direction: column-reverse;
    align-items: flex-start;
    max-width: var(--measure);
  }

  .portrait {
    width: min(100%, 17rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

@media print {
  body {
    background-color: #fff;
    color: #000;
  }

  a {
    text-decoration-color: currentColor;
  }
}
