/* AccessibleWeb — homepage (examples/index.html)
   YIPL-tuned, minimal page. Loaded after styles.css. */

/* YIPL brand tokens */
:root {
  --yipl-ink: #181d25; /* primary black — ink navy */
  --yipl-cream: #f5f0e0; /* primary white — warm cream */
  --yipl-orange: #f26322; /* signature orange */
  --yipl-red: #db2e2a; /* gradient partner */
  --yipl-mist: #c1c9d7; /* gray50 */
  --yipl-note: #98a0ae; /* gray100 */
  --yipl-peach: #ffceb8; /* orange100 */
}

body {
  background: var(--yipl-cream);
}

a {
  color: var(--yipl-orange);
}
:focus-visible {
  outline-color: var(--yipl-orange);
}

/* nav — quiet */
.nav-wrap {
  padding: 18px 16px 6px;
}
.navbar {
  padding-left: 20px;
}
.logo {
  color: var(--yipl-ink);
}
.nav-link.is-active {
  background: rgba(242, 99, 34, 0.08);
  color: var(--yipl-orange);
}
.btn-primary {
  background: var(--yipl-ink);
}
.btn-primary:hover {
  background: #2a3140;
}

/* hero — one line, one action */
.hero {
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 72px) 0;
}
.hero-title {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.5px;
  color: var(--yipl-ink);
}
.hero-title em {
  color: var(--yipl-orange);
}
.hero-subtitle {
  font-size: 15.5px;
  margin: 12px auto 0;
  color: #4d5560;
}
.hero-ctas {
  margin-top: 24px;
}
.hero .cta-main {
  background: var(--yipl-orange);
  padding: 12px 22px;
  font-size: 14.5px;
  box-shadow: 0 8px 18px rgba(242, 99, 34, 0.25);
}
.hero .cta-main:hover {
  background: #d45217;
}
.hero .cta-ghost {
  padding: 11px 18px;
  font-size: 14.5px;
  border-color: rgba(24, 29, 37, 0.18);
}

/* snippet — compact */
.snippet-wrap {
  margin-top: 28px;
}
.code-snippet {
  padding: 11px 14px 11px 20px;
  background: var(--yipl-ink);
  border-color: #2a3140;
  box-shadow: 0 12px 26px rgba(24, 29, 37, 0.2);
}

/* content width */
.container {
  max-width: 980px;
}
.section {
  margin-top: 56px;
}

.section-kicker {
  color: var(--yipl-orange);
  letter-spacing: 0.12em;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.5px;
  color: var(--yipl-ink);
}
.section-sub {
  font-size: 15px;
  color: #4d5560;
}

/* tour — colourful YIPL cards */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.tcard {
  background: #fffdf8;
  border: 1px solid #e9e2d0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(24, 29, 37, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.tcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(24, 29, 37, 0.1);
}
.tcard-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--yipl-ink);
}
.tcard-header h3 {
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--yipl-cream);
  font-family: var(--sans);
  font-weight: 600;
}
.tcard-header .tcard-mark {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yipl-orange);
}
.trow {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px 12px;
  padding: 12px 18px;
}
.trow + .trow {
  border-top: 1px solid #eee9dc;
}
.trow i {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: start;
  align-self: start;
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yipl-orange);
  font-style: normal;
}
.trow b {
  display: block;
  grid-column: 2;
  font-size: 13.5px;
  color: var(--yipl-ink);
  font-weight: 600;
}
.trow span {
  display: block;
  grid-column: 2;
  font-size: 12.5px;
  color: #7b8494;
  margin-top: 2px;
  line-height: 1.55;
  text-align: left;
}
.tcard-tag {
  margin: 18px 18px 12px;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #98a0ae;
}

.tour-note {
  font-size: 13.5px;
  margin: 22px auto 0;
  color: #7b8494;
  background: #fff;
  border: 1px solid #e9e2d0;
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 640px;
}

/* demo playground */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.demo-grid > .demo-card:first-child {
  grid-column: 1 / -1;
}
.demo-card {
  background: #fffdf8;
  border: 1px solid #e9e2d0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(24, 29, 37, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-card h3 {
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yipl-ink);
}
.demo-card p {
  font-size: 12.5px;
  color: #7b8494;
  line-height: 1.55;
}
.demo-shot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.demo-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  border: 1px solid #e9e2d0;
}
.demo-swatches {
  display: flex;
  gap: 8px;
  align-items: center;
}
.demo-swatches span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(24, 29, 37, 0.12);
}
.demo-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #e9e2d0;
  border-top-color: var(--yipl-orange);
  animation: demo-spin 0.7s linear infinite;
}
@keyframes demo-spin {
  to {
    transform: rotate(360deg);
  }
}
.demo-audio {
  width: 100%;
}
.demo-links a {
  margin-right: 12px;
}

/* use-it / files */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 44px;
}
.box {
  padding: 22px 24px;
  border-radius: 16px;
}
.box h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
}
.box p {
  font-size: 13.5px;
  margin-top: 10px;
  color: #4d5560;
}

/* disclaimer — one quiet note */
.warning {
  margin-top: 44px;
  padding: 16px 20px;
  font-size: 13.5px;
  border: 1px dashed #d8cdb4;
  color: #5b4633;
  background: #fbf6ea;
}

/* files & footer — yipl accent */
.files a,
.footer .footer-links a {
  color: var(--yipl-orange);
}
.files a:hover,
.footer .footer-links a:hover {
  color: var(--yipl-ink);
}
.footer .wordmark {
  color: var(--yipl-ink);
}

@media (max-width: 720px) {
  .demo-grid,
  .tour-grid,
  .split {
    grid-template-columns: 1fr;
  }
}