/* ==========================================================================
   TroveGlint — foundation sheet
   order: faces · element base · type scale · tokens · links & focus ·
          actions · shell utilities · motion
   ========================================================================== */

/* --- faces ---------------------------------------------------------------- */
@font-face {
  font-family: 'Glint Display';
  src: url('fonts/glint-display.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Glint Sans';
  src: url('fonts/glint-sans.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: #ffffff;
  color: #0b0b0c;
  font-family: 'Glint Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

svg { display: block; }

ul, ol { margin: 0; padding: 0; }

p { margin: 0 0 1.05em; }

table { border-collapse: collapse; }

/* --- type scale ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Glint Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.008em;
}

h1 {
  font-size: clamp(2.35rem, 1.35rem + 4.4vw, 4.25rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(1.8rem, 1.24rem + 2.3vw, 2.7rem);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.2rem, 1.06rem + 0.6vw, 1.45rem);
  line-height: 1.24;
}

h4 {
  font-size: 1.08rem;
  line-height: 1.3;
}

.tg1-hush {
  color: #4a4a52;
}

.tg1-lead {
  font-size: 1.075rem;
  color: #4a4a52;
  max-width: 34rem;
}

.tg1-mini {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #4a4a52;
}

.tg1-flag {
  font-family: 'Glint Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #4338ca;
  margin: 0 0 0.9rem;
}

/* --- tokens --------------------------------------------------------------- */
:root {
  --tg1-ink: #0b0b0c;
  --tg1-paper: #ffffff;
  --tg1-tint: #f6f6f8;
  --tg1-hush: #4a4a52;
  --tg1-rule: rgba(11, 11, 12, 0.14);
  --tg1-accent: #4338ca;
  --tg1-shell: 1080px;
  --tg1-pad: 26px;
  --tg1-nudge: 40px;
}

/* --- links & focus -------------------------------------------------------- */
a {
  color: var(--tg1-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

:focus-visible {
  outline: 3px solid var(--tg1-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.tg1-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--tg1-ink);
  color: var(--tg1-paper);
  padding: 14px 22px;
  text-decoration: none;
}

.tg1-skip:focus {
  left: 12px;
  top: 12px;
  color: var(--tg1-paper);
}

/* --- actions -------------------------------------------------------------- */
.tg1-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 30px;
  border-radius: 30% / 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.14s ease;
}

.tg1-act--solid {
  background: var(--tg1-accent);
  color: var(--tg1-paper);
  border: 2px solid var(--tg1-accent);
}

.tg1-act--solid:hover,
.tg1-act--solid:focus-visible {
  background: var(--tg1-ink);
  border-color: var(--tg1-ink);
  color: var(--tg1-paper);
}

.tg1-act--line {
  background: transparent;
  color: var(--tg1-ink);
  border: 2px solid var(--tg1-ink);
}

.tg1-act--line:hover,
.tg1-act--line:focus-visible {
  background: var(--tg1-accent);
  border-color: var(--tg1-accent);
  color: var(--tg1-paper);
}

.tg1-act:active { transform: translateY(2px); }

/* --- shell utilities ------------------------------------------------------ */
.tg1-hold {
  width: 100%;
  max-width: var(--tg1-shell);
  margin: 0 auto;
  padding-inline: var(--tg1-pad);
}

.tg1-band { position: relative; }

.tg1-band--tint { background: var(--tg1-tint); }

.tg1-away {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 620px) {
  :root { --tg1-pad: 20px; }
  body { font-size: 16.5px; }
}

/* --- motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- inline code ---------------------------------------------------------- */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--tg1-tint);
  padding: 2px 6px;
  border-radius: 4px;
}
