@font-face {
  font-family: 'Manrope';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/manrope-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/quicksand-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/nunito-sans-latin-wght-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --background: #f4f1ea;
  --paper: #fefbfa;
  --text: #211815;
  --text-secondary: #524440;
  --divider: #e4dcd9;
  --brand-ink: #4A4F5C;
  --brand-orange: #D98B4F;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #181513;
    --paper: #211d1a;
    --text: #f0ebe4;
    --text-secondary: #bdb3aa;
    --divider: #3a332e;
    --brand-ink: #c9cdd6;
  }
}

html[lang="da"] [lang="en"]:not(.language-switch),
html[lang="en"] [lang="da"]:not(.language-switch) {
  display: none;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: flex-end;
  padding: 16px;
}

.language-switch {
  font: 600 0.9375rem 'Quicksand', system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
}

.language-switch:hover {
  border-color: var(--brand-orange);
}

.language-switch:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.mark {
  width: 96px;
  height: 96px;
}

.mark .ink {
  stroke: var(--brand-ink);
}

.mark .accent {
  stroke: var(--brand-orange);
}

.wordmark {
  margin: 12px 0 32px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--brand-ink);
}

.wordmark span {
  color: var(--brand-orange);
}

h1 {
  margin: 0 0 16px;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

a {
  color: var(--text);
  text-decoration-color: var(--brand-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

footer {
  padding: 16px;
  border-top: 1px solid var(--divider);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 1.875rem;
  }

  h1 {
    font-size: 1.375rem;
  }
}
