*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:     #141414;
  --card:   #1a1a1a;
  --text:   #ddd;
  --muted:  #777;
  --dim:    #444;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;
}

::selection {
  background: #333;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── layout ── */

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── header ── */

header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.back {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

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

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 2px solid #2a2a2a;
}

h1 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #eee;
}

.tagline {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
}

/* ── sections ── */

section {
  background: var(--card);
  border: 1px solid #222;
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
}

section h2 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.875rem;
}

.bio p {
  font-size: 0.9375rem;
  color: #bbb;
  line-height: 1.75;
}

.interests ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.interests li {
  font-size: 0.9rem;
  color: #bbb;
  padding-left: 1rem;
  position: relative;
}

.interests li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--dim);
}

.now p {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.7;
}

.map-link {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #444;
  padding-bottom: 0.1em;
  transition: color 0.15s, border-color 0.15s;
}

.map-link:hover {
  color: #fff;
  border-bottom-color: var(--text);
}

/* ── contact form ── */

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#contact-form input,
#contact-form textarea {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 0.6rem 0.85rem;
  outline: none;
  resize: none;
  transition: border-color 0.15s;
  width: 100%;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #3a3a3a;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #444;
}

#contact-form textarea {
  min-height: 110px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.char-count {
  font-size: 0.7rem;
  color: #3a3a3a;
}

#contact-form button {
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8rem;
  padding: 0.45rem 1.1rem;
  transition: background 0.15s, border-color 0.15s;
}

#contact-form button:hover {
  background: #2a2a2a;
  border-color: #444;
}

#contact-form button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.8rem;
  min-height: 1em;
}

.form-status.success { color: #5cc679; }
.form-status.error   { color: #c46060; }
.form-status.info    { color: #c8a84a; line-height: 1.6; }

.challenge-bar-wrap {
  margin-top: 0.6rem;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  height: 6px;
}
.challenge-bar-fill {
  height: 100%;
  width: 0%;
  background: #4a9eff;
  transition: width 0.15s linear;
}
.challenge-label {
  display: block;
  font-size: 0.72rem;
  color: #666;
  margin-top: 0.3rem;
}

/* ── footer / links ── */

footer {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

footer a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── disclaimer ── */

.disclaimer {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  font-size: 0.7rem;
  color: var(--muted);
  background: #181818;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  max-width: 220px;
  line-height: 1.5;
  transition: color 0.2s;
}

.disclaimer:hover {
  color: var(--text);
}

/* ── mobile ── */

@media (max-width: 480px) {
  main {
    padding: 2.5rem 1.25rem 4rem;
  }

  .disclaimer {
    display: none;
  }
}

.nav-monogram:hover {
  opacity: 0.7;
}
