/* Contact polish layer (6 Nov 2026): docs/polish-standard-2026-11-06.md Part A, written once for all three takes.
   Loaded AFTER each take.css. Type roles (A1), the four text colour levels (A2), links, chips and fields (A3), and the
   interaction states (A4). Each take maps its own classes onto these tokens; nothing here is take-specific. */
:root {
  /* A1 type roles: 393 value to 1440 value, fluid between, growing above 1440 with --tcc-up */
  --r-h2: clamp(2rem, 1.625rem + 1.528vw, calc(3rem + var(--tcc-up) * .02));          /* 32 to 48 */
  --r-h3: clamp(1.4375rem, 1.32rem + .478vw, calc(1.75rem + var(--tcc-up) * .008));   /* 23 to 28 */
  --r-lede: clamp(1.1875rem, 1.117rem + .2865vw, calc(1.375rem + var(--tcc-up) * .004)); /* 19 to 22 */
  --r-body: clamp(1.0625rem, 1.039rem + .0955vw, calc(1.125rem + var(--tcc-up) * .002)); /* 17 to 18 */
  --r-meta: 15px;
  --r-label: 13px;
  /* A2 the four text colour levels */
  --c-heading: #E6E8E9;
  --c-body: rgba(255,255,255,.78);
  --c-meta: rgba(255,255,255,.62);
  --c-accent: #5cc3dc;
  /* states (not text levels) */
  --c-ring: rgba(255,255,255,.18);
  --c-ring-hover: rgba(255,255,255,.4);
  --c-fill-sel: rgba(54,174,203,.12);
  --c-error: #ecb48e;          /* the error line and ring: warm, not red, so it reads as "not yet" rather than "wrong" */
  --c-ui: 200ms;               /* A4: UI transitions 160 to 240ms on --tcc-easing-soft */
}

/* Headings never inherit body line height (A1) */
main h2 { line-height: 1.04; }
main h3 { line-height: 1.1; }

/* Label role */
.c-label { font: 600 var(--r-label)/1.3 var(--tcc-font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--c-meta); }
/* Meta role */
.c-meta { font-size: var(--r-meta); line-height: 1.5; color: var(--c-meta); }

/* A3 text link: body size, Host Grotesk 500, Accent, 1px underline at 0.2em; hover lifts to white and thickens */
.c-link { color: var(--c-accent); font-family: var(--tcc-font-body); font-weight: 500; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, var(--c-accent) 60%, transparent);
  letter-spacing: 0; cursor: pointer; overflow-wrap: anywhere;
  transition: color var(--c-ui) var(--tcc-easing-soft), text-decoration-color var(--c-ui) var(--tcc-easing-soft); }
@media (hover: hover) and (pointer: fine) {
  .c-link:hover { color: #fff; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
}
.c-link:active { color: #fff; }
button.c-link { background: none; border: 0; padding: 0; font-size: inherit; }
/* touch: an inline link's hit area grows to 44px without moving the line (vertical padding on an inline box) */
@media (max-width: 1079px) { a.c-link { padding-block: 14px; } }

/* A4 focus: one ring everywhere (2px Accent, 3px offset) */
main :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
main :focus:not(:focus-visible) { outline: none; }
/* a result that takes focus by script (the sent thanks) is announced, not ringed */
main [tabindex='-1']:focus { outline: none; }

/* A3 chips: pill, hairline ring at rest, Accent ring and a faint Accent fill when selected, and a filled mark (never colour alone).
   Markup: <div class="c-opts"><label><input type="radio"><span>Text</span></label>...</div> */
.c-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.c-opts label { position: relative; display: inline-flex; }
.c-opts input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.c-opts input + span { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 14px;
  border-radius: var(--tcc-radius-pill); box-shadow: inset 0 0 0 1px var(--c-ring); background: transparent;
  font: 600 var(--tcc-control-fs-lg)/1 var(--tcc-font-body); color: var(--c-body); white-space: nowrap; pointer-events: none;
  transition: box-shadow var(--c-ui) var(--tcc-easing-soft), background-color var(--c-ui) var(--tcc-easing-soft),
    color var(--c-ui) var(--tcc-easing-soft), transform 160ms var(--tcc-easing-soft); }
.c-opts input + span::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.34);
  transition: box-shadow 240ms var(--tcc-easing-arrive); }
@media (hover: hover) and (pointer: fine) {
  .c-opts label:hover input:not(:checked) + span { box-shadow: inset 0 0 0 1px var(--c-ring-hover); color: var(--c-heading); }
}
.c-opts label:active input + span { transform: scale(.97); }
.c-opts input:checked + span { box-shadow: inset 0 0 0 1.5px var(--c-accent); background-color: var(--c-fill-sel); color: var(--c-heading); }
.c-opts input:checked + span::before { box-shadow: inset 0 0 0 7px var(--c-accent), 0 0 0 3px rgba(92,195,220,.18); }
.c-opts input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* Fields: one shape for every text field on the Contact page */
.c-field-in { width: 100%; font: 400 17px/1.4 var(--tcc-font-body); color: var(--c-heading); background: rgba(255,255,255,.035);
  border: 1px solid var(--c-ring); border-radius: var(--tcc-radius-sm); padding: 0 16px; min-height: 52px;
  transition: border-color var(--c-ui) var(--tcc-easing-soft), background-color var(--c-ui) var(--tcc-easing-soft), box-shadow var(--c-ui) var(--tcc-easing-soft); }
textarea.c-field-in { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 128px; }
.c-field-in::placeholder { color: rgba(255,255,255,.42); }
@media (hover: hover) and (pointer: fine) { .c-field-in:hover:not(:focus) { border-color: var(--c-ring-hover); } }
main .c-field-in:focus { border-color: var(--c-accent); background-color: rgba(54,174,203,.05); }   /* the ring is the shared focus ring */
.c-field-in[aria-invalid='true'] { border-color: var(--c-error); box-shadow: 0 0 0 1px var(--c-error); }
main .c-field-in[aria-invalid='true']:focus { border-color: var(--c-error); }

/* The error line under the send button */
.c-err { display: flex; align-items: center; gap: 10px; font: 500 var(--r-meta)/1.4 var(--tcc-font-body); color: var(--c-error); }
.c-err::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor;
  background: linear-gradient(currentColor, currentColor) 50% 30% / 1.5px 6px no-repeat, linear-gradient(currentColor, currentColor) 50% 74% / 1.5px 1.5px no-repeat; }
.c-err:not([hidden]) { animation: c-err-in 240ms var(--tcc-easing-soft) both; }
@keyframes c-err-in { from { opacity: 0; transform: translateY(-4px); } }

/* Pressed (A4): the live pill presses in slightly */
main .tcc-btn.tcc-btn--arrow { transition: background-color .3s var(--tcc-easing-arrive), transform 160ms var(--tcc-easing-soft); }
main .tcc-btn.tcc-btn--arrow:active { transform: scale(.975); }
main .tcc-btn.tcc-btn--arrow:focus-visible { outline-color: var(--c-accent); }

@media (prefers-reduced-motion: reduce) {
  .c-opts input + span, .c-opts input + span::before, .c-link, .c-field-in { transition: none; }
  .c-err:not([hidden]) { animation: none; }
  main .tcc-btn:active, .c-opts label:active input + span { transform: none; }
}
