/* Tailblaze — shared foundation for the .new landing variants.
   Tokens per the brand constitution colour law; AllRoundGothic display
   (subsetted woff2 from the licensed TTFs in /fonts); each variant page
   declares its own body face. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'All Round Gothic';
  src: url('../fonts/arg-xlig.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'All Round Gothic';
  src: url('../fonts/arg-book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'All Round Gothic';
  src: url('../fonts/arg-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'All Round Gothic';
  src: url('../fonts/arg-demi.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('../fonts/literata-roman.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('../fonts/literata-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../fonts/schibsted-roman.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../fonts/schibsted-italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-roman.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --tb-forest: #507047;
  --tb-deep: #2e3d29;
  --tb-paper: #f8f9f7;
  --tb-sun: #fde871;
  --tb-hairline: #d9ded4;
  --tb-sage: #a9b8a2;
  --tb-raised: #3c5234;
  --tb-tint: #eef1ea;
  --tb-display: 'All Round Gothic', 'Avenir Next', 'Century Gothic', sans-serif;
  --tb-measure: 38rem;
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tb-paper);
  color: var(--tb-deep);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--tb-sun); color: var(--tb-deep); }

/* ------------------------------------------------------------------- focus */
:focus-visible {
  outline: 3px solid var(--tb-forest);
  outline-offset: 3px;
  border-radius: 4px;
}
.tb-dark :focus-visible, .tb-dark:focus-visible {
  outline-color: var(--tb-paper);
}

/* skip link */
.tb-skip {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 20;
  background: var(--tb-deep);
  color: var(--tb-paper);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.tb-skip:focus-visible { top: 1rem; }

/* screen-reader only */
.tb-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ layout */
.tb-wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}
.tb-measure { max-width: var(--tb-measure); }

/* ---------------------------------------------------------------- kickers */
.tb-kicker {
  font-family: var(--tb-display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tb-forest);
}
.tb-dark .tb-kicker { color: var(--tb-sage); }

/* ---------------------------------------------------------------- buttons */
.tb-btn {
  display: inline-block;
  font-family: var(--tb-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--tb-forest);
  color: var(--tb-paper);
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.tb-btn:hover { background: var(--tb-deep); }
.tb-btn:active { transform: scale(0.97); }
.tb-btn--sun {
  background: var(--tb-sun);
  color: var(--tb-deep);
}
.tb-btn--sun:hover { background: var(--tb-sun); filter: brightness(0.96); }
.tb-btn[disabled] { opacity: 0.6; cursor: default; }

.tb-textlink {
  color: var(--tb-forest);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s ease;
}
.tb-textlink:hover { text-decoration-color: var(--tb-sun); }

/* ------------------------------------------------------------------- chips */
.tb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border: 0;
  padding: 0;
  margin: 0;
}
.tb-chip { position: relative; }
.tb-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.tb-chip span {
  display: inline-block;
  font-family: var(--tb-display);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.75rem 1.15rem;
  border: 1.5px solid var(--tb-hairline);
  border-radius: 999px;
  color: inherit;
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease,
    color 0.2s ease, transform 0.15s ease;
}
.tb-chip:hover span { border-color: var(--tb-forest); }
.tb-chip input:active + span { transform: scale(0.97); }
.tb-chip input:checked + span {
  background: var(--tb-forest);
  border-color: var(--tb-forest);
  color: var(--tb-paper);
}
.tb-chip input:focus-visible + span {
  outline: 3px solid var(--tb-forest);
  outline-offset: 3px;
}
.tb-dark .tb-chip span { border-color: var(--tb-raised); }
.tb-dark .tb-chip:hover span { border-color: var(--tb-sage); }
.tb-dark .tb-chip input:checked + span {
  background: var(--tb-paper);
  border-color: var(--tb-paper);
  color: var(--tb-deep);
}
.tb-dark .tb-chip input:focus-visible + span { outline-color: var(--tb-paper); }

/* -------------------------------------------------------------------- form */
.tb-form { display: grid; gap: 1.1rem; }
.tb-form-row { display: grid; gap: 0.5rem; }
.tb-label {
  font-family: var(--tb-display);
  font-weight: 600;
  font-size: 1rem;
}
.tb-input {
  font: inherit;
  font-size: 1rem; /* never below 16px: prevents the iOS focus zoom */
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--tb-hairline);
  border-radius: 14px;
  background: #fff;
  color: var(--tb-deep);
  transition: border-color 0.2s ease;
}
.tb-input:focus { border-color: var(--tb-forest); outline: none; }
.tb-input:focus-visible { outline: 3px solid var(--tb-forest); outline-offset: 2px; }
.tb-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}
.tb-msg { min-height: 1.5em; font-size: 0.9375rem; }
.tb-msg.is-error { color: #7a3b2e; }
.tb-dark .tb-msg.is-error { color: #e8c2b4; }
.tb-msg.is-success { color: var(--tb-forest); }

/* ------------------------------------------------------------------ footer */
.tb-footer {
  border-top: 1px solid var(--tb-hairline);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.9375rem;
}
.tb-footer .tb-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.tb-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.tb-footer a { text-decoration: none; opacity: 0.8; }
.tb-footer a:hover { opacity: 1; text-decoration: underline; }
.tb-footer-mark {
  font-family: var(--tb-display);
  font-weight: 600;
}

/* ----------------------------------------------------------------- reveals */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
  .tb-swap {
    display: inline-block;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .tb-swap.is-swapping { opacity: 0; transform: translateY(-0.35em); }
  .tb-swap.is-swapped { animation: tb-settle 0.26s ease; }
  @keyframes tb-settle {
    from { opacity: 0; transform: translateY(0.35em); }
    to { opacity: 1; transform: none; }
  }
}
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
