/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Unica+One&family=Open+Sans:wght@400;600&display=swap");

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --bg-color: #111111;
  --text-color: #ffffff;
  --muted-color: #777777;
  --font-heading: "Unica One", sans-serif;
  --font-body: "Trebuchet MS", sans-serif;
  --font-ui: "Open Sans", sans-serif;
}

/* ─── Reset / base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  min-height: 100vh;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ─── Layout ────────────────────────────────────────────────── */
main {
  flex: 1;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Home page: centred layout */
main.home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  max-width: none;
}

/* ─── Typography ────────────────────────────────────────────── */
h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
}

/* ─── Shared components ─────────────────────────────────────── */

/* Muted subtitle line */
.subtitle {
  color: var(--muted-color);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 4rem;
  line-height: 1.7;
}

/* Back link */
.back {
  display: inline-block;
  margin-top: 5rem;
  color: var(--muted-color);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
  font-family: var(--font-ui);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (min-width: 600px) {
  h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  footer {
    text-align: right;
    padding: 1rem 2rem;
  }
}
