@font-face {
  font-family: 'Lilita One';
  src: url('./assets/LilitaOne-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: Figtree;
  src: url('./assets/Figtree-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Figtree;
  src: url('./assets/Figtree-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff4dc;
  --ink: #30251a;
  --body: #534635;
  --rust: #c4492a;
  --rust-hover: #a93622;
  --rust-shadow: #8a2e15;
  --teal: #174d50;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.5 Figtree, system-ui, sans-serif;
}

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

body {
  display: flex;
  min-block-size: 100vh;
  min-block-size: 100svh;
  flex-direction: column;
  margin: 0;
}

.wrap {
  width: min(calc(100% - clamp(2.5rem, 8vw, 9rem)), 82rem);
  margin-inline: auto;
}

.site-header { padding-block: clamp(1.5rem, 4vw, 2.65rem) 1rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font: 400 1.95rem/1 'Lilita One', system-ui, sans-serif;
  text-decoration: none;
}

.wordmark img {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .72rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(1.75rem, 4.75vw, 4.75rem);
  flex: 1 0 auto;
  padding-block: 1.5rem 2rem;
}

.hero-copy h1 {
  margin: 0;
  font: 400 clamp(3.4rem, 5.75vw, 5.7rem)/.99 'Lilita One', system-ui, sans-serif;
  letter-spacing: -.023em;
}

.hero-copy h1 span {
  display: block;
  color: var(--rust);
}

.hero-copy p {
  max-width: 24em;
  margin: 1.45rem 0 1.9rem;
  color: var(--body);
  font-size: clamp(1.125rem, 1.58vw, 1.375rem);
  line-height: 1.42;
  text-wrap: pretty;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.32rem;
  border-radius: 1rem;
  background: var(--rust);
  box-shadow: 0 .24rem 0 var(--rust-shadow);
  color: #fffaf0;
  font-weight: 800;
  font-size: 1.125rem;
  text-align: center;
  text-decoration: none;
}

.download:hover { background: var(--rust-hover); }
.download:active { transform: translateY(.16rem); box-shadow: 0 .08rem 0 var(--rust-shadow); }

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 700 / 660;
  border: 1px solid #2a6563;
  border-radius: clamp(1.3rem, 3.35vw, 3rem);
  background: var(--teal);
  box-shadow: 0 .45rem 0 #17565921, 0 1.25rem 2.8rem #173f361e;
}

.site-footer {
  display: flex;
  align-items: center;
  padding-block: .85rem 2rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; }
.site-footer a { color: var(--body); text-underline-offset: .18em; }
.site-footer a:hover { color: var(--teal); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }

@media (max-width: 56rem) {
  .site-header { padding-block: 1.3rem .8rem; }
  .wordmark { font-size: 1.7rem; }
  .wordmark img { width: 2.35rem; height: 2.35rem; border-radius: .6rem; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    gap: 1.8rem;
    padding-block: 1.4rem 1.9rem;
  }

  .hero-copy { text-align: center; }
  .hero-copy h1 { font-size: clamp(2.55rem, 9.7vw, 4.75rem); }
  .hero-copy p { margin: .95rem auto 1.35rem; }
  .hero-image { width: min(100%, 32rem); }
  .site-footer { justify-content: center; }
}
