/* Basic reset for predictable spacing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Calm dark palette */
  --bg: #0f1115;
  --text: #e8eaf0;
  --muted: #a8adb9;
  --line: #2a2f3a;
  --link: #cfd7e8;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
}

.page {
  width: min(680px, 100%);
  text-align: center;
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Times New Roman",
    serif;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.subtitle {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.6vw, 1.05rem);
  letter-spacing: 0.02em;
}

.about {
  margin: 2.2rem auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.7rem 0;
}

.about p {
  margin: 0;
}

.status {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  margin-top: 1.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
}

.contact a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact a:hover,
.contact a:focus-visible {
  border-bottom-color: var(--link);
}

footer {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Slightly tighter spacing on small screens */
@media (max-width: 480px) {
  body {
    padding: 1.4rem 1.1rem;
  }

  .about {
    margin-top: 1.7rem;
    padding: 1.3rem 0;
  }
}
