@font-face {
  font-family: "Spelltale";
  src: url("/assets/font/speltalefont-demo-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --ink: #1b1a18;
  --muted: #67635c;
  --line: #dcd6c9;
  --line-strong: #c9c2b3;
  --accent: #2d6646;
  --accent-hover: #234f36;
  --accent-ink: #f8f6f0;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --display: "Spelltale", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 3.5rem;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

nav[aria-label="Primary"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

nav[aria-label="Primary"] a {
  font-size: 0.95rem;
  text-decoration: none;
}

nav[aria-label="Primary"] a:not(.button):hover,
nav[aria-label="Primary"] a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-small {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

.text-link {
  padding-bottom: 0.1em;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  border-color: var(--ink);
}

/* Home */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 10vw, 8rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.tagline {
  max-width: 34ch;
  margin: 1.75rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.key-art {
  margin: 0;
}

.key-art img {
  width: 100%;
}

.key-art figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.socials {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.socials h2 {
  margin: 0 0 0.9rem;
  font-size: 1.5rem;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-list li {
  border-top: 1px solid var(--line);
}

.social-list a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0;
  text-decoration: none;
}

.social-list a:hover .social-label {
  text-decoration: underline;
}

.social-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.social-handle {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

/* Press kit */

.page-header {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-header h1 em {
  font-style: italic;
}

.lede {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.download-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.section {
  padding-block: clamp(2.75rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

.fact-sheet {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 0.65fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-row dt {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-row dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.fact-row dd a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.fact-row dd a:hover {
  border-color: var(--ink);
}

.prose {
  max-width: 70ch;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.3rem;
}

.prose ul {
  margin: 0;
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.gallery figure {
  margin: 0;
}

.gallery > figure > a {
  display: block;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.gallery figcaption a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
}

.contact-box p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
}

.contact-box .actions {
  margin: 0;
}

.contact-links {
  margin-top: 0.75rem !important;
  font-size: 0.9rem;
}

.contact-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

/* Footer */

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .key-art {
    max-width: 34rem;
  }

  .social-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    align-items: flex-start;
  }

  nav[aria-label="Primary"] {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .social-list {
    grid-template-columns: 1fr;
  }

  .fact-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
