:root {
  color-scheme: light;
  --demo-yellow: #f4c35f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  padding: 12px 16px;
  color: #fff;
  background: #111;
  border-radius: 8px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.demo-banner {
  position: relative;
  z-index: 1500;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 8px 20px;
  color: #251c0d;
  background: var(--demo-yellow);
  border-bottom: 1px solid rgba(37, 28, 13, 0.18);
  font-size: 0.8rem;
  text-align: center;
}

.demo-banner a {
  font-weight: 850;
  text-underline-offset: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.mobile-nav {
  position: relative;
  display: none;
}

.mobile-nav summary {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  cursor: pointer;
  list-style: none;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span,
.mobile-nav summary span::before,
.mobile-nav summary span::after {
  display: block;
  width: 19px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 3px;
}

.mobile-nav summary span {
  position: relative;
}

.mobile-nav summary span::before {
  position: absolute;
  top: -6px;
}

.mobile-nav summary span::after {
  position: absolute;
  top: 6px;
}

.mobile-nav[open] summary span {
  background: transparent;
}

.mobile-nav[open] summary span::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-nav[open] summary span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav > div {
  position: absolute;
  top: 58px;
  right: 0;
  z-index: 1000;
  display: grid;
  width: min(280px, calc(100vw - 32px));
  padding: 12px;
  gap: 4px;
  color: #171717;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.mobile-nav > div a {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.mobile-nav > div a:hover {
  background: #f1f1ef;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: #171717;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  color: #153b2e;
  background: #e3f2e8;
  border: 1px solid #bddac7;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 750;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--demo-yellow);
  outline-offset: 3px;
}

@media (max-width: 840px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-nav {
    display: block;
  }
}

@media (max-width: 600px) {
  .demo-banner {
    min-height: 48px;
    justify-content: space-between;
    padding: 8px 14px;
    gap: 10px;
    text-align: left;
  }

  .demo-detail {
    display: none;
  }

  .demo-banner a {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
