:root {
  --bg-white: #ffffff;
  --bg-card: #f2f2f3;
  --bg-card-hover: #eae9ec;
  --text-dark: #141214;
  --text-body: #322f33;
  --text-muted: #767178;
  --border-rule: #e2e2e5;
  --accent: #e21c34;
  --accent-deep: #500b28;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.65;
}

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

.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   Top Band Header
   ========================================= */
.site-header {
  position: relative;
  background: radial-gradient(circle, #e21c34 0%, #500b28 100%);
  color: #ffffff;
  padding: 76px 0 80px;
  text-align: center;
  overflow: hidden;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-name {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0em;
  line-height: 1.5;
  color: #ffffff;
}

.hero-name::after {
  content: "";
  display: block;
  width: min(320px, 75vw);
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
}

.header-copy {
  max-width: 520px;
}

.header-bio {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

/* =========================================
   Middle White Section (Skills & Stack)
   ========================================= */
.page-body {
  background: var(--bg-white);
  padding: 72px 0 48px;
}

.skills-section {
  text-align: center;
  margin-bottom: 43px;
}

.skills-section h2 {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.skills-list {
  max-width: 760px;
  margin: 0 auto;
}

.skills-line {
  margin: 0 0 6px;
  line-height: 1.85;
  color: var(--text-body);
}

.skills-line:last-child {
  margin-bottom: 0;
}

.skill-item {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
}

.skill-sep {
  color: #b5b1b7;
  margin: 0 5px;
  user-select: none;
}

/* =========================================
   Three Horizontal Project Cards
   ========================================= */
.projects-section {
  margin-bottom: 58px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 22px 24px 24px;
  text-align: left;
  min-height: 136px;
  transition: background-color 0.2s ease;
}

.project-card:hover {
  background: var(--bg-card-hover);
}

.project-head {
  margin-bottom: 8px;
}

.project-title {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.project-domain {
  display: none;
}

.project-card:hover .project-title {
  color: var(--accent);
}

.project-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-body);
}

/* =========================================
   Minimal Footer
   ========================================= */
.site-footer {
  text-align: center;
}

.footer-rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(20, 18, 20, 0) 0%, #d4d3d8 50%, rgba(20, 18, 20, 0) 100%);
  margin-bottom: 55px;
}

.skills-section + .footer-rule {
  margin-bottom: 55px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-body);
}

.contact-slot {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.contact-trigger {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: 0;
  padding: 4px 11px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-trigger:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.revealed-link {
  color: var(--text-dark);
  border-bottom: 1px dashed var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.revealed-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.copy-mini {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: 0;
  padding: 4px 11px;
  color: var(--text-body);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.copy-mini:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.footer-copy {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-dark);
}

.footer-note {
  margin: 0 auto;
  max-width: 560px;
  font-size: 11px;
  color: var(--text-muted);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 820px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 56px 0 60px;
  }

  .page-body {
    padding: 52px 0 36px;
  }

  .skills-section {
    margin-bottom: 42px;
  }

  .projects-section {
    margin-bottom: 48px;
  }
}
