:root {
  --paper: #f4efe9;
  --paper-strong: #eee2d4;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --ink: #181410;
  --muted: #544d46;
  --soft: #776d65;
  --line: rgba(26, 21, 18, 0.12);
  --accent: #b7653a;
  --accent-strong: #9b592c;
  --accent-2: #2f5d54;
  --shadow: rgba(26, 21, 18, 0.08);
}

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  background: linear-gradient(180deg, #f7f2eb 0%, #f0e8df 100%);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
}

body:before {
  display: none;
}

button,
a {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

.site-shell {
  background: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(24, 20, 16, 0.08);
  background: rgba(247, 241, 234, 0.9);
  backdrop-filter: blur(10px);
}

.brand {
  background: none;
  color: rgba(24, 20, 16, 0.96);
  letter-spacing: -0.08em;
  text-shadow: none;
  font-weight: 900;
}

.nav-link {
  color: var(--muted);
  font-weight: 700;
}

.nav-link:hover {
  color: var(--ink);
}

.button {
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 800;
}

.button-primary {
  background: linear-gradient(135deg, #c7774d 0%, #b9643d 100%);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(160, 95, 55, 0.18);
  color: #fffaf4;
}

.button-secondary,
.button-ghost {
  background: var(--panel-strong);
  color: var(--ink);
  border-color: var(--line);
}

.hero-section {
  min-height: auto;
  padding-top: 3.5rem;
}

.hero-grid {
  width: min(100%, 1180px);
  gap: 2.5rem;
  align-items: end;
}

.hero-panel {
  max-width: 44rem;
}

.hero-title {
  background: none;
  color: rgba(24, 20, 16, 0.9);
  letter-spacing: -0.06em;
  font-size: clamp(2.6rem, 4.8vw, 4.5rem);
  line-height: 0.82;
  font-weight: 800;
  text-shadow: none;
  transform: rotate(-1.6deg);
  filter: none;
  font-family: "Arial Black", Inter, sans-serif;
}

.hero-copy {
  max-width: 39rem;
  color: rgba(27, 23, 19, 0.72);
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  line-height: 1.5;
  font-weight: 500;
}

.hero-copy span {
  color: #b86544;
  font-weight: 800;
}

.hero-side {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(24, 20, 16, 0.12);
  border-radius: 0.9rem;
  box-shadow: 0 8px 22px rgba(24, 20, 16, 0.05), 5px 6px 0 rgba(138, 117, 101, 0.05);
  transform: rotate(-0.35deg);
  padding: 1.2rem 1.2rem 1rem;
}

.hero-side .eyebrow {
  display: none;
}

.status-heading {
  color: var(--ink);
  letter-spacing: -0.05em;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 0.98;
  margin-top: 0.2rem;
}

.status-copy {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.status-copy a {
  color: var(--accent-2);
  font-weight: 800;
}

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading p,
.contact-panel p.eyebrow {
  color: var(--soft);
  letter-spacing: 0.16em;
  text-transform: lowercase;
  font-weight: 700;
  font-size: 0.8rem;
}

.section-heading h2,
.contact-panel h2 {
  color: var(--ink);
  letter-spacing: -0.05em;
  font-weight: 900;
}

.glass-panel,
.project-card,
.contact-panel,
.skill-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
}

.skill-card {
  position: relative;
  border-radius: 1rem;
  min-height: 13rem;
  overflow: hidden;
  padding: 1.5rem 1.35rem 1.25rem;
  background: rgba(255,255,255,0.64);
}

.skill-card:before {
  content: "";
  display: block;
  width: 2.8rem;
  height: 0.24rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  margin-bottom: 1rem;
}

.skill-card:hover,
.project-card:hover {
  border-color: rgba(26, 21, 18, 0.18);
  box-shadow: 0 18px 28px rgba(26, 21, 18, 0.04);
  transform: translateY(-2px);
}

.skill-card h3,
.project-card h3 {
  color: var(--ink);
  letter-spacing: -0.04em;
}

.skill-card p,
.project-body p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.skills-grid,
.project-grid {
  gap: 1.2rem;
}

.project-card {
  border-radius: 1.15rem;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
}

.project-card--featured {
  border-top: 3px solid var(--accent-2);
}

.project-image {
  min-height: 12rem;
  background: linear-gradient(135deg, rgba(213, 202, 192, 0.9), rgba(249, 245, 240, 0.8));
  border-bottom: 1px solid var(--line);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.tech-list span {
  color: var(--ink);
  background: rgba(239, 232, 224, 0.9);
  border: 1px solid rgba(26, 21, 18, 0.08);
  border-radius: 999px;
  font-weight: 700;
}

.project-link,
.project-footer-link,
.site-footer a,
.bottom-notice a {
  color: var(--accent-2);
  font-weight: 800;
}

.project-link:hover,
.project-footer-link:hover,
.site-footer a:hover,
.bottom-notice a:hover {
  color: var(--accent);
}

.contact-panel {
  background: linear-gradient(180deg, #24211d 0%, #191612 100%);
  border-color: rgba(255,255,255,0.04);
  border-radius: 1.25rem;
  box-shadow: 0 22px 42px rgba(26, 21, 18, 0.18);
  padding: 2rem 1.5rem;
}

.contact-panel h2,
.contact-panel p,
.contact-panel a {
  color: rgba(255,255,255,0.94);
}

.contact-panel p:not(.eyebrow) {
  color: rgba(255,255,255,0.76);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--soft);
  background: transparent;
}

.bottom-notice {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255,255,255,0.55);
  color: var(--muted);
}

@media (min-width: 768px) {
  .hero-section {
    text-align: left;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
    gap: 2.4rem;
  }

  .hero-panel {
    margin: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .section-heading {
    text-align: left;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: 1.25fr 0.9fr 0.9fr;
  }

  .project-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    gap: 0.8rem;
  }

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}
