:root {
  color-scheme: light;
  --ink: #102a2b;
  --muted: #5e7270;
  --paper: #f8f7f2;
  --white: #fff;
  --mint: #c9f36b;
  --line: #d9dfda;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
button { font: inherit; }
main { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.example-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.example-header a { color: var(--muted); font-size: .78rem; font-weight: 800; }
.example-header p, .catalogue-heading p { margin: 30px 0 8px; color: #497310; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h1 { max-width: 650px; margin: 0; font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -.06em; line-height: .98; }
.status { padding: 8px 12px; border-radius: 999px; color: #81590b; background: #fff5d9; font-size: .74rem; font-weight: 900; }
.status[data-status="connected"] { color: #35620a; background: #eff9da; }
.catalogue { margin-top: 52px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 24px 70px rgba(16, 42, 43, .09); }
.catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }
.catalogue-heading p { margin-top: 0; }
.catalogue-heading h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.03em; }
.catalogue-heading > span { color: var(--muted); font-size: .76rem; }
.items { display: grid; gap: 10px; padding: 18px; }
.items article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; border-radius: 14px; background: var(--paper); }
.items h3 { margin: 0; font-size: .95rem; }
.items p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 36px; height: 36px; border: 0; border-radius: 10px; color: var(--white); background: var(--ink); cursor: pointer; font-weight: 900; }
.stepper button:hover { color: var(--ink); background: var(--mint); }
.stepper output { min-width: 24px; text-align: center; font-weight: 900; }
.phase { min-height: 48px; margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
aside { margin-top: 18px; padding: 20px 22px; border-radius: 16px; color: #bcd0ce; background: var(--ink); }
aside p { max-width: 700px; margin: 5px 0 0; font-size: .85rem; }
:focus-visible { outline: 3px solid #78a730; outline-offset: 3px; }

@media (max-width: 620px) {
  main { padding-top: 28px; }
  .example-header, .catalogue-heading, .items article { align-items: stretch; flex-direction: column; }
  .status { align-self: flex-start; }
  .stepper { justify-content: flex-end; }
}
