/* ---- Design tokens: all colors and fonts live in one place ---- */
:root {
  --background: #f4f2ed;   /* warm paper-like background */
  --text: #1c1b19;         /* almost black, softer than pure black */
  --muted: #8a857c;        /* light gray for secondary text */
  --line: #c9c4b8;         /* color of the thin divider line */
}

/* ---- Reset: remove default margins and use a predictable box model ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Page base ---- */
body {
  min-height: 100vh;
  background-color: var(--background);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif; /* serif fonts feel like a magazine */

  /* Flexbox in column direction: content in the middle, footer at the bottom */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 40px 24px;
  text-align: center;
}

/* ---- Main content block ---- */
.page {
  /* flex: 1 lets this block grow and push the footer down */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Small uppercase label above the title */
.label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;   /* wide letter spacing looks minimal and elegant */
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Magazine name */
.title {
  /* clamp(min, preferred, max): the font size grows with the screen width */
  font-size: clamp(2.75rem, 12vw, 6rem);
  font-weight: 400;        /* light weight keeps the design calm */
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Thin line between the title and the message */
.divider {
  display: block;
  width: 56px;
  height: 1px;
  background-color: var(--line);
  margin: 32px 0;
}

/* The "coming soon" message */
.message {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ---- Footer ---- */
.footer {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  margin-top: 48px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent; /* invisible border, so nothing jumps on hover */
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ---- Entrance animation ----
   Elements start invisible and slightly lower, then fade up.
   The .is-visible class is added by JavaScript after the page loads. */
.label,
.title,
.divider,
.message,
.footer {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: turn the animation off for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .label,
  .title,
  .divider,
  .message,
  .footer {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
