/* The shared narrative typography for contact, legal and recovery surfaces.
   Unlayered and loaded after components.css so the page hooks take precedence
   over the older, layered display-font rules without changing shared chrome. */
@font-face {
  font-family: 'Utility Narrative';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/google/geist-variable-latin.woff2') format('woff2');
}

.tacet-contact-page,
.tacet-legal-page,
.tacet-not-found-page {
  --utility-narrative-font: 'Utility Narrative', Supreme, sans-serif;
  --utility-narrative-gutter: clamp(40px, 12.5vw, 160px);
  --utility-narrative-rail: min(calc(100% - var(--utility-narrative-gutter)), 1120px);
  --utility-narrative-space: clamp(var(--space-20), 9vw, 9rem);
}

/* Contact keeps its focused form-first width and every native control. */
.tacet-contact-page .tacet-contact-grid {
  padding-block: var(--utility-narrative-space);
}

.tacet-contact-page .tacet-contact-form-header,
.tacet-contact-page .tacet-contact-copy,
.tacet-contact-page .tacet-contact-route {
  font-family: var(--utility-narrative-font);
}

.tacet-contact-page .tacet-contact-form-header h1 {
  max-width: 15ch;
  color: var(--foreground);
  font-family: var(--utility-narrative-font);
  font-size: clamp(3.75rem, 6.4vw, 5.5rem);
  font-weight: 400 !important;
  font-variation-settings: 'wght' 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-transform: none;
}

.tacet-contact-page .tacet-contact-form-header h1 > span {
  color: var(--foreground);
  font-weight: 800;
  font-variation-settings: 'wght' 800;
}

.tacet-contact-page .tacet-contact-form-header > p,
.tacet-contact-page .tacet-contact-copy__intro {
  color: color-mix(in oklab, var(--foreground) 76%, transparent);
  font-family: var(--utility-narrative-font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Contact and 404 use the shared split eyebrow with orange name and quiet context. */
.tacet-contact-page .utility-narrative-eyebrow,
.tacet-legal-page .proto-section-eyebrow,
.tacet-not-found-page .proto-section-eyebrow {
  margin-bottom: var(--space-6);
  font-family: var(--utility-narrative-font);
}

.tacet-contact-page .proto-section-eyebrow__name,
.tacet-legal-page .proto-section-eyebrow__name,
.tacet-not-found-page .proto-section-eyebrow__name {
  color: var(--org-on-light);
  font-weight: 700;
}

.tacet-contact-page .proto-section-eyebrow__context,
.tacet-legal-page .proto-section-eyebrow__context,
.tacet-not-found-page .proto-section-eyebrow__context {
  color: var(--text-m);
  font-weight: 500;
}

/* Legal title emphasis stays solid, and policy body headings remain unadorned. */
.tacet-legal-page .tacet-legal {
  --legal-gutter: var(--utility-narrative-gutter);
  --legal-rail: var(--utility-narrative-rail);
  --legal-content-padding: clamp(1.5rem, 3vw, 3rem);
}

.tacet-legal-page .tacet-legal__mast {
  padding-block: clamp(5rem, 9vw, 9rem) clamp(3rem, 6vw, 5rem);
}

.tacet-legal-page .tacet-legal__mast-inner,
.tacet-legal-page .tacet-legal__shell {
  width: var(--utility-narrative-rail);
  max-width: 1120px;
}

.tacet-legal-page .tacet-legal__mast h1 {
  max-width: 24ch;
  margin-block: var(--space-6) var(--space-4);
  color: var(--foreground);
  font-family: var(--utility-narrative-font);
  font-size: clamp(3.5rem, 6.4vw, 5.5rem);
  font-weight: 400 !important;
  font-variation-settings: 'wght' 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-transform: none;
}

.tacet-legal-page .utility-narrative-heading-focus {
  color: var(--foreground);
  font-weight: 800;
  font-variation-settings: 'wght' 800;
}

.tacet-legal-page .tacet-legal__mast p,
.tacet-legal-page .tacet-legal__article,
.tacet-legal-page .tacet-legal__policy-nav {
  font-family: var(--utility-narrative-font);
}

.tacet-legal-page .tacet-legal__mast p {
  max-width: 68ch;
  color: color-mix(in oklab, var(--foreground) 76%, transparent);
}

.tacet-legal-page .tacet-legal__article {
  font-size: 1rem;
  line-height: 1.72;
}

.tacet-legal-page .tacet-legal__article :is(p, li, h2, h3) {
  max-width: 72ch;
}

.tacet-legal-page .tacet-legal__article :is(h2, h3) {
  color: var(--foreground);
  font-family: var(--utility-narrative-font);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* The 404 recovery map, animation and actions retain their original structure. */
.tacet-not-found-page .not-found__frame {
  width: var(--utility-narrative-rail);
  max-width: 1120px;
}

.tacet-not-found-page .not-found__copy {
  font-family: var(--utility-narrative-font);
}

.tacet-not-found-page .not-found h1 {
  max-width: 12ch;
  color: var(--foreground);
  font-family: var(--utility-narrative-font);
  font-size: clamp(3.75rem, 6.4vw, 6rem);
  font-weight: 400 !important;
  font-variation-settings: 'wght' 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.tacet-not-found-page .not-found h1 > span {
  color: var(--foreground);
  font-weight: 800;
  font-variation-settings: 'wght' 800;
}

.tacet-not-found-page .not-found__lede {
  max-width: 44ch;
  color: color-mix(in oklab, var(--foreground) 76%, transparent);
  font-family: var(--utility-narrative-font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.tacet-contact-page .heading-dot,
.tacet-not-found-page .heading-dot {
  display: inline-block;
  color: var(--org-on-light);
  opacity: 0.82;
  transform: translateY(0) scale(1);
  transform-origin: 50% 85%;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease-out;
}

@supports (background-clip: text) {
  .tacet-contact-page .heading-dot,
  .tacet-not-found-page .heading-dot {
    background-image: linear-gradient(
      90deg,
      color-mix(in oklab, var(--foreground) 20%, var(--pur)),
      color-mix(in oklab, var(--foreground) 20%, var(--tacet-orange))
    );
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

@media (hover: hover) and (pointer: fine) {
  .tacet-contact-page .tacet-contact-form-header h1:hover .heading-dot,
  .tacet-not-found-page .not-found h1:hover .heading-dot {
    opacity: 1;
    transform: translateY(-0.04em) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tacet-contact-page .heading-dot,
  .tacet-not-found-page .heading-dot,
  .tacet-contact-page .tacet-contact-form-header h1:hover .heading-dot,
  .tacet-not-found-page .not-found h1:hover .heading-dot {
    transform: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  .tacet-contact-page .heading-dot,
  .tacet-not-found-page .heading-dot {
    background-image: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

@media (max-width: 850px) {
  .tacet-contact-page,
  .tacet-legal-page,
  .tacet-not-found-page {
    --utility-narrative-gutter: 64px;
  }
}

@media (max-width: 640px) {
  .tacet-not-found-page .not-found__frame {
    width: var(--utility-narrative-rail);
  }
}

@media (max-width: 560px) {
  .tacet-contact-page,
  .tacet-legal-page,
  .tacet-not-found-page {
    --utility-narrative-gutter: 40px;
  }

  .tacet-contact-page .tacet-contact-form-header h1,
  .tacet-not-found-page .not-found h1 {
    font-size: clamp(3.25rem, 13vw, 4.5rem);
  }

  .tacet-legal-page .tacet-legal__mast h1 {
    font-size: clamp(3.25rem, 13vw, 4.5rem);
  }

  .tacet-contact-page .tacet-contact-grid {
    padding-block: 5rem;
  }

  .tacet-legal-page .tacet-legal__article {
    padding-inline: 0;
  }
}

/* Long policy URLs remain readable without widening the document. */
.tacet-legal-page .tacet-legal__article a {
  overflow-wrap: anywhere;
}
@layer components {
  .proto-saas.tacet-legal-page .tacet-legal__article :is(h2, h3) {
    font-family: var(--utility-narrative-font) !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }
}

/* The approved stepped underline replaces the old 404 accent overline. */
.tacet-not-found-page .not-found__copy > .proto-section-eyebrow {
  width: fit-content;
  max-width: 100%;
  border-top: 0;
}
