:root {
  --bg: #f7f1e8;
  --surface: rgba(255, 252, 246, 0.86);
  --olive: #6d744c;
  --olive-deep: #4f5736;
  --sage: #a8ad87;
  --peach: #d39a7b;
  --peach-soft: #efcfbd;
  --taupe: #7d7167;
  --ink: #342f29;
  --line: rgba(109, 116, 76, 0.14);
  --shadow: 0 26px 60px rgba(79, 87, 54, 0.14);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shell: min(1120px, calc(100vw - 32px));
  --heading: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Trebuchet MS", "Segoe UI", sans-serif;
  --script: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 207, 189, 0.44), transparent 32%),
    radial-gradient(circle at 82% 16%, rgba(168, 173, 135, 0.26), transparent 22%),
    linear-gradient(180deg, #fcfaf5 0%, var(--bg) 52%, #f2eadf 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

code {
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(109, 116, 76, 0.08);
  color: var(--olive-deep);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.page {
  padding: 28px 0 52px;
}

.topbar,
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 82px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-logo.is-large {
  width: min(420px, 82%);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  color: var(--olive-deep);
  font-family: var(--heading);
  font-size: 1.26rem;
}

.brand-copy span {
  color: var(--taupe);
  font-size: 0.94rem;
}

.brand-copy em {
  color: var(--peach);
  font-family: var(--script);
  font-size: 1.04rem;
  font-style: normal;
}

.panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 34%),
    var(--surface);
  box-shadow: var(--shadow);
}

.admin-link,
.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.admin-link:hover,
.button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.admin-link,
.ghost-button {
  border: 1px solid rgba(109, 116, 76, 0.2);
  background: rgba(255, 255, 255, 0.58);
  color: var(--olive-deep);
}

.button {
  border: 0;
  background: linear-gradient(135deg, var(--olive), var(--olive-deep));
  color: #fffef8;
  box-shadow: 0 12px 24px rgba(79, 87, 54, 0.2);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
  align-items: stretch;
  padding: 12px 0 30px;
}

.hero.hero-minimal .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero.hero-minimal .hero-copy p:last-child {
  margin: 0;
}

.hero-copy,
.feature-card,
.login-card,
.dashboard-card,
.dashboard-stat {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--taupe);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--peach), rgba(211, 154, 123, 0));
}

.hero-copy h1,
.login-card h2,
.dashboard-card h2,
.dashboard-stat h2 {
  margin: 0 0 16px;
  color: var(--olive-deep);
  font-family: var(--heading);
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
}

.hero-copy p,
.feature-card p,
.login-card p,
.dashboard-card p,
.dashboard-stat p,
.status-list li,
.notice,
.success,
.footer-note {
  color: var(--taupe);
  line-height: 1.66;
}

.status-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.status-list li {
  position: relative;
  padding-left: 28px;
}

.status-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--peach-soft), var(--olive));
}

.hero-showcase {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 34px;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 28px 38px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(239, 207, 189, 0.24), rgba(168, 173, 135, 0.18));
}

.hero-glow {
  position: absolute;
  inset: 72px 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 239, 226, 0.92) 0, rgba(247, 239, 226, 0) 66%);
}

.logo-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(100%, 470px);
  padding: 30px 20px 22px;
  border-radius: 38px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(109, 116, 76, 0.08);
  box-shadow: 0 18px 36px rgba(79, 87, 54, 0.1);
}

.logo-stage-copy {
  margin-top: 8px;
  text-align: center;
}

.logo-stage-copy strong {
  display: block;
  color: var(--olive-deep);
  font-family: var(--heading);
  font-size: 1.14rem;
}

.logo-stage-copy span {
  display: block;
  margin-top: 3px;
  color: var(--taupe);
  font-size: 0.94rem;
}

.floating-card,
.info-pill {
  position: absolute;
  z-index: 3;
  border-radius: 24px;
  border: 1px solid rgba(109, 116, 76, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(79, 87, 54, 0.12);
}

.floating-card {
  max-width: 230px;
  padding: 18px;
}

.floating-card.top {
  top: 18px;
  right: 18px;
}

.floating-card.bottom {
  left: 18px;
  bottom: 18px;
}

.info-pill {
  right: 22px;
  bottom: 126px;
  padding: 16px 18px;
}

.hero-card-title {
  display: block;
  margin-bottom: 8px;
  color: var(--olive-deep);
  font-family: var(--heading);
  font-size: 1.18rem;
}

.info-pill strong {
  color: var(--peach);
  font-family: var(--script);
  font-size: 1.14rem;
}

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

.feature-card h3 {
  margin: 10px 0 10px;
  color: var(--olive-deep);
  font-family: var(--heading);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(211, 154, 123, 0.12);
  color: var(--olive-deep);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-wrap,
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 22px;
  margin-top: 26px;
}

.login-wrap.login-single {
  grid-template-columns: minmax(0, 720px);
  justify-content: start;
}

.dashboard-grid {
  grid-template-columns: 0.92fr 1.08fr;
}

.dashboard-side,
.dashboard-main {
  display: grid;
  gap: 20px;
}

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

.field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field label {
  color: var(--olive-deep);
  font-weight: 600;
}

.field input {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(109, 116, 76, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.notice,
.success {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(109, 116, 76, 0.14);
}

.notice {
  background: rgba(255, 238, 232, 0.7);
  color: #77564a;
}

.success {
  background: rgba(225, 238, 215, 0.8);
  color: #48603a;
}

.footer-note {
  padding: 28px 0 0;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero,
  .login-wrap,
  .dashboard-grid,
  .section-grid,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 500px;
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 16px;
  }

  .topbar,
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .feature-card,
  .login-card,
  .dashboard-card,
  .dashboard-stat {
    padding: 22px;
  }

  .brand-logo {
    width: 64px;
  }

  .brand-logo.is-large {
    width: min(320px, 90%);
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero-showcase {
    min-height: 420px;
    padding: 22px;
  }

  .floating-card,
  .info-pill {
    position: static;
    max-width: none;
    margin-top: 14px;
  }
}
