:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #1f2937;
  --text-muted: #5b6472;
  --border: #e3e5e9;
  --accent: #2563eb;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-alt: #1b1e24;
    --text: #e8eaed;
    --text-muted: #9aa2ad;
    --border: #2b2f36;
    --accent: #5b8def;
    --accent-text: #0b0d10;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 0.25rem;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.corner-actions {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.5rem;
}

.btn-corner {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-corner:hover {
  opacity: 0.9;
  text-decoration: none;
}

@media (max-width: 480px) {
  .corner-actions {
    position: static;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.25rem;
  }
}

.contact {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.contact a {
  color: var(--text-muted);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.skills-grid h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.skills-grid p {
  margin: 0;
  color: var(--text-muted);
}

.card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.card:last-child {
  border-bottom: none;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.tech {
  margin: 0.25rem 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
}

.card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 0.3rem;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
