:root {
  color-scheme: dark;
  background: #170d2c;
  color: #eee9fb;
  font: 17px/1.6 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #ffd23f; }
a:focus-visible { outline: 2px solid #ffd23f; outline-offset: 4px; }
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid #3a2a5e;
}

.brand { color: inherit; font-weight: 700; text-decoration: none; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; margin-bottom: 16px; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.25; }
.intro { max-width: 70ch; color: #ccc0e0; }

.example {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-block: 28px;
}

.example h2:first-child { margin-top: 0; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
figcaption, footer { font-size: 0.88rem; color: #ccc0e0; }
figcaption { margin-top: 8px; }
ul { padding-inline-start: 24px; }
li + li { margin-top: 8px; }

.try {
  padding: 20px;
  background: #24163f;
  border: 1px solid #3a2a5e;
  border-radius: 12px;
}

.try h2 { margin-top: 0; }
.button {
  display: inline-block;
  background: #ffd23f;
  color: #170d2c;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

footer { margin-top: 32px; padding-block: 12px; border-top: 1px solid #3a2a5e; }

@media (max-width: 700px) {
  .example { grid-template-columns: 1fr; }
  figure { max-width: 380px; }
}
