/* VoiceOver testing checklist */

/* ==========================================================
   Custom properties
   ========================================================== */

:root {
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-mono: Consolas, ui-monospace, Menlo, monospace;
  --heading: #c03c0c;
  --ink: #25282b;
  --muted: #515960;
  --link: #075b83;
  --surface: #fff;
  --background: #f5f5f3;
  --line: #dcdedc;
  --accent-light: #fff3ed;
  --radius: 1rem;
}


/* ==========================================================
   Base
   ========================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}


/* ==========================================================
   Page layout
   ========================================================== */

.page {
  width: min(100% - 2.5rem, 55em);
  margin-inline: auto;
  padding-block: 2.5rem 5rem;
}

.intopia-home-link {
  display: inline-block;
}

.intopia-logo {
  display: block;
  width: auto;
  max-width: 140px;
  max-height: 4.5rem;
  object-fit: contain;
}

.header-link {
  margin: 1.25rem 0 0;
}

.footer-link {
  margin: 2.5rem 0 0;
}

.arrow {
  display: inline-block;
  margin-right: .2rem;
}


/* ==========================================================
   Typography
   ========================================================== */

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: -.035em;
  margin: 1rem 0 2.5rem;
  color: var(--heading);
}

h2,
h3 {
  color: var(--heading);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -.025em;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.12rem;
  letter-spacing: -.01em;
  margin: 0 0 .75rem;
}

p {
  margin: 0 0 1rem;
}


/* ==========================================================
   Links
   ========================================================== */

a {
  color: var(--link);
  text-underline-offset: .18em;
  text-decoration-thickness: .08em;
}

a:hover {
  text-decoration-thickness: .14em;
}

a:focus-visible {
  outline: 3px solid var(--heading);
  outline-offset: 4px;
  border-radius: 3px;
}


/* ==========================================================
   Panels (contents and checklist sections)
   ========================================================== */

.contents,
.checklist-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3.5vw, 2.5rem);
  box-shadow: 0 3px 14px rgb(32 30 26 / .035);
  margin-block: 0 2.5rem;
}


/* ==========================================================
   Table of contents
   ========================================================== */

.contents h2 {
  margin-bottom: 1.1rem;
}

.contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  row-gap: .2rem;
}

.contents li {
  margin: 0;
  min-width: 0;
}

.contents a {
  display: block;
  padding: .35rem 0;
  font-weight: 560;
}


/* ==========================================================
   Checklist sections
   ========================================================== */

.checklist-section {
  scroll-margin-top: 1.5rem;
}

.checklist-section > p {
  max-width: 75ch;
  color: var(--muted);
}

.checklist-section > p:last-of-type {
  margin-bottom: 1.7rem;
}


/* ==========================================================
   Individual tests
   ========================================================== */

.test {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 1.2rem;
  align-items: start;
  padding: 1.65rem 0;
  border-top: 1px solid var(--line);
}

.test > :not(.test-number) {
  grid-column: 2;
  min-width: 0;
}

.test-number {
  grid-column: 1;
  grid-row: 1 / span 10;
  display: inline-grid;
  place-items: center;
  width: 3.15rem;
  aspect-ratio: 1;
  border: 2px solid #c8cccf;
  border-radius: 50%;
  background: transparent;
  color: #555;
  font: 750 1.25rem/1 var(--font-heading);
  font-variant-numeric: tabular-nums;
}

.test h3 {
  margin-top: .15rem;
  font-size: 1.2rem;
}

.test p {
  max-width: 76ch;
}

.test p:has(+ ul) {
  font-weight: 650;
  margin-bottom: .2rem;
}

.test ul {
  margin: .1rem 0 0;
  padding: 0;
  list-style: none;
}

.test li + li {
  margin-top: .18rem;
}

.test-qualifier {
  display: inline-block;
  margin-left: .25rem;
  font-size: .73em;
  line-height: 1.5;
  font-weight: 650;
  color: var(--surface);
  background: var(--heading);
  padding: .12rem .45rem;
  border-radius: .35rem;
  vertical-align: .08em;
}

/* ==========================================================
   Keyboard keys
   ========================================================== */

kbd {
  display: inline-block;
  padding: .12em .42em;
  margin: 0 .08em;
  border: 1px solid #aab0b5;
  border-radius: .38rem;
  background: #fefefe;
  color: #000;
  font: 400 .9em/1.45 var(--font-mono);
  white-space: nowrap;
  vertical-align: baseline;
}


/* ==========================================================
   Utilities
   ========================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------
External
----------------------*/

a.external::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: .2em;
  vertical-align: -.125em;
  background-color: currentColor;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 5H8.2C7.08 5 6.52 5 6.09 5.22C5.72 5.41 5.41 5.72 5.22 6.09C5 6.52 5 7.08 5 8.2V15.8C5 16.92 5 17.48 5.22 17.91C5.41 18.28 5.72 18.59 6.09 18.78C6.52 19 7.08 19 8.2 19H15.8C16.92 19 17.48 19 17.91 18.78C18.28 18.59 18.59 18.28 18.78 17.91C19 17.48 19 16.92 19 15.8V14M20 9V4M20 4H15M20 4L13 11'/></svg>") no-repeat center / contain;
  forced-color-adjust: none;
}

/* ==========================================================
   Small screens
   ========================================================== */

@media (max-width: 660px) {
  .page {
    width: min(100% - 1.25rem, 55em);
    padding-block: 1.5rem 3rem;
  }

  .contents ul {
    grid-template-columns: 1fr;
  }

  .test {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: .8rem;
  }

  .test-number {
    width: 2.4rem;
    font-size: 1.05rem;
  }

  .test h3 {
    font-size: 1.08rem;
  }
}


/* ==========================================================
   Reduced motion
   ========================================================== */

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

