:root {
  --ink: #17130e;
  --muted: #635a4e;
  --paper: #fffaf0;
  --nav: #17130e;
  --nav-soft: #d8cdb9;
  --teal: #7a2e20;
  --teal-dark: #3b1711;
  --line: rgba(52, 42, 28, 0.22);
  --warning: #fff4d9;
}

html,
body {
  background: #f7f0df;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 0%, rgba(122, 46, 32, 0.1), transparent 28rem),
    #f7f0df;
}

.sidebar {
  color: #fffaf0;
  background: #17130e;
  box-shadow: 10px 0 28px rgba(23, 19, 14, 0.1);
}

.button.primary {
  background: var(--teal);
}

.brand-mark {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  color: transparent;
  background: #fffaf0;
  border-color: rgba(255, 250, 240, 0.58);
  box-shadow: inset 0 0 0 1px rgba(59, 23, 17, 0.12);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand p,
.nav-label,
.sidebar-note span {
  color: var(--nav-soft);
}

.nav-item {
  color: #f7f0df;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 250, 240, 0.13);
}

.content {
  background: rgba(255, 250, 240, 0.38);
}

.eyebrow,
.text-link {
  color: var(--teal-dark);
}

.button.primary:hover,
.completion-card .button.primary {
  background: var(--teal-dark);
}

.button.secondary,
.summary-grid article,
.info-panel,
.photo-card,
.modal-card {
  border-color: var(--line);
  background: var(--paper);
}

.code-card,
.completion-card {
  background: #17130e;
}

.code-head {
  color: #d8cdb9;
}

.warning {
  border-left-color: #b17a1d;
  background: var(--warning);
}

.checklist li::before {
  background: var(--teal);
}

.photo-placeholder {
  color: #3f372d;
  background:
    linear-gradient(135deg, rgba(122, 46, 32, 0.13), rgba(23, 19, 14, 0.05)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(122, 46, 32, 0.04) 18px 36px);
}

.completion-card > span {
  color: #e8b4a4;
}

.completion-card p {
  color: #d8cdb9;
}

button:focus-visible,
a:focus-visible {
  outline-color: #9c3d2a;
}

.photo-placeholder::after {
  border-color: rgba(122, 46, 32, 0.42);
}

a.download-row:hover {
  border-color: var(--teal);
}

.photo-preview img {
  filter: grayscale(1) sepia(0.12) contrast(0.96);
}

.hero-actions + div {
  border-color: #d6a49a !important;
  background: #fff4ef !important;
  color: #3b1711 !important;
}

.hero-actions + div strong {
  color: #7a2e20 !important;
}

.hero-actions + div span[style] {
  background: #7a2e20 !important;
  color: #fffaf0 !important;
}

.powershell-starter {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(270px, 0.88fr);
  gap: 24px;
  margin: 28px 0 24px;
  padding: 24px;
  border: 1px solid #d6a49a;
  border-radius: 10px;
  background: #fffaf0;
}

.powershell-starter-kicker {
  margin: 0 0 8px;
  color: #7a2e20;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.powershell-starter h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.powershell-starter-copy > p:not(.powershell-starter-kicker),
.powershell-starter li {
  color: #3f372d;
  line-height: 1.8;
}

.powershell-starter ol {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-left: 22px;
}

.powershell-starter code {
  padding: 2px 5px;
  border-radius: 4px;
  color: #3b1711;
  background: #f2e5d6;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.powershell-starter-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #7a2e20;
  background: #fff4ef;
  font-weight: 700;
}

.powershell-window {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #162640;
  border-radius: 8px;
  background: #0d315e;
  box-shadow: 0 12px 24px rgba(23, 19, 14, 0.16);
}

.powershell-window figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #17212b;
  background: #f5f6f8;
  font-size: 13px;
  font-weight: 800;
}

.powershell-window figcaption span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  color: #fff;
  background: #315a91;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.powershell-window pre {
  min-height: 190px;
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: #f5f8ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.powershell-window p {
  margin: 0;
  padding: 9px 12px;
  color: #dce8ff;
  background: #0a2549;
  font-size: 13px;
  font-weight: 700;
}

.powershell-cursor {
  color: #fff;
  animation: powershell-blink 1s step-end infinite;
}

@keyframes powershell-blink {
  50% { opacity: 0; }
}

@media (max-width: 980px) {
  .content {
    background: rgba(255, 250, 240, 0.5);
  }

  .powershell-starter {
    grid-template-columns: 1fr;
  }
}
