/* Christown Empire */

:root {
  --bg: #000000;
  --text: #f5f5f5;
  --text-muted: rgba(245, 245, 245, 0.78);
  --text-quiet: rgba(245, 245, 245, 0.68);
  --rule: rgba(245, 245, 245, 0.22);
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: clamp(2rem, 5vw, 3rem);
  --space-3xl: clamp(2.75rem, 7vw, 4.25rem);

  --measure: 38ch;
  --column: min(36rem, 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.viewport {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: max(var(--space-l), env(safe-area-inset-left))
    max(var(--space-l), env(safe-area-inset-right));
  padding-block: max(var(--space-xl), env(safe-area-inset-top))
    max(var(--space-xl), env(safe-area-inset-bottom));
}

.page {
  flex: 1 1 auto;
  width: var(--column);
  max-width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-2xl);
}

.site-header {
  display: grid;
  gap: var(--space-m);
  padding-top: clamp(var(--space-xs), 2vh, var(--space-l));
}

.location {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-quiet);
}

.wordmark {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.125rem, 5.5vw + 1rem, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  align-self: center;
  width: 100%;
  padding-top: var(--space-xl);
}

.content::before {
  content: "";
  width: min(5rem, 28vw);
  height: 1px;
  background-color: var(--rule);
  margin-bottom: var(--space-xs);
}

.lead {
  margin: 0;
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.125rem);
  line-height: 1.52;
  font-weight: 400;
  color: var(--text);
  max-width: var(--measure);
}

.note {
  margin: 0;
  margin-top: var(--space-xs);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-muted);
  max-width: var(--measure);
}

.site-footer {
  width: 100%;
  margin-top: var(--space-l);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(245, 245, 245, 0.08);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.copyright {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-quiet);
}

.credit {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-quiet);
}

.credit__heart {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-inline: 0.28em 0.22em;
  vertical-align: -0.18em;
  color: var(--text-muted);
}

.credit__link {
  margin-inline-start: 0.15em;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.credit__link:hover {
  color: var(--text-muted);
  text-decoration: none;
}

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

@media (min-width: 640px) {
  .viewport {
    padding-inline: max(2rem, env(safe-area-inset-left)) max(2rem, env(safe-area-inset-right));
  }

  :root {
    --column: min(38rem, 100%);
  }

  .page {
    gap: var(--space-3xl);
  }

  .content {
    gap: var(--space-l);
    padding-top: var(--space-2xl);
  }

  .note {
    margin-top: var(--space-s);
  }
}

@media (min-width: 900px) {
  .wordmark {
    max-width: none;
  }
}

@media (min-width: 1100px) {
  :root {
    --column: min(40rem, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
