:root {
  --bg: #fffdf4;
  --bg-soft: #fff7da;
  --panel: rgba(255, 251, 236, 0.84);
  --panel-strong: rgba(255, 248, 225, 0.94);
  --text: #2f2618;
  --muted: #6d614c;
  --line: rgba(190, 165, 103, 0.22);
  --gold: #e8c768;
  --sky: #b79a48;
  --mint: #d8c48d;
  --shadow: 0 24px 70px rgba(146, 124, 67, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 236, 170, 0.5), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(248, 226, 161, 0.45), transparent 24%),
    linear-gradient(145deg, #fffdf4 0%, #fff8e7 38%, #fff3cf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(144, 120, 63, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 120, 63, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero,
.section,
.contact-card {
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 6px 0 28px;
}

.brand,
.topbar-links a,
.button,
.social-link,
.discord-card {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  border: none;
  appearance: none;
}

.brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.topbar-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.topbar-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.topbar-links a:hover,
.social-link:hover,
.discord-card:hover {
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel-inner,
.skill-panel,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: 10px;
  text-align: center;
}

.eyebrow,
.section-kicker,
.panel-kicker,
.panel-card-label,
.skill-tag,
.project-banner {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow,
.section-kicker,
.panel-kicker,
.panel-card-label {
  color: var(--gold);
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
}

h1,
h2 {
  font-family: inherit;
}

h1 {
  margin: 12px auto 0;
  font-size: clamp(2.35rem, 4.3vw, 3.6rem);
  max-width: 13ch;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-text,
.section-copy,
.skill-panel p,
.project-content p,
.panel-card-text {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 62ch;
  margin: 20px auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 3px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #f1db8a, #fff0b8);
  color: #3a2f1b;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 248, 225, 0.72);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.hero-stats article {
  padding: 18px;
  border-radius: 3px;
  border: 1px solid rgba(190, 165, 103, 0.22);
  background: rgba(255, 255, 255, 0.5);
}

.stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sky);
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-panel-inner {
  height: 100%;
  padding: 30px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 250, 234, 0.96), rgba(255, 244, 209, 0.96)),
    radial-gradient(circle at top right, rgba(241, 219, 138, 0.28), transparent 36%);
}

.capability-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}

.capability-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(190, 165, 103, 0.16);
}

.capability-list i {
  color: var(--mint);
  font-size: 1.1rem;
}

.panel-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid rgba(190, 165, 103, 0.2);
  background: linear-gradient(160deg, rgba(241, 219, 138, 0.26), rgba(255, 255, 255, 0.46));
}

.section {
  margin-top: 34px;
  padding: 34px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
  justify-items: center;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.skill-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-panel {
  padding: 24px;
  border-radius: 4px;
}

.skill-tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 2px;
  background: rgba(241, 219, 138, 0.22);
  color: var(--sky);
  font-size: 0.72rem;
}

.skill-panel h3 {
  margin-top: 18px;
  font-size: 1.2rem;
  font-weight: 700;
}

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

.project-card {
  overflow: hidden;
  border-radius: 6px;
}

.project-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-image-link,
.project-image-static {
  display: block;
  position: relative;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1);
  transition: transform 260ms ease;
}

.project-card:hover .project-image {
  transform: scale(1.04);
}

.project-image-link:focus-visible {
  outline: 2px solid rgba(190, 165, 103, 0.9);
  outline-offset: -2px;
}

.project-banner {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 0.7rem;
  color: #3a2f1b;
  background: linear-gradient(135deg, #efd77f, #fff1b5);
}

.project-content {
  padding: 22px;
  text-align: center;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.project-content p {
  margin: 14px 0 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.project-tags span {
  padding: 9px 12px;
  border-radius: 2px;
  font-size: 0.78rem;
  color: var(--sky);
  background: rgba(241, 219, 138, 0.16);
  border: 1px solid rgba(190, 165, 103, 0.18);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.project-link:hover {
  transform: translateY(-2px);
}

.project-link-primary {
  background: linear-gradient(135deg, #efd77f, #fff1b5);
  color: #3a2f1b;
}

.project-link-secondary {
  background: rgba(255, 255, 255, 0.45);
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: 6px;
  text-align: center;
}

.contact-actions {
  display: grid;
  gap: 14px;
  min-width: min(100%, 420px);
}

.discord-card,
.social-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}

.discord-card:hover,
.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 165, 103, 0.5);
  background: rgba(255, 250, 234, 0.9);
}

.button:focus-visible,
.discord-card:focus-visible,
.social-link:focus-visible,
.topbar-links a:focus-visible,
.brand:focus-visible {
  outline: 2px solid rgba(190, 165, 103, 0.9);
  outline-offset: 3px;
}

.discord-card i,
.social-link i {
  font-size: 1.1rem;
  color: var(--gold);
}

.discord-card span,
.social-link span {
  display: grid;
}

.discord-card small {
  color: var(--muted);
}

.discord-card.is-copied {
  border-color: rgba(190, 165, 103, 0.55);
  background: rgba(241, 219, 138, 0.18);
}

.social-links {
  display: grid;
  gap: 12px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .skill-panels,
  .projects-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .topbar,
  .topbar-links,
  .hero-actions,
  .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy,
  .hero-panel-inner,
  .section,
  .contact-card {
    padding: 24px;
    border-radius: 4px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-image-wrap {
    height: 190px;
  }
}
