/* ==========================================================================
   Nose Shapes — "Profile Study" design system
   One stylesheet. No framework. Written for nose-shapes.com.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Ground: near-white tinted toward the brand hue (madder), never cream */
  --ground: oklch(0.977 0.006 25);
  --ground-2: oklch(0.951 0.010 25);
  --surface: oklch(1 0 0);

  /* Field: the gallery wall */
  --field: oklch(0.305 0.098 25);
  --field-2: oklch(0.252 0.080 25);
  --field-3: oklch(0.208 0.062 25);

  /* Ink on ground */
  --ink: oklch(0.235 0.030 25);
  --ink-2: oklch(0.435 0.026 25);
  --ink-3: oklch(0.520 0.024 25);
  --ink-4: oklch(0.615 0.028 25); /* large text only */

  /* Chalk on field */
  --chalk: oklch(0.968 0.012 40);
  --chalk-2: oklch(0.845 0.028 35);
  --chalk-3: oklch(0.775 0.034 32);

  /* Lapis: data, links, focus */
  --lapis: oklch(0.435 0.130 262);
  --lapis-hi: oklch(0.600 0.135 258);
  --lapis-wash: oklch(0.938 0.026 262);

  /* Amber: notices */
  --amber: oklch(0.520 0.115 68);
  --amber-wash: oklch(0.955 0.042 82);

  /* Lines */
  --line: oklch(0.888 0.012 25);
  --line-2: oklch(0.802 0.018 25);
  --line-field: oklch(0.400 0.062 25);

  /* Type */
  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --gutter: clamp(1.15rem, 0.6rem + 2.2vw, 2.5rem);
  --band: clamp(3.25rem, 2.2rem + 3.6vw, 5.5rem);
  --measure: 68ch;

  /* Motion */
  --out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --quick: 170ms var(--out);
  --calm: 380ms var(--out);

  /* Depth */
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Long URLs in the privacy policy would otherwise widen the page on small screens */
  overflow-wrap: break-word;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--field);
  color: var(--chalk);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.55rem + 4.2vw, 4.4rem);
}

h2 {
  font-size: clamp(1.95rem, 1.4rem + 2.3vw, 3rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.28rem, 1.16rem + 0.5vw, 1.55rem);
  line-height: 1.18;
}

h4 {
  font-size: 1.1rem;
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--lapis);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--quick);
}

a:hover {
  color: var(--ink);
}

strong,
b {
  font-weight: 600;
}

.lede {
  font-size: clamp(1.09rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}

.note {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - (var(--gutter) * 2), 74rem);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - (var(--gutter) * 2), 50rem);
}

.band {
  padding-block: var(--band);
}

.band--tight {
  padding-block: calc(var(--band) * 0.62);
}

main {
  flex: 1;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: var(--z-modal);
  background: var(--chalk);
  color: var(--field);
  padding: 0.6rem 1rem;
  border-radius: 2px;
  font-weight: 600;
  transition: top var(--quick);
}

.skip:focus {
  top: 0.75rem;
}

:where(a, button, input, summary, label.drop):focus-visible {
  outline: 2px solid var(--lapis-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.field :where(a, button, input, summary, label.drop):focus-visible {
  outline-color: var(--chalk);
}

/* Section heading block */
.head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
}

.head p {
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.15rem);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.field {
  background: var(--field);
  color: var(--chalk);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--field);
  color: var(--chalk);
  border-bottom: 1px solid color-mix(in oklch, var(--chalk) 12%, transparent);
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: 1rem 1.75rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--chalk);
  text-decoration: none;
  margin-right: auto;
}

/* Chalk tile with the brand N. Same mark as the favicon, inverted for the field. */
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 3px;
  background: var(--chalk);
  color: var(--field);
  display: grid;
  place-items: center;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__name {
  font-family: var(--display);
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  line-height: 1;
}

.brand__name span {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--chalk-3);
  display: block;
  margin-top: 0.28rem;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--chalk-2);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color var(--quick), border-color var(--quick);
}

.site-nav a:hover {
  color: var(--chalk);
  border-bottom-color: currentColor;
}

/* Disclosure trigger. Hidden on desktop, where the links sit inline. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  color: var(--chalk-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.15rem;
  transition: color var(--quick);
}

.nav-toggle:hover {
  color: var(--chalk);
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 1.05rem;
  height: 0.6rem;
  flex: none;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--quick), top var(--quick);
}

.nav-toggle__icon::before {
  top: 0;
}

.nav-toggle__icon::after {
  top: calc(100% - 1.5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: calc(50% - 0.75px);
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: calc(50% - 0.75px);
  transform: rotate(-45deg);
}

@media (max-width: 48rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: 0.6rem;
    border-top: 1px solid color-mix(in oklch, var(--chalk) 14%, transparent);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    font-size: 1rem;
  }

  .site-nav a {
    display: block;
    padding-block: 0.85rem;
    border-bottom: 1px solid color-mix(in oklch, var(--chalk) 10%, transparent);
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }

  .site-nav a:hover {
    border-bottom-color: color-mix(in oklch, var(--chalk) 10%, transparent);
  }
}

@media (max-width: 34rem) {
  .site-head__in {
    padding-block: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--quick), color var(--quick),
    border-color var(--quick), transform var(--quick);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* Solid madder on light ground */
.btn--primary {
  background: var(--field);
  color: var(--chalk);
}

.btn--primary:hover {
  background: var(--field-2);
  color: var(--chalk);
}

/* Chalk on the field: the unmissable action */
.btn--chalk {
  background: var(--chalk);
  color: var(--field);
}

.btn--chalk:hover {
  background: #fff;
  color: var(--field-2);
}

.btn--outline {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ground-2);
  color: var(--ink);
}

.field .btn--outline {
  border-color: color-mix(in oklch, var(--chalk) 34%, transparent);
  color: var(--chalk);
}

.field .btn--outline:hover {
  border-color: var(--chalk);
  background: color-mix(in oklch, var(--chalk) 10%, transparent);
  color: var(--chalk);
}

.btn[disabled] {
  background: var(--ground-2);
  color: var(--ink-3);
  border-color: var(--line);
  cursor: not-allowed;
}

.btn.is-waiting {
  background: transparent;
  color: var(--chalk-2);
  border-color: color-mix(in oklch, var(--chalk) 32%, transparent);
  pointer-events: none;
}

.btn--wide {
  width: 100%;
}

.btn--lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.06rem;
}

/* --------------------------------------------------------------------------
   7. Hero + the analyser
   -------------------------------------------------------------------------- */

.hero {
  background: var(--field);
  color: var(--chalk);
  padding-block: clamp(2.75rem, 1.6rem + 4.6vw, 5rem)
    clamp(3rem, 1.8rem + 5vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero__in {
  display: grid;
  gap: clamp(2.25rem, 1rem + 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (min-width: 60rem) {
  .hero__in {
    grid-template-columns: minmax(0, 1.02fr) minmax(24rem, 0.98fr);
    align-items: center;
  }
}

.hero h1 {
  color: var(--chalk);
}

.hero__lede {
  margin-top: 1.35rem;
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.24rem);
  line-height: 1.55;
  color: var(--chalk-2);
  max-width: 42ch;
}

.hero__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: 0.84rem;
  color: var(--chalk-3);
  list-style: none;
  padding: 0;
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__meta svg {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  opacity: 0.85;
}

/* --- The tray: the ivory panel the tool sits on --------------------------- */

.tray {
  background: var(--surface);
  color: var(--ink);
  border-radius: 3px;
  padding: clamp(1.25rem, 0.8rem + 1.8vw, 1.9rem);
  box-shadow: 0 1px 0 color-mix(in oklch, var(--field-3) 30%, transparent),
    0 18px 44px -20px color-mix(in oklch, var(--field-3) 62%, transparent);
}

.tray__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
}

/* Dropzone */
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  min-height: 11.5rem;
  padding: 1.5rem 1.25rem;
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  background: var(--ground);
  cursor: pointer;
  transition: border-color var(--quick), background var(--quick);
}

.drop:hover,
.drop.is-over {
  border-color: var(--field);
  background: var(--ground-2);
}

.drop.is-over {
  border-style: solid;
}

.drop__icon {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--field);
}

.drop__title {
  font-weight: 600;
  font-size: 1.02rem;
}

.drop__hint {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Chosen-file state */
.picked {
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ground);
}

.picked.is-on {
  display: flex;
}

.picked.is-on + .drop {
  display: none;
}

.picked__thumb {
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
  border-radius: 2px;
  background: var(--ground-2) center / cover no-repeat;
  border: 1px solid var(--line);
}

.picked__body {
  min-width: 0;
  flex: 1;
}

.picked__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.picked__swap {
  font-size: 0.85rem;
  color: var(--lapis);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  padding: 0;
}

.picked__swap:hover {
  color: var(--ink);
}

.tray__go {
  margin-top: 1rem;
}

.tray__fine {
  margin-top: 0.95rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}

.tray__fine a {
  color: inherit;
}

/* Notices */
.notice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 3px;
  background: var(--amber-wash);
  color: var(--amber);
  border: 1px solid color-mix(in oklch, var(--amber) 28%, transparent);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.notice svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  margin-top: 0.2em;
}

/* Spinner */
.spin {
  width: 1.05em;
  height: 1.05em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 620ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   8. The specimen case
   -------------------------------------------------------------------------- */

.case {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.plate {
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: background var(--quick);
}

.plate:hover {
  background: var(--ground);
}

.plate__fig {
  position: relative;
  background: var(--ground-2);
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background var(--quick);
}

.plate:hover .plate__fig {
  background: var(--lapis-wash);
}

.plate__fig img {
  height: 9rem;
  width: auto;
}

.plate__no {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.plate__body {
  padding: 1.15rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.plate h3 {
  font-size: 1.24rem;
}

.plate p {
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--ink-2);
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin-top: auto;
  padding-top: 0.4rem;
}

.tags li {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lapis);
  background: var(--lapis-wash);
  padding: 0.22rem 0.5rem;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   9. Method: the five measurements
   -------------------------------------------------------------------------- */

.method {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

@media (min-width: 48rem) {
  .step {
    grid-template-columns: 4.5rem minmax(0, 20rem) minmax(0, 1fr);
    gap: 0 2rem;
  }
}

.step__no {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.22rem;
}

.step p {
  grid-column: 2 / -1;
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 0.97rem;
  max-width: 56ch;
}

@media (min-width: 48rem) {
  .step p {
    grid-column: 3;
    margin-top: 0;
  }
}

.step__band {
  grid-column: 2 / -1;
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  font-size: 0.76rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 48rem) {
  .step__band {
    grid-column: 3;
    margin-top: 0.85rem;
  }
}

.step__band li {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.16rem 0.45rem;
}

/* --------------------------------------------------------------------------
   10. Value trio (why it matters)
   -------------------------------------------------------------------------- */

.trio {
  display: grid;
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.trio > div {
  border-top: 2px solid var(--field);
  padding-top: 1.1rem;
}

.trio h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.trio p {
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   11. Privacy band
   -------------------------------------------------------------------------- */

.pledge {
  background: var(--field-2);
  color: var(--chalk);
}

.pledge__in {
  display: grid;
  gap: 1.5rem clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

@media (min-width: 48rem) {
  .pledge__in {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  }
}

.pledge h2 {
  color: var(--chalk);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem);
}

.pledge p {
  color: var(--chalk-2);
  max-width: 60ch;
}

.pledge p + p {
  margin-top: 0.9rem;
}

.pledge a {
  color: var(--chalk);
}

/* Closing call to action */
.closer {
  text-align: center;
}

.closer h2 {
  color: var(--chalk);
}

.closer p {
  color: var(--chalk-2);
  margin: 1.1rem auto 2rem;
  max-width: 44ch;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
}

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.4;
  color: var(--ink);
  transition: color var(--quick);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--lapis);
}

.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 0.72rem;
  height: 0.72rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-0.16rem, -0.16rem);
  transition: transform var(--quick);
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.faq__body {
  padding-bottom: 1.35rem;
  color: var(--ink-2);
  max-width: 64ch;
  font-size: 0.99rem;
}

.faq__body p + p {
  margin-top: 0.8rem;
}

/* --------------------------------------------------------------------------
   13. Result: verdict + readout
   -------------------------------------------------------------------------- */

.verdict {
  background: var(--field);
  color: var(--chalk);
  padding-block: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
}

.verdict__in {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  align-items: center;
}

@media (min-width: 44rem) {
  .verdict__in {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.verdict__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--chalk-3);
}

.verdict h1 {
  color: var(--chalk);
  margin-top: 0.8rem;
  font-size: clamp(2.15rem, 1.4rem + 3.2vw, 3.7rem);
}

.verdict p {
  margin-top: 1.1rem;
  color: var(--chalk-2);
  max-width: 46ch;
  font-size: 1.03rem;
}

.verdict__pair {
  display: flex;
  gap: 0.85rem;
  align-items: flex-end;
}

.figure {
  text-align: center;
}

.figure__frame {
  width: 7.5rem;
  height: 10.5rem;
  border-radius: 3px;
  overflow: hidden;
  background: color-mix(in oklch, var(--chalk) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--chalk) 26%, transparent);
}

.figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__frame--fit img {
  object-fit: contain;
  padding: 0.5rem;
}

.figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--chalk-3);
}

@media (max-width: 30rem) {
  .figure__frame {
    width: 6rem;
    height: 8.5rem;
  }
}

/* Readout rows */
.readout {
  border-top: 1px solid var(--line);
}

.read {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 46rem) {
  .read {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 0 2.5rem;
    align-items: center;
  }
}

.read__name {
  font-weight: 600;
  font-size: 1.03rem;
}

.read__note {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-top: 0.2rem;
  max-width: 34ch;
}

.scale {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

.scale__seg {
  background: var(--surface);
  padding: 0.6rem 0.5rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-3);
  text-transform: capitalize;
  transition: background var(--quick), color var(--quick);
}

.scale__seg[data-on="true"] {
  background: var(--lapis);
  color: #fff;
  font-weight: 600;
}

.read__value {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   14. Analysing screen
   -------------------------------------------------------------------------- */

.analysing {
  background: var(--field);
  color: var(--chalk);
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}

.analysing__in {
  text-align: center;
}

.analysing h1 {
  color: var(--chalk);
  font-size: clamp(1.85rem, 1.4rem + 2vw, 2.75rem);
}

.analysing__sub {
  margin-top: 0.9rem;
  color: var(--chalk-3);
  font-size: 0.98rem;
}

.trace {
  width: min(11rem, 46vw);
  margin: clamp(1.75rem, 1rem + 3vw, 2.75rem) auto;
  color: var(--chalk);
}

.trace path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 4.6s var(--out) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 16rem;
  text-align: left;
  display: grid;
  gap: 0.6rem;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.93rem;
  color: var(--chalk-3);
  animation: tick 500ms var(--out) forwards;
  opacity: 0.35;
}

.ticks li::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: fill 380ms var(--out) forwards;
  animation-delay: inherit;
}

@keyframes fill {
  to {
    background: currentColor;
  }
}

.ticks li:nth-child(1) {
  animation-delay: 0.2s;
}
.ticks li:nth-child(2) {
  animation-delay: 1.2s;
}
.ticks li:nth-child(3) {
  animation-delay: 2.2s;
}
.ticks li:nth-child(4) {
  animation-delay: 3.2s;
}
.ticks li:nth-child(5) {
  animation-delay: 4.2s;
}

@keyframes tick {
  to {
    opacity: 1;
    color: var(--chalk);
  }
}

.analysing__go {
  margin-top: clamp(1.75rem, 1rem + 2.5vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   15. Tool directory
   -------------------------------------------------------------------------- */

.dir {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.dir__item {
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--quick);
}

.dir__item:hover {
  background: var(--ground);
  color: inherit;
}

.dir__item h3 {
  font-size: 1.15rem;
}

.dir__item p {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin: 0;
}

.dir__go {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--lapis);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dir__item:hover .dir__go {
  color: var(--field);
}

.dir__go svg {
  width: 0.85em;
  height: 0.85em;
  transition: transform var(--quick);
}

.dir__item:hover .dir__go svg {
  transform: translateX(3px);
}

/* Compact row of next steps under a result */
.next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.closer .next {
  justify-content: center;
}

/* Caveat under a data block */
.caveat {
  margin-top: 1.5rem;
  max-width: 60ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   16. Prose (legal, articles)
   -------------------------------------------------------------------------- */

.prose {
  max-width: var(--measure);
}

.prose h1 {
  font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem);
  margin-bottom: 1.75rem;
}

.prose h2 {
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem);
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
}

.prose h3,
.prose h4 {
  margin-top: 1.9rem;
  margin-bottom: 0.6rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.05rem;
  color: var(--ink-2);
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose li::marker {
  color: var(--ink-3);
}

.prose ul.index,
.prose ul.m-elements {
  list-style: none;
  padding-left: 0;
}

.prose ul.index li,
.prose ul.m-elements li {
  border-bottom: 1px solid var(--line);
  padding-block: 0.45rem;
  margin-bottom: 0;
}

.prose a {
  color: var(--lapis);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.site-foot {
  background: var(--field-3);
  color: var(--chalk-2);
  padding-block: 2.75rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.site-foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

.site-foot .brand {
  margin-right: auto;
}

.site-foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}

.site-foot a {
  color: var(--chalk-2);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--chalk);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-foot__copy {
  color: var(--chalk-3);
  font-size: 0.82rem;
  width: 100%;
  border-top: 1px solid color-mix(in oklch, var(--chalk) 12%, transparent);
  padding-top: 1.35rem;
}

/* --------------------------------------------------------------------------
   18. Cookie banner (django-cookiebanner)
   -------------------------------------------------------------------------- */

.cb {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: color-mix(in oklch, var(--field-3) 55%, transparent);
  padding: 1rem;
}

.cb.is-open {
  display: flex;
}

@media (min-width: 40rem) {
  .cb {
    align-items: center;
  }
}

.cb__panel {
  background: var(--surface);
  color: var(--ink);
  border-radius: 3px;
  width: min(100%, 34rem);
  max-height: 88dvh;
  overflow-y: auto;
  padding: clamp(1.25rem, 0.9rem + 1.4vw, 1.85rem);
  box-shadow: 0 24px 60px -20px color-mix(in oklch, var(--field-3) 70%, transparent);
}

.cb__panel h2 {
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}

.cb__panel p {
  font-size: 0.93rem;
  color: var(--ink-2);
}

.cb__group {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}

.cb__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cb__row input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--field);
  flex: none;
}

.cb__detail summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--lapis);
  margin-top: 0.5rem;
}

.cb__detail table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  color: var(--ink-3);
}

.cb__detail td {
  padding: 0.3rem 0.5rem 0.3rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cb__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.cb__actions .btn {
  flex: 1 1 10rem;
}

/* --------------------------------------------------------------------------
   19. Ad slots
   -------------------------------------------------------------------------- */

.slot {
  padding-block: 1.25rem;
  min-height: 1px;
}

.slot:empty {
  padding: 0;
}

/* --------------------------------------------------------------------------
   20. Entrance motion (enhances an already-visible default)
   -------------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.rise {
  animation: rise 620ms var(--out) both;
}

.rise-1 {
  animation-delay: 60ms;
}
.rise-2 {
  animation-delay: 140ms;
}
.rise-3 {
  animation-delay: 220ms;
}

/* --------------------------------------------------------------------------
   21. Reduced motion
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .trace path {
    stroke-dashoffset: 0;
    stroke-dasharray: none;
  }

  .ticks li {
    opacity: 1;
    color: var(--chalk);
  }

  .ticks li::before {
    background: currentColor;
  }
}

/* Print: legal pages get read and saved */
@media print {
  .site-head,
  .site-foot,
  .slot,
  .cb {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
