:root {
  color-scheme: light;
  --ink: #20172b;
  --muted: #71697a;
  --purple: #21152f;
  --purple-soft: #352044;
  --green: #81bd41;
  --green-deep: #4e7f22;
  --paper: #f7f6f3;
  --white: #ffffff;
  --line: #ddd8e1;
  --shadow: 0 22px 55px rgba(33, 21, 47, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, select, textarea { font: inherit; }
button { color: inherit; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 10; padding: .75rem 1rem; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 2rem 1.35rem; color: var(--white); background: var(--purple); }
.brand { display: flex; align-items: center; gap: .85rem; padding: 0 .55rem 2.5rem; }
.brand-mark { display: grid; place-items: center; width: 2.65rem; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--green); font: 700 1.2rem Georgia, serif; }
.brand strong, .brand span { display: block; }
.brand strong { font: 600 1.25rem Georgia, serif; letter-spacing: .02em; }
.brand span { margin-top: .15rem; color: rgba(255,255,255,.62); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
nav { display: grid; gap: .35rem; }
.nav-link { display: flex; justify-content: space-between; align-items: center; min-height: 2.9rem; padding: .75rem .85rem; border-radius: .55rem; color: rgba(255,255,255,.72); text-decoration: none; font-size: .91rem; }
.nav-link:hover, .nav-link:focus-visible, .nav-link.active { color: var(--white); background: rgba(255,255,255,.09); outline: none; }
.nav-link.active { box-shadow: inset 3px 0 var(--green); }
.count { min-width: 1.4rem; padding: .1rem .4rem; border-radius: 1rem; text-align: center; background: rgba(255,255,255,.12); font-size: .72rem; }
.sidebar-note { margin-top: auto; display: flex; gap: .6rem; align-items: center; padding: .85rem; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.6); font-size: .78rem; }
.status-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 .22rem rgba(129,189,65,.15); }
main { min-width: 0; }
.topbar { height: 5rem; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: 0 clamp(1.25rem, 4vw, 4.5rem); border-bottom: 1px solid var(--line); background: rgba(247,246,243,.88); backdrop-filter: blur(12px); }
.topbar .eyebrow { margin-right: auto; }
.profile-button { width: 2.6rem; aspect-ratio: 1; border: 0; border-radius: 50%; color: var(--white); background: var(--purple); font-size: .72rem; letter-spacing: .08em; }
.menu-button { display: none; border: 1px solid var(--line); border-radius: .45rem; padding: .55rem .75rem; background: var(--white); }
.view { max-width: 1180px; margin: 0 auto; padding: clamp(3.2rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem); }
.welcome { max-width: 790px; }
.eyebrow { margin: 0 0 .85rem; color: var(--green-deep); font-size: .72rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0; max-width: 880px; font: 500 clamp(2.4rem, 5vw, 4.8rem)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h1 em { color: var(--purple-soft); font-style: italic; }
.welcome > p:last-child, .section-heading > p:last-child { max-width: 670px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 4rem; }
.action-card { min-height: 11rem; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 1.1rem; padding: 1.5rem; text-align: left; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); box-shadow: 0 8px 30px rgba(33,21,47,.035); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.action-card:hover, .action-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); outline: 2px solid transparent; }
.action-card.primary { color: var(--white); border-color: var(--purple); background: var(--purple); }
.card-number { color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.card-copy strong, .card-copy small { display: block; }
.card-copy strong { margin-bottom: .75rem; font: 500 1.35rem Georgia, serif; }
.card-copy small { max-width: 28rem; color: var(--muted); font-size: .87rem; line-height: 1.6; }
.primary .card-copy small { color: rgba(255,255,255,.65); }
.arrow { color: var(--green); font-size: 1.35rem; }
.guardrail { margin-top: 1.1rem; padding: 1.25rem 1.5rem; border: 1px solid rgba(78,127,34,.25); border-radius: .7rem; background: rgba(129,189,65,.07); }
.guardrail div { display: flex; align-items: center; gap: .7rem; }
.guardrail p { margin: .6rem 0 0 1.25rem; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.section-heading { margin-bottom: 2.8rem; }
.section-heading h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.request-form { max-width: 760px; display: grid; gap: .7rem; padding: clamp(1.25rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: .85rem; background: var(--white); box-shadow: var(--shadow); }
.request-form label { margin-top: .6rem; font-size: .82rem; font-weight: 750; }
.request-form select, .request-form textarea { width: 100%; padding: .9rem 1rem; border: 1px solid #cfc8d4; border-radius: .5rem; color: var(--ink); background: var(--white); }
.request-form textarea { resize: vertical; line-height: 1.55; }
.request-form select:focus, .request-form textarea:focus { outline: 3px solid rgba(129,189,65,.25); border-color: var(--green-deep); }
.form-footer { display: flex; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 1rem; }
.form-footer p { max-width: 410px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.button { flex: 0 0 auto; border: 0; border-radius: .45rem; padding: .85rem 1.15rem; color: var(--white); background: var(--purple); font-weight: 750; cursor: pointer; }
.button:hover, .button:focus-visible { background: var(--purple-soft); outline: 3px solid rgba(129,189,65,.35); }
.form-message { margin: .75rem 0 0; padding: .8rem 1rem; border-radius: .45rem; color: var(--green-deep); background: rgba(129,189,65,.1); font-size: .85rem; }
.empty-state { max-width: 760px; padding: 2rem; border: 1px dashed #c9c2cd; border-radius: .8rem; background: rgba(255,255,255,.5); }
.empty-state strong { font: 500 1.25rem Georgia, serif; }
.empty-state p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 5; width: min(290px, 86vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); }
  body.menu-open .sidebar { transform: translateX(0); }
  .menu-button { display: inline-flex; }
  .topbar { justify-content: space-between; }
  .topbar .eyebrow { display: none; }
  .action-grid { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .view { padding-top: 3.5rem; }
}

@media (max-width: 520px) {
  .action-card { min-height: 9.5rem; grid-template-columns: auto 1fr; }
  .action-card .arrow { display: none; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
