/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #313131;
  line-height: 1.5;
}

/* Body */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f4f4f4;
  padding: 1rem;
}

/* Links */
a {
  color: #0051c3;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #ee730a;
  text-decoration: underline;
}

/* Form */
form {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #000;
  border-radius: 4px;
  font-size: 1rem;
}

input[type="submit"] {
  padding: 0.75rem 1.5rem;
  background-color: blue;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
  background-color: #45a049;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Headings & Text */
.h1 { font-size: 2rem; font-weight: 500; margin-bottom: 0.5rem; text-align: center; }
.h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5rem; text-align: center; }
.core-msg { font-size: 1rem; font-weight: 400; text-align: center; margin-bottom: 1rem; }

/* Spacing helpers */
.spacer { margin: 2rem 0; }
.spacer-top { margin-top: 4rem; }

/* Footer */
.footer {
  width: 100%;
  max-width: 60rem;
  padding: 1rem 1rem 0;
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: center;
}
.footer-inner {
  border-top: 1px solid #d9d9d9;
  padding-top: 1rem;
}

/* Responsive */
@media (max-width: 720px) {
  .h1 { font-size: 1.5rem; }
  .h2 { font-size: 1.25rem; }
  .core-msg { font-size: 0.9rem; }
  form { padding: 2rem; }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body { background-color: #222; color: #d9d9d9; }
  a { color: #fff; }
  a:hover { color: #ee730a; }
  form { background-color: #333; color: #d9d9d9; }
  input[type="text"],
  input[type="email"],
  textarea { background-color: #444; color: #fff; border: 1px solid #666; }
}
