
* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #0B0C0E;
  color: #EDEEF0;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, p {
  margin: 0;
}

/* Keeps content centered and not too wide */
.c {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Button ---------- */

.btn {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
}

.btn-p {
  background: #F2D74E;
  color: #1A1600;
}

.btn-p:hover {
  background: #F7E27A;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  height: 64px;
  background: #0B0C0E;
  border-bottom: 1px solid #1A1B1F;
}

.nav .c {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.links {
  display: flex;
  gap: 28px;
  margin-left: 40px;
  font-size: 14px;
  color: #8A8F98;
}

.nav-r {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.signin {
  font-size: 14px;
  color: #8A8F98;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 96px;
  text-align: center;
}

h1 {
  max-width: 800px;
  margin: 0 auto;
  font-size: 72px;
  line-height: 1.05;
}

.sub {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: #8A8F98;
}

/* ---------- Contact form ---------- */

.form {
  max-width: 480px;
  margin: 40px auto 0;
  text-align: left;
}

.form label {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: #8A8F98;
}

.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  color: #EDEEF0;
  background: #121317;
  border: 1px solid #25272C;
  border-radius: 8px;
}

.form textarea {
  height: 140px;
}

.form small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #5A5F68;
}

/* Red border once a field has been filled in wrong */
.form input:user-invalid,
.form select:user-invalid,
.form textarea:user-invalid {
  border-color: #F87171;
}

.form button {
  margin-top: 24px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  border: 0;
  cursor: pointer;
}

.sub a {
  color: #F2D74E;
  text-decoration: underline;
}

/* ---------- Footer ---------- */

footer {
  margin-top: auto;
  padding: 24px 0;
}

footer p {
  font-size: 13px;
  color: #5A5F68;
}

/* ---------- Hover effects ---------- */

.links a:hover,
.signin:hover {
  color: #EDEEF0;
}

.sub a:hover {
  color: #F7E27A;
}

.links a:hover,
.signin:hover,
.btn:hover {
  transform: scale(1.05);
}

/* ---------- Small screens ---------- */

@media (max-width: 800px) {
  .links, .signin { display: none; }
  h1 { font-size: 40px; }
}
