/* Wordmark */
.sw-wordmark { display: inline-flex; align-items: center; gap: .4em; justify-content: center; flex-wrap: wrap; letter-spacing: -0.02em; }
.sw-wordmark__icon { display: inline-flex; width: 1em; height: 1em; color: var(--brand); }
.sw-wordmark__icon svg { width: 100%; height: 100%; }

/* Hero banner image: keep it short and cropped to the lit area */
.hero img, .hero picture img { width: 100%; max-height: 320px; object-fit: cover; object-position: center 40%; }

/* Name facts cards: same value size so labels line up */
.grid-4 .stat { display: grid; align-content: start; }
.grid-4 .stat__value { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.2; white-space: nowrap; }

/* Specimen sheet: lab notebook page */
.sw-specimen {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, color-mix(in srgb, var(--border) 70%, transparent) 27px, color-mix(in srgb, var(--border) 70%, transparent) 28px);
}
.sw-specimen::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 1.6rem;
  width: 1px; background: color-mix(in srgb, var(--brand) 45%, transparent);
}
.sw-specimen__head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.sw-specimen__tag { font-family: ui-monospace, monospace; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sw-specimen__forms { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.sw-form {
  min-width: 64px; padding: .4rem .75rem; font: inherit; font-size: .875rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.sw-form:hover { border-color: var(--brand); }
.sw-form.is-on { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.sw-form:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sw-specimen__display {
  font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight: 600; color: var(--ink);
  margin: 0 0 .25rem; word-break: break-word; letter-spacing: -0.01em;
}
.sw-specimen__note { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; min-height: 2.6em; }
.sw-specimen__readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 1rem; }
.sw-specimen__readout div { border-top: 2px solid var(--brand); padding-top: .35rem; }
.sw-specimen__readout dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sw-specimen__readout dd { margin: 0; font-size: 1.5rem; font-weight: 600; font-family: ui-monospace, monospace; color: var(--ink); }
.sw-specimen__syll { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.sw-specimen__syll span {
  font-family: ui-monospace, monospace; font-size: .85rem;
  border: 1px dashed var(--brand); border-radius: var(--radius);
  padding: .15rem .5rem; color: var(--ink); background: var(--surface);
}

/* Palette */
.sw-swatches { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.sw-swatches li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.sw-swatch { width: 2rem; height: 2rem; border-radius: var(--radius); border: 1px solid var(--border); flex: none; }
.sw-swatch--brand { background: var(--brand); }
.sw-swatch--ink { background: var(--ink); }
.sw-swatch--muted { background: var(--muted); }
.sw-swatch--rule { background: var(--border); }
.sw-swatch--paper { background: var(--surface); }

/* Wordmark cards */
.sw-mark {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
  padding: 1rem; border-radius: var(--radius); margin-bottom: .6rem;
  border: 1px solid var(--border);
}
.sw-mark__icon { display: inline-flex; width: 1.5rem; height: 1.5rem; color: var(--brand); }
.sw-mark__icon svg { width: 100%; height: 100%; }
.sw-mark--light { background: var(--surface); color: var(--ink); }
.sw-mark--dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.sw-mark--dark .sw-mark__icon { color: var(--surface); }

/* App icon */
.sw-appicon {
  width: 96px; height: 96px; border-radius: 22px;
  background: var(--brand); color: var(--surface);
  display: grid; place-items: center; margin: .5rem 0 1rem;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 18%, transparent);
}
.sw-appicon svg { width: 56px; height: 56px; }

@media (max-width: 480px) {
  .sw-specimen { padding-left: 2.1rem; }
  .sw-specimen::before { left: 1.2rem; }
  .sw-specimen__readout dd { font-size: 1.25rem; }
}