@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/EBGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/EBGaramond-Italic.ttf") format("truetype");
  font-style: italic;
}

@font-face {
  font-family: "Tangerine";
  src: url("assets/fonts/Tangerine-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans.ttf") format("truetype");
}

:root {
  --paper: #f8f6ef;
  --page: #fffef9;
  --ink: #1f2124;
  --muted: #6f6a5f;
  --border: #cdc7bc;
  --accent: #29675c;
  --accent-dark: #173d37;
  --mark: #f7de74;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.hero {
  height: 74svh;
  max-height: 780px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(248, 246, 239, 0.96), rgba(248, 246, 239, 0.72) 45%, rgba(248, 246, 239, 0.16)),
    url("assets/scriptorium.webp") center 42% / cover;
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 clamp(80px, 12svh, 140px);
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
  line-height: 1;
}

h1 {
  max-width: 8ch;
  font-family: "Tangerine", cursive;
  font-size: clamp(6.5rem, 17vw, 15rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.lede {
  max-width: 560px;
  margin: 16px 0 28px;
  color: #35312b;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.actions,
.download-grid,
.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.download,
.notes a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: #fffef9;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.button {
  padding: 0 20px;
  border-radius: 6px;
}

.button.ghost {
  background: rgba(255, 254, 249, 0.76);
  color: var(--accent-dark);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.quote-band,
.downloads,
.split,
.notes {
  padding: 56px 0;
}

.quote-band {
  border-bottom: 1px solid var(--border);
}

.downloads {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 32px;
  align-items: end;
}

.download-grid {
  justify-content: flex-end;
}

.download {
  width: 190px;
  height: 86px;
  flex-direction: column;
  gap: 4px;
  border-radius: 8px;
  background: var(--page);
  color: var(--ink);
}

.download:hover {
  border-color: var(--accent);
  background: #f2f7f3;
}

.download span {
  font-size: 1.05rem;
}

.download small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: 44px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.split img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
}

blockquote {
  margin: 0;
  text-align: center;
}

blockquote p {
  max-width: 760px;
  margin: 0;
  margin-inline: auto;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-style: italic;
  line-height: 1.32;
}

blockquote footer {
  margin-top: 14px;
  color: var(--muted);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.95rem;
}

.features {
  margin: 18px 0 0;
  padding-left: 1.2em;
}

.features li {
  margin: 6px 0;
}

.notes {
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.95rem;
}

.notes p {
  margin: 0;
}

.notes a {
  padding: 0 16px;
  border-radius: 6px;
  background: transparent;
  color: var(--accent-dark);
}

@media (max-width: 760px) {
  body {
    font-size: 1.12rem;
  }

  .hero {
    height: 82svh;
    max-height: 720px;
    background:
      linear-gradient(180deg, rgba(248, 246, 239, 0.98), rgba(248, 246, 239, 0.68) 58%, rgba(248, 246, 239, 0.18)),
      url("assets/scriptorium.webp") center 42% / cover;
  }

  .hero-copy {
    padding-bottom: 48px;
  }

  .downloads,
  .split {
    grid-template-columns: 1fr;
  }

  .download-grid {
    justify-content: stretch;
  }

  .download {
    width: 100%;
  }
}
