/* "glasgow-rose": a child theme on the Fluid base v2, after the Glasgow
   Style. Parchment ground, plum ink, rose and moss; Federo drawn tall and
   narrow for the display (squeezed across, so the letters stand like the
   lettering on a high-backed chair), Jost for text. Ornament is all CSS:
   long double rules, small 3 x 3 square lattices with a rose centre, and a
   stylised rose dot (an SVG mask, so it takes any colour). Cards are framed
   prints: a paper mat, a plum edge, an inner keyline, a rose corner and a
   hard moss shadow. Dark mode is a deep plum ground with parchment text and
   rose accents; it follows the OS or <html data-theme>.
   Fonts: themes/fonts/glasgow-rose.css. Link after the base: fluid.min.css,
   then this file. Theme-private tokens are prefixed --gr-. */
@layer reset, tokens, base, layouts, components, themes, utilities;

@layer themes {

  /* ---------- Knobs ---------- */
  :root {
    --font-heading: "Federo", "Josefin Sans", "Avenir Next Condensed", "Arial Narrow", sans-serif;
    --font-display: var(--font-heading);
    --font-body: "Jost Variable", "Jost", Futura, "Century Gothic", "Avenir Next", "Segoe UI", Arial, sans-serif;
    --weight-display: 400;
    --weight-heading: 400;
    --tracking-display: 0.005em;
    --tracking-heading: 0.01em;
    --tracking-caps: 0.24em;
    --display-max: 13rem;
    --measure: 60ch;
    --type-ratio: 1.36;
    --radius-card: 0;
    --radius-control: 0;
    --border-width: 1px;
    --container-content: 82rem;
    --neutral-tint: oklch(45% 0.05 340);   /* plum: the greys lean to it */

    /* How far the display face is squeezed across. The source lettering is
       Federo at 80% wide and 126% tall; the same proportion at full height
       is 0.635. Sizes are divided by it, so a squeezed line still fills the
       column it was fitted to. */
    --gr-squeeze: 0.66;

    /* The palette. */
    --gr-parchment: oklch(92.9% 0.024 84);
    --gr-parchment-2: oklch(89.7% 0.029 84);
    --gr-paper: oklch(96.8% 0.014 84);
    --gr-plum: oklch(30.5% 0.075 335);
    --gr-plum-2: oklch(37.5% 0.085 335);
    --gr-plum-deep: oklch(19.5% 0.045 335);
    --gr-plum-band: oklch(24.5% 0.06 335);
    --gr-rose: oklch(56% 0.135 5);
    --gr-rose-ink: oklch(47% 0.14 5);
    --gr-rose-soft: oklch(80% 0.075 5);
    --gr-moss: oklch(44% 0.06 125);
    --gr-moss-soft: oklch(76% 0.06 120);
    --gr-charcoal: oklch(25.5% 0.012 340);

    /* The accent is plum as a fill (buttons, the accent-strong band); its
       text is parchment. Dark mode: a deep rose fill. */
    --accent: light-dark(var(--gr-plum), oklch(46% 0.13 5));
    --on-accent: var(--gr-paper);
    --band-inverse: light-dark(var(--gr-plum), oklch(15% 0.035 335));

    /* The ornaments: masks, painted with the colour tokens below. */
    --gr-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M0 0h4v4H0zM5 0h4v4H5zM10 0h4v4h-4zM0 5h4v4H0zM5 5h4v4H5zM10 5h4v4h-4zM0 10h4v4H0zM5 10h4v4H5zM10 10h4v4h-4z'/%3E%3C/svg%3E");
    --gr-rose-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cmask id='m'%3E%3Ccircle r='47' fill='%23fff'/%3E%3Cpath d='M0-30A30 30 0 1 1-29.9 2A22 22 0 1 0 18-12A14 14 0 1 1-8 10A6 6 0 1 0 4-2' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'/%3E%3C/mask%3E%3Ccircle r='47' mask='url(%23m)'/%3E%3C/svg%3E");
    --gr-double: linear-gradient(#000 0 0) 0 0 / 100% 1px no-repeat, linear-gradient(#000 0 0) 0 4px / 100% 1px no-repeat;
  }

  /* ---------- Colour roles: light and dark in one place ----------
     light-dark() resolves where a role is used, so the page, the bands and
     the bar each take the scheme they are in. */
  :root,
  :is(.section, section)[data-bg="inverse"],
  .hero[data-theme="dark"],
  .site-footer[data-dark],
  .nav {
    --color-background: light-dark(var(--gr-parchment), var(--gr-plum-deep));
    --color-surface: light-dark(var(--gr-parchment-2), oklch(23.5% 0.055 335));
    --color-surface-raised: light-dark(var(--gr-paper), oklch(26.5% 0.06 335));
    --color-text: light-dark(var(--gr-charcoal), var(--gr-parchment));
    --color-text-muted: light-dark(oklch(40% 0.035 340), oklch(83% 0.03 70));
    --color-text-subtle: light-dark(oklch(44% 0.035 340), oklch(79% 0.03 60));
    --color-border: light-dark(oklch(30.5% 0.075 335 / 0.3), oklch(92.9% 0.024 84 / 0.24));
    --color-border-subtle: light-dark(oklch(30.5% 0.075 335 / 0.16), oklch(92.9% 0.024 84 / 0.13));
    --color-border-strong: light-dark(var(--gr-plum), var(--gr-parchment));
    --accent-ink: light-dark(var(--gr-rose-ink), var(--gr-rose-soft));
    --accent-fill: light-dark(var(--gr-plum), var(--gr-parchment));
    --on-accent-fill: light-dark(var(--gr-paper), var(--gr-plum));
    --accent-fill-hover: light-dark(var(--gr-plum-2), oklch(97% 0.014 84));
    --accent-hover: light-dark(var(--gr-plum-2), oklch(52% 0.13 5));
    --accent-subtle: light-dark(oklch(90.5% 0.035 20), oklch(25% 0.07 350));
    --color-focus: light-dark(var(--gr-rose-ink), var(--gr-rose-soft));
    --color-selection: light-dark(oklch(85% 0.06 5), oklch(38% 0.1 355));
    --shadow-color: var(--gr-plum);

    /* The theme's own inks. */
    --gr-heading: light-dark(var(--gr-plum), var(--gr-parchment));
    --gr-em: light-dark(var(--gr-rose-ink), var(--gr-rose-soft));
    --gr-label: light-dark(var(--gr-moss), var(--gr-moss-soft));
    --gr-orn: light-dark(oklch(30.5% 0.075 335 / 0.6), oklch(92.9% 0.024 84 / 0.55));
    --gr-orn-rose: light-dark(var(--gr-rose), oklch(70% 0.11 5));
    --gr-line: light-dark(oklch(30.5% 0.075 335 / 0.32), oklch(92.9% 0.024 84 / 0.28));
    --gr-mat: light-dark(var(--gr-paper), oklch(24% 0.055 335));
    --gr-drop: light-dark(var(--gr-moss), oklch(10% 0.03 335));
    --gr-wash-rose: light-dark(oklch(56% 0.135 5 / 0.08), oklch(56% 0.135 5 / 0.14));
    --gr-wash-moss: light-dark(oklch(44% 0.06 125 / 0.09), oklch(44% 0.06 125 / 0.12));
  }

  /* The bar takes the page's colours: parchment over parchment, plum over plum. */
  .nav:not([data-bg="inverse"]) { color-scheme: inherit; --_dark-weight: inherit; }
  /* A dark band paints itself; its page colour follows the paint. */
  :is(.section, section)[data-bg="inverse"],
  .hero[data-theme="dark"],
  .site-footer[data-dark] { --color-background: var(--band-inverse); }
  /* The accent-strong band: plum (rose in dark mode); buttons on it invert. */
  :is(.section, section)[data-bg="accent-strong"], .hero[data-theme="accent"] {
    --gr-heading: var(--on-accent);
    --gr-em: light-dark(var(--gr-rose-soft), var(--gr-paper));
    --gr-label: var(--on-accent);
    --gr-orn: color-mix(in oklch, var(--on-accent) 60%, transparent);
    --gr-orn-rose: light-dark(var(--gr-rose-soft), var(--gr-paper));
    --gr-line: color-mix(in oklch, var(--on-accent) 40%, transparent);
  }

  /* ---------- Page ---------- */
  html { background-color: var(--color-background); }
  body {
    background:
      radial-gradient(70rem 40rem at 82% 8rem, var(--gr-wash-rose), transparent 62%),
      radial-gradient(60rem 40rem at 0% 70%, var(--gr-wash-moss), transparent 60%),
      var(--color-background);
    font-weight: calc(400 + var(--_dark-weight) / 3);
  }
  .section[data-bg="tinted"], .section[data-bg="alt"] {
    border-block: 1px solid var(--gr-line);
  }

  /* ---------- Type ---------- */
  :is(h1, h2, h3, .display, .hero__headline, .card__title, .cta__title, .stat__value) { color: var(--gr-heading); }
  :is(h1, h2, h3, .display, .hero__headline, .cta__title) em { font-style: normal; color: var(--gr-em); }

  /* The tall lettering: the box is widened by 1 / squeeze and drawn back
     to the column, so the line breaks fall where they would unsqueezed. */
  :is(.display, .hero__headline, h1,
      :is(.section__head, .features__header, .stats__header, .team__header, .testimonials__header) h2,
      .cta__title) {
    inline-size: calc(100% / var(--gr-squeeze));
    max-inline-size: none;
    transform: scaleX(var(--gr-squeeze));
    transform-origin: 0 0;
    font-weight: 400;
  }
  :is(.display, .hero__headline, h1, h2, .cta__title):dir(rtl) { transform-origin: 100% 0; }
  .display, .hero__headline {
    font-size: var(--hero-headline-size,
      calc(clamp(var(--step-4), 100cqi / var(--fit, 8), min(var(--display-max), 16svh)) / var(--gr-squeeze)));
    line-height: 0.9;
    font-variation-settings: normal;
    text-wrap: balance;
  }
  h1:not(.display, .hero__headline) { font-size: calc(var(--step-4) / var(--gr-squeeze) * 0.82); line-height: 0.95; }
  :is(.section__head, .features__header, .stats__header, .team__header, .testimonials__header) h2 {
    font-size: calc(var(--step-3) / var(--gr-squeeze) * 0.86);
    line-height: 0.98;
  }
  .cta__title { font-size: calc(var(--step-3) / var(--gr-squeeze) * 0.8); line-height: 1; }
  h3, .card__title, .feature__title {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.25;
  }
  h3 { font-size: var(--step-1); }
  .card__title, .feature__title { font-size: calc(var(--step-0) * 1.08); }
  .lede { font-family: var(--font-body); font-weight: calc(380 + var(--_dark-weight)); color: var(--color-text-muted); }
  .hero__subheadline { color: var(--color-text); }

  /* The label voice: Federo capitals, widely tracked, in moss, after a
     short double rule. */
  .eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75em;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: var(--step--1);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gr-label);
  }
  .eyebrow::before {
    content: "";
    flex: none;
    inline-size: 2.1rem;
    block-size: 5px;
    border-block: 1px solid currentColor;
  }
  .card .eyebrow { font-size: var(--step--2); letter-spacing: 0.2em; }
  .card .eyebrow::before { inline-size: 1.1rem; }
  .section__num { color: var(--gr-em); }
  :is(h5, h6, thead th, .plate, legend, dt, .toc__label) { font-family: var(--font-heading); font-weight: 400; letter-spacing: 0.22em; }
  .plate { color: var(--gr-em); }

  a:not([class]) { text-decoration-color: color-mix(in oklch, currentColor 45%, transparent); text-underline-offset: 0.2em; }

  /* ---------- Nav: parchment bar, a lattice strip beneath ---------- */
  .nav:not([data-sticky]) { position: relative; }
  .nav {
    border-block-end: 0;
    box-shadow: none;
    padding-block-end: 0.25rem;
  }
  .nav::after {
    content: "";
    position: absolute;
    inset-inline: max(var(--page-edge), (100% - var(--container-content)) / 2);
    inset-block-end: -7px;
    block-size: 14px;
    pointer-events: none;
    /* short double rule | lattice | rose | lattice | long double rule */
    -webkit-mask:
      linear-gradient(#000 0 0) 0 5px / 6rem 1px no-repeat,
      linear-gradient(#000 0 0) 0 9px / 6rem 1px no-repeat,
      var(--gr-lattice) 6.75rem 0 / 14px 14px no-repeat,
      var(--gr-rose-dot) calc(6.75rem + 22px) 0 / 14px 14px no-repeat,
      var(--gr-lattice) calc(6.75rem + 44px) 0 / 14px 14px no-repeat,
      linear-gradient(#000 0 0) calc(6.75rem + 66px) 5px / 100% 1px no-repeat,
      linear-gradient(#000 0 0) calc(6.75rem + 66px) 9px / 100% 1px no-repeat;
    mask:
      linear-gradient(#000 0 0) 0 5px / 6rem 1px no-repeat,
      linear-gradient(#000 0 0) 0 9px / 6rem 1px no-repeat,
      var(--gr-lattice) 6.75rem 0 / 14px 14px no-repeat,
      var(--gr-rose-dot) calc(6.75rem + 22px) 0 / 14px 14px no-repeat,
      var(--gr-lattice) calc(6.75rem + 44px) 0 / 14px 14px no-repeat,
      linear-gradient(#000 0 0) calc(6.75rem + 66px) 5px / 100% 1px no-repeat,
      linear-gradient(#000 0 0) calc(6.75rem + 66px) 9px / 100% 1px no-repeat;
    background:
      linear-gradient(var(--gr-orn-rose) 0 0) calc(6.75rem + 5px) 5px / 4px 4px no-repeat,
      linear-gradient(var(--gr-orn-rose) 0 0) calc(6.75rem + 22px) 0 / 14px 14px no-repeat,
      linear-gradient(var(--gr-orn-rose) 0 0) calc(6.75rem + 49px) 5px / 4px 4px no-repeat,
      linear-gradient(var(--gr-orn) 0 0) 6.75rem 0 / 14px 14px no-repeat,
      linear-gradient(var(--gr-orn) 0 0) calc(6.75rem + 44px) 0 / 14px 14px no-repeat,
      var(--gr-line);
  }
  .nav__brand {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.3em;
    margin-inline-end: -0.3em;
    text-transform: uppercase;
    color: var(--gr-heading);
  }
  :is(.nav__link, .nav__dropdown-link) {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    font-size: var(--step--1);
  }
  :root { --nav-tracking: 0.2em; --nav-tracking-min: 0.06em; }
  .nav__cta {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: var(--step--1);
  }

  /* ---------- Hero: a tall double rule down the margin ---------- */
  .hero:not([data-theme], [data-overlay]) { background: transparent; }
  .hero:not([data-overlay])::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset-block: min(var(--space-xl), var(--space-section)) min(var(--space-xl), var(--space-section));
    inset-inline-start: calc(max(var(--page-edge), (100% - var(--container-content)) / 2) * 0.42 - 7px);
    inline-size: 14px;
    pointer-events: none;
    -webkit-mask:
      var(--gr-lattice) 0 0 / 14px 14px no-repeat,
      linear-gradient(#000 0 0) 4px 22px / 1px calc(100% - 44px) no-repeat,
      linear-gradient(#000 0 0) 9px 22px / 1px calc(100% - 44px) no-repeat,
      var(--gr-rose-dot) 0 50% / 14px 14px no-repeat,
      var(--gr-lattice) 0 100% / 14px 14px no-repeat;
    mask:
      var(--gr-lattice) 0 0 / 14px 14px no-repeat,
      linear-gradient(#000 0 0) 4px 22px / 1px calc(100% - 44px) no-repeat,
      linear-gradient(#000 0 0) 9px 22px / 1px calc(100% - 44px) no-repeat,
      var(--gr-rose-dot) 0 50% / 14px 14px no-repeat,
      var(--gr-lattice) 0 100% / 14px 14px no-repeat;
    background:
      linear-gradient(var(--gr-orn-rose) 0 0) 5px 5px / 4px 4px no-repeat,
      linear-gradient(var(--gr-orn-rose) 0 0) 5px calc(100% - 5px) / 4px 4px no-repeat,
      linear-gradient(var(--gr-orn-rose) 0 0) 0 50% / 14px 14px no-repeat,
      linear-gradient(var(--gr-orn) 0 0) 0 0 / 14px 14px no-repeat,
      linear-gradient(var(--gr-orn) 0 0) 0 100% / 14px 14px no-repeat,
      var(--gr-line);
  }
  /* The plate as a framed print: a dark frame round a parchment mat. */
  .hero__plate > :is(img, picture, video) {
    border: 1px solid var(--color-border-strong);
    outline: 1px solid var(--gr-line);
    outline-offset: 5px;
  }
  .hero__plate { margin-block-start: var(--space-l); }

  /* ---------- Section heads: a double rule led by a lattice and a rose ---------- */
  :is(.section__head, .features__header, .stats__header, .team__header, .testimonials__header) {
    position: relative;
    border-block-start: 0;
    padding-block-start: calc(var(--space-s) + 9px);
    background:
      linear-gradient(var(--gr-line) 0 0) 42px 2px / calc(100% - 42px) 1px no-repeat,
      linear-gradient(var(--gr-line) 0 0) 42px 6px / calc(100% - 42px) 1px no-repeat;
  }
  :is(.section__head, .features__header, .stats__header, .team__header, .testimonials__header)::before {
    content: "";
    position: absolute;
    inset-block-start: -3px;
    inset-inline-start: 0;
    inline-size: 34px;
    block-size: 14px;
    -webkit-mask: var(--gr-lattice) 0 0 / 14px 14px no-repeat, var(--gr-rose-dot) 20px 0 / 14px 14px no-repeat;
    mask: var(--gr-lattice) 0 0 / 14px 14px no-repeat, var(--gr-rose-dot) 20px 0 / 14px 14px no-repeat;
    background:
      linear-gradient(var(--gr-orn-rose) 0 0) 5px 5px / 4px 4px no-repeat,
      linear-gradient(var(--gr-orn-rose) 0 0) 20px 0 / 14px 14px no-repeat,
      var(--gr-orn);
  }

  /* ---------- Cards: framed prints ---------- */
  .card {
    --_card-bg: var(--gr-mat);
    --_card-border: var(--color-border-strong);
    --_card-pad: var(--space-s);
    --_card-rule: transparent;
    padding: 9px;
    box-shadow: 6px 6px 0 var(--gr-drop);
    overflow: visible;
  }
  /* The keyline inside the edge, and a rose square on the top corner. */
  .card::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid var(--gr-line);
    pointer-events: none;
  }
  .card::after {
    content: "";
    position: absolute;
    inset-block-start: -5px;
    inset-inline-start: -5px;
    inline-size: 9px;
    block-size: 9px;
    background: var(--gr-orn-rose);
    pointer-events: none;
  }
  /* A framed card keeps its picture at the top of the mat (the base hangs
     media on a shared line, which leaves an empty mat above a short one);
     the price line settles at the foot of the frame. */
  .grid > .card:has(> .card__media, > .card__media-wrap):not([data-layout]) {
    display: flex;
    grid-row: auto;
  }
  .grid > .card > :is(.card__media, .card__media-wrap) { align-self: stretch; }
  .card__meta { margin-block-start: auto; }
  .card__content { padding: var(--space-s) calc(var(--space-s) - 4px) calc(var(--space-s) - 4px); border-block-start: 0; }
  .card__meta { color: var(--color-text-muted); letter-spacing: 0.04em; }
  .card__title a { color: inherit; text-decoration: none; }
  .card__title a:hover { color: var(--gr-em); }
  .card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }

  /* Features: a vertical double rule on the start side, like a chair back. */
  .feature {
    position: relative;
    padding-inline-start: 1.5rem;
    border-block-start: 0;
  }
  .feature::before {
    content: "";
    position: absolute;
    inset-block: 0.2rem 0.2rem;
    inset-inline-start: 0;
    inline-size: 5px;
    border-inline: 1px solid var(--gr-line);
  }
  .feature::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: -4.5px;
    inline-size: 14px;
    block-size: 14px;
    -webkit-mask: var(--gr-rose-dot) center / 14px 14px no-repeat;
    mask: var(--gr-rose-dot) center / 14px 14px no-repeat;
    background: var(--gr-orn-rose);
  }

  /* ---------- Stats: tall rose numerals between hairlines ---------- */
  .stat { border-block-start-color: var(--gr-line); }
  .stat__value {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--gr-em);
    font-size: calc(var(--step-4) * 1.15);
    line-height: 1;
    display: block;
    inline-size: calc(100% / var(--gr-squeeze));
    transform: scaleX(var(--gr-squeeze));
    transform-origin: 0 0;
  }
  .stat__label { color: var(--gr-label); font-family: var(--font-heading); letter-spacing: 0.2em; }

  /* ---------- Testimonial ---------- */
  .testimonial__quote {
    font-family: var(--font-body);
    font-weight: calc(350 + var(--_dark-weight));
    color: var(--color-text);
    padding-inline-start: 1.75rem;
    border-inline-start: 5px double var(--gr-line);
  }
  .testimonial__name { color: var(--gr-heading); font-style: normal; }

  /* ---------- Buttons: plum with a rose cap ---------- */
  :is(button, .button) {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: var(--step--1);
    border-radius: 0;
  }
  /* The cap: a rose square at the end of the button, a paper rose dot on
     it (::after, a mask). The label keeps its plum (or parchment) ground. */
  :is(button, .button):not([data-variant]) {
    --_gr-cap: 2.75rem;
    position: relative;
    padding-inline-end: calc(var(--_gr-cap) + 1.1em);
    background-image: linear-gradient(var(--gr-rose) 0 0);
    background-size: var(--_gr-cap) 100%;
    background-position: right 0 center;
    background-repeat: no-repeat;
  }
  :is(button, .button):not([data-variant]):dir(rtl) { background-position: left 0 center; }
  :is(button, .button):not([data-variant])::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    inline-size: var(--_gr-cap);
    -webkit-mask: var(--gr-rose-dot) center / 1.2rem 1.2rem no-repeat;
    mask: var(--gr-rose-dot) center / 1.2rem 1.2rem no-repeat;
    background: var(--gr-paper);
    pointer-events: none;
  }
  :is(button, .button)[data-variant="outline"] {
    border: 3px double var(--_btn-border, var(--color-border-strong));
  }
  :is(button, .button):focus-visible,
  .nav__cta:focus-visible {
    outline: var(--focus-ring-width) solid var(--color-focus);
    outline-offset: 3px;
  }

  /* ---------- Fields ---------- */
  :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"]), textarea, select) {
    background-color: var(--gr-mat);
    border: 1px solid var(--color-border-strong);
    border-radius: 0;
    font-family: var(--font-body);
  }
  :is(input, textarea)::placeholder { color: var(--color-text-subtle); font-style: italic; }
  input:is([type="radio"], [type="checkbox"]) { accent-color: var(--gr-plum); }
  /* On a solid band a field is the band's own colour, its edge and text the band's ink. */
  :is(.section, section)[data-bg="accent-strong"] :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"]), textarea, select) {
    background-color: color-mix(in oklch, var(--on-accent) 8%, var(--accent));
    border-color: var(--on-accent);
    color: var(--on-accent);
  }
  :is(.section, section)[data-bg="accent-strong"] :is(input, textarea)::placeholder { color: color-mix(in oklch, var(--on-accent) 82%, var(--accent)); }

  /* ---------- CTA band ---------- */
  .cta[data-bg="accent-strong"] { position: relative; }
  .cta[data-bg="accent-strong"]::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--gr-line);
    outline: 1px solid var(--gr-line);
    outline-offset: -5px;
    pointer-events: none;
  }

  /* ---------- Footer ---------- */
  .site-footer {
    --_footer-bg: transparent;
    background: transparent;
    border-block-start: 0;
    position: relative;
  }
  .site-footer::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: max(var(--page-edge), (100% - var(--container-content)) / 2);
    block-size: 5px;
    border-block: 1px solid var(--gr-line);
  }
  .site-footer__title { font-family: var(--font-heading); font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gr-heading); }

  /* ---------- Access ---------- */
  .skip-link { background: var(--accent-fill); color: var(--on-accent-fill); }
  ::selection { background: var(--color-selection); color: var(--color-text); }
  @media (prefers-contrast: more) {
    :root:root, .nav.nav {
      --color-text-muted: var(--color-text);
      --color-text-subtle: var(--color-text);
      --gr-line: var(--color-border-strong);
      --gr-label: var(--color-text);
    }
  }
  @media (forced-colors: active) {
    .nav::after, .hero::before, .card::after, .feature::after,
    :is(.section__head, .features__header, .stats__header, .team__header, .testimonials__header)::before,
    :is(button, .button)::after { display: none; }
  }
}
