/* Dogebox for Dummies · simple path UI, Comic Neue + Material Symbols */

:root {
  --bg: #0f1419;
  --bg-elevated: #1a222d;
  --surface: #232d3a;
  --text: #e8eef5;
  --text-muted: #9aa8b8;
  --accent: #c2a633;
  --accent-soft: rgba(194, 166, 51, 0.18);
  --doge: #f0b429;
  --link: #8ecfff;
  --link-hover: #b8e6ff;
  --link-bg: rgba(142, 207, 255, 0.12);
  --link-bg-hover: rgba(240, 180, 41, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: "Comic Neue", "Comic Sans MS", cursive, sans-serif;
  --focus: 3px solid var(--doge);
  --focus-offset: 2px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f1e8;
    --bg-elevated: #fffdf8;
    --surface: #ffffff;
    --text: #1a1f26;
    --text-muted: #5c6570;
    --accent: #b8941e;
    --accent-soft: rgba(184, 148, 30, 0.15);
    --doge: #c9a227;
    --link: #0d5f94;
    --link-hover: #084a73;
    --link-bg: rgba(13, 95, 148, 0.1);
    --link-bg-hover: rgba(201, 162, 39, 0.18);
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 32px rgba(26, 31, 38, 0.12);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--accent-soft), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(194, 166, 51, 0.08), transparent);
}

#bg-network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  opacity: 0.55;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

/* In-content links: thin underline, no extra padding or faux borders */
.step-content a,
.resource-list a,
.soft-box a,
.extra-help a {
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(142, 207, 255, 0.32);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

@media (prefers-color-scheme: light) {
  .step-content a,
  .resource-list a,
  .soft-box a,
  .extra-help a {
    text-decoration-color: rgba(13, 95, 148, 0.28);
  }
}

.step-content a:hover,
.resource-list a:hover,
.soft-box a:hover,
.extra-help a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--doge);
}

.step-content a:focus-visible,
.resource-list a:focus-visible,
.soft-box a:focus-visible,
.extra-help a:focus-visible {
  outline: 2px solid var(--doge);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--doge);
  color: #111;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), var(--focus);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  font-size: 1.25em;
  line-height: 1;
}

/* Icons: gentle lift / tilt when their control is hovered or keyboard-focused */
.chip-link .material-symbols-outlined,
.btn .material-symbols-outlined,
.choice-card .choice-icon,
.resource-block-title .material-symbols-outlined,
.panel-title-icon {
  display: inline-block;
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
  .chip-link:hover .material-symbols-outlined,
  .chip-link:focus-visible .material-symbols-outlined {
    transform: translateY(-3px) scale(1.08);
  }

  .btn:hover:not(:disabled) .material-symbols-outlined,
  .btn:focus-visible:not(:disabled) .material-symbols-outlined {
    transform: translateY(-2px) scale(1.07);
  }

  .choice-card:hover .choice-icon,
  .choice-card:focus-visible .choice-icon {
    transform: translateY(-4px) scale(1.07);
  }

  .resource-block:hover .resource-block-title .material-symbols-outlined {
    transform: rotate(-5deg) scale(1.06);
  }

  .panel-title:hover .panel-title-icon {
    transform: scale(1.08) translateY(-2px);
  }

  .brand-logo-link:hover .brand-logo {
    transform: scale(1.06) rotate(-3deg);
  }

  .footer-foundation:hover .footer-foundation-logo {
    transform: scale(1.05) translateY(-2px);
  }

  /* Slight “press” on mouse down (releases on mouse up) */
  .chip-link:active .material-symbols-outlined {
    transform: translateY(0) scale(0.96);
    transition-duration: 0.08s;
  }

  .btn:active:not(:disabled) .material-symbols-outlined {
    transform: translateY(1px) scale(0.94);
    transition-duration: 0.08s;
  }

  .choice-card:active .choice-icon {
    transform: translateY(0) scale(0.94);
    transition-duration: 0.08s;
  }

  .footer-foundation:active .footer-foundation-logo {
    transform: scale(0.98);
    transition-duration: 0.08s;
  }
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  outline-offset: 3px;
}

.brand-logo-link:focus-visible {
  outline: 2px solid var(--doge);
  outline-offset: 2px;
}

.brand-logo {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  display: block;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-weight: 400;
  color: var(--text-muted);
}

.brand-tagline {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
}

.chip-link:hover {
  border-color: var(--doge);
  background: var(--accent-soft);
  color: var(--text);
}

.chip-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--focus-offset) var(--bg), var(--focus);
}

#main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
}

@keyframes wizard-start-here {
  0%,
  100% {
    box-shadow: var(--shadow);
    border-color: var(--border);
  }

  50% {
    box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--doge) 45%, transparent),
      0 0 32px color-mix(in srgb, var(--doge) 22%, transparent);
    border-color: color-mix(in srgb, var(--doge) 55%, var(--border));
  }
}

.wizard-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

/* Draw the eye to the guide first (runs a few times, then stops) */
.wizard-panel--start-here {
  animation: wizard-start-here 2.6s ease-in-out 3;
}

.progress-track {
  height: 5px;
  background: var(--surface);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--doge));
  transition: width 0.35s ease;
}

.panel-top {
  padding: 0.85rem 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.crumb {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.step-content {
  flex: 1;
  padding: 1.25rem 1.25rem 1rem;
}

@media (min-width: 600px) {
  .step-content {
    padding: 1.5rem 1.75rem 1.25rem;
  }
}

.panel-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.panel-title-icon {
  color: var(--doge);
  flex-shrink: 0;
  margin-top: 0.1em;
}

.big-copy {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.08rem;
}

.big-copy:last-of-type {
  margin-bottom: 1.25rem;
}

.hint {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.resource-block {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.resource-block-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.resource-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-list li {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  line-height: 1.45;
}

.resource-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.resource-desc {
  color: var(--text-muted);
  font-weight: 400;
}

.extra-help {
  margin: 1.15rem 0 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.extra-help summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.extra-help summary::-webkit-details-marker {
  display: none;
}

.extra-help summary::marker {
  content: none;
}

.extra-help summary::after {
  content: "";
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  flex-shrink: 0;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.22s ease, border-color 0.2s ease;
}

.extra-help summary:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.extra-help summary:hover::after {
  border-color: var(--doge);
}

.extra-help[open] summary {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.extra-help[open] summary::after {
  transform: rotate(225deg) translateY(2px);
}

.extra-help summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--doge);
}

.extra-help p {
  margin: 0;
  padding: 0.9rem 1rem 1.05rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  .extra-help summary::after {
    transition: none;
  }
}

.choice-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

@media (min-width: 520px) {
  .choice-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.choice-grid-home {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .choice-grid-home {
    grid-template-columns: repeat(3, 1fr);
  }
}

.choice-grid-pup {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .choice-grid-pup {
    grid-template-columns: 1fr 1fr;
  }
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.12s;
  min-height: 5.5rem;
}

.choice-card:hover {
  border-color: var(--doge);
  background: var(--accent-soft);
}

.choice-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--focus-offset) var(--bg-elevated), var(--focus);
}

.choice-card:active {
  transform: scale(0.99);
}

.choice-icon {
  font-size: 2rem !important;
  color: var(--doge);
}

.choice-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.choice-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.gentle-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gentle;
}

.gentle-steps li {
  counter-increment: gentle;
  position: relative;
  padding: 0.85rem 0 0.85rem 3.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.gentle-steps li:last-child {
  border-bottom: none;
}

.gentle-steps li::before {
  content: counter(gentle);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--doge);
  color: #111;
  font-weight: 700;
  font-size: 1rem;
}

.gentle-steps li strong {
  color: var(--text);
}

.foot-note {
  margin: 1.25rem 0 0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px dashed var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.soft-box {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.soft-box p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--surface);
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.2s, filter 0.2s;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--focus-offset) var(--bg-elevated), var(--focus);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--doge);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  padding-inline: 0.75rem;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg);
}

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--border);

}

.footer-message {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  text-align: left;
}

.footer-foundation {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.footer-foundation:hover {
  background: var(--link-bg);
}

.footer-foundation:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px rgba(240, 180, 41, 0.55);
}

.footer-foundation:active {
  transform: scale(0.98);
}

.footer-foundation-logo {
  display: block;
  height: clamp(2rem, 5vw, 2.65rem);
  width: auto;
  max-width: min(100%, 220px);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  .footer-foundation-logo {
    filter: invert(1) brightness(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .progress-bar {
    transition: none;
  }

  .wizard-panel--start-here {
    animation: none !important;
  }

  #bg-network {
    display: none;
  }
}
