/*---------------
reset
---------------*/
/* Both sizes grow smoothly from a 360px-wide screen to a 1240px-wide screen, then stop growing */
:root {
  --text-large: clamp(2.25rem, 1.125rem + 5vw, 5rem);             /* 36px → 80px (heading) */
  --text-small: clamp(0.9375rem, 0.554rem + 1.7045vw, 1.875rem);  /* 15px → 30px (paragraphs) */
}
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body, h1, p {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
  padding: 0;
}

/*---------------
general
---------------*/
body {
  background-color: #4e4d2eff;
  background-image: url('/img/bg60.avif');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  display: grid;
  font-family: 'Roboto', sans-serif;
  font-size: var(--text-small);
  font-weight: 300;
  line-height: 1.25; /* 19px → 38px */
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vw, 4rem); /* 24px on phones → 64px on wide screens */
  place-content: safe center;
}
h1 {
  font-family: 'Lastik', serif;
  font-size: var(--text-large);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 auto 1em;
  max-width: 18ch;
}
p {
  margin: 1em auto;
  max-width: 42ch;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 0.01em;
  text-underline-offset: 0.15em;
}
a:hover {
  color: inherit;
  text-decoration-style: solid;
  text-decoration-thickness: 0.02em;
  text-underline-offset: 0.2em;
}

/*---------------
structure
---------------*/
main {
  text-align: center;
}
main > :first-child { margin-top: 0; }
main > :last-child  { margin-bottom: 0; }

/*---------------
fonts
---------------*/
@font-face {
  font-display: swap;
  font-family: 'Lastik';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/lastik.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('/fonts/roboto-v51-latin-300.woff2') format('woff2');
}