:root {
  --ink: #1d1a14;
  --paper: #f7f2e8;
  --amber: #ff8a3d;
  --teal: #0b7c79;
  --mint: #b7f3d2;
  --shadow: 0 20px 60px rgba(18, 28, 21, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 138, 61, 0.26), transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(11, 124, 121, 0.19), transparent 45%),
    linear-gradient(160deg, #fffef9 0%, #f5efe1 100%);
  min-height: 100vh;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.hero {
  padding: 68px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--teal);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-copy {
  font-size: 1.06rem;
  max-width: 60ch;
}

.hero-card {
  background: linear-gradient(165deg, #181512, #2d261f);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

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

.stats-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}

.stats-grid strong {
  font-size: 1.4rem;
  display: block;
}

.section {
  padding: 22px 0;
}

.section-head {
  margin-bottom: 14px;
}

.cards-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.profile-card .avatar,
.avatar-xl {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.09);
}

.avatar-xl {
  width: 110px;
  height: 110px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}

.pill {
  display: inline-flex;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mint);
}

.media-card img,
.media-card video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
  max-height: 240px;
  object-fit: cover;
}

.muted {
  color: #63584d;
}

.accent-btn,
.ghost-btn,
button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.accent-btn {
  background: var(--amber);
  color: #2a1300;
}

.ghost-btn {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.accent-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-main {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.auth-card {
  width: min(640px, 92%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.hidden {
  display: none;
}

.dashboard {
  padding: 26px 0 40px;
  display: grid;
  gap: 18px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.list-item {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px;
  background: #fff;
}

.profile-page {
  padding: 26px 0 40px;
}

.profile-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.error-box {
  background: #ffe5e1;
  color: #7a1d12;
  border-radius: 10px;
  padding: 10px;
}

.error-section {
  margin: 36px auto;
  max-width: 600px;
}

.site-footer {
  padding: 22px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  color: #625649;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.6s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .cards-grid,
  .dashboard-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .profile-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrap {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}
