/* ----------------------------------------
   Skarveo — base styles
   Dark-themed, minimal, mobile-first.
---------------------------------------- */

:root {
  --bg: #0b0c0f;
  --bg-elevated: #16181d;
  --border: #262a33;
  --text: #f2f3f5;
  --text-muted: #9aa0ab;
  --accent: #6ee7b7;
  --accent-muted: #2f4a3f;
  --radius: 14px;
  --max-width: 960px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
}

.hero-nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.hero-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-nav a:hover {
  color: var(--text);
}

/* Projects */
.projects {
  padding: 4rem 0;
}

.projects h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 2rem;
  color: var(--text);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.app-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  border-color: #3a3f4a;
  transform: translateY(-2px);
}

.app-card__badge {
  align-self: flex-start;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.app-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.app-card__description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.app-card__cta {
  margin-top: 1rem;
  display: inline-block;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.app-card__cta--disabled {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* About */
.about {
  padding: 0 0 4rem;
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.about h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.about p {
  margin: 0 0 1rem;
  max-width: 65ch;
  color: var(--text-muted);
}

.about p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.contact h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.contact > p {
  margin: 0 0 2rem;
  max-width: 65ch;
  color: var(--text-muted);
}

.contact > p a {
  color: var(--accent);
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-form__submit:hover {
  opacity: 0.85;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

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

/* Light mode support for users without dark preference forced */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-elevated: #f6f7f9;
    --border: #e4e6ea;
    --text: #14161a;
    --text-muted: #5c6270;
    --accent: #0f9d63;
    --accent-muted: #d9f3e6;
  }
}
