/* ShardTale — typefaces, tokens, element defaults, shared utilities */

@font-face {
  font-family: "ShardDisplay";
  src: url("../fonts/shard-display.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ShardText";
  src: url("../fonts/shard-text.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --st4-paper: #ffffff;
  --st4-plate-soft: #f4f4f5;
  --st4-ink: #0b0b0b;
  --st4-mute: #56585c;
  --st4-rule: #d9d9dc;
  --st4-rule-firm: #a8a9ad;
  --st4-flag: #1d4ed8;

  --st4-face-display: "ShardDisplay", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --st4-face-text: "ShardText", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --st4-shell-w: 1180px;
  --st4-gutter: 24px;

  --st4-step-1: 8px;
  --st4-step-2: 16px;
  --st4-step-3: 24px;
  --st4-step-4: 40px;
  --st4-step-5: 64px;
  --st4-step-6: 104px;

  --st4-cut: 14px;
  --st4-measure: 640px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--st4-paper);
  color: var(--st4-ink);
  font-family: var(--st4-face-text);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--st4-face-display);
  font-weight: 500;
  margin: 0;
  color: var(--st4-ink);
}

h1 {
  font-size: clamp(2.35rem, 5.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.021em;
}

h2 {
  font-size: clamp(1.85rem, 3.9vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.016em;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
}

h4 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p { margin: 0 0 var(--st4-step-2); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

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

a {
  color: var(--st4-flag);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--st4-ink);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--st4-flag);
  outline-offset: 3px;
}

svg { display: block; }

.st4-shell {
  width: 100%;
  max-width: var(--st4-shell-w);
  margin: 0 auto;
  padding-left: var(--st4-gutter);
  padding-right: var(--st4-gutter);
}

.st4-away {
  display: inline-block;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  vertical-align: middle;
  border: 0;
}

.st4-jump {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 40;
  background: var(--st4-ink);
  color: var(--st4-paper);
  padding: 14px 20px;
  font-family: var(--st4-face-display);
  text-decoration: none;
}

.st4-jump:focus {
  left: var(--st4-gutter);
  top: 12px;
  color: var(--st4-paper);
}

.st4-eyebrow {
  font-family: var(--st4-face-text);
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st4-mute);
  margin: 0 0 var(--st4-step-2);
}

.st4-measure { max-width: var(--st4-measure); }

.st4-quiet { color: var(--st4-mute); }

.st4-plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  font-family: var(--st4-face-display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--st4-cut)), calc(100% - var(--st4-cut)) 100%, 0 100%);
  transition: background-color .16s linear, color .16s linear;
}

.st4-plate--solid {
  background: var(--st4-ink);
  color: var(--st4-paper);
}

.st4-plate--solid:hover {
  background: var(--st4-flag);
  color: var(--st4-paper);
  text-decoration: none;
}

.st4-plate--solid:active { background: var(--st4-flag); }

.st4-plate--flat {
  background: var(--st4-plate-soft);
  color: var(--st4-ink);
}

.st4-plate--flat:hover {
  background: var(--st4-ink);
  color: var(--st4-paper);
  text-decoration: none;
}

.st4-plate--flat:active {
  background: var(--st4-flag);
  color: var(--st4-paper);
}

.st4-plate:focus-visible {
  outline: 3px solid transparent;
  outline-offset: 0;
  background: var(--st4-flag);
  color: var(--st4-paper);
  box-shadow: inset 0 0 0 3px var(--st4-paper), inset 0 0 0 5px var(--st4-flag);
}

.st4-plate__arrow {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .st4-plate { transition: none; }
}
