/* Reset plus the 19 Figma text styles. Letter spacing is expressed in em so it tracks
   font size the way Figma's percentage tracking does. */

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

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

body {
    margin: 0;
    background: var(--gc-bg-canvas);
    color: var(--gc-text-primary);
    font-family: var(--gc-font-sans);
    font-size: 16px;
    line-height: 24px;
    font-weight: var(--gc-weight-regular);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
}

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

img, svg, video, canvas {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    color: var(--gc-text-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--gc-border-focus);
    outline-offset: 2px;
}

hr {
    border: 0;
    border-top: 1px solid var(--gc-border-subtle);
    margin: var(--gc-space-lg) 0;
}

code, pre, kbd, samp {
    font-family: var(--gc-font-mono);
}

/* Display */
.gc-display-xl {
    font-size: 48px;
    line-height: 56px;
    font-weight: var(--gc-weight-bold);
    letter-spacing: -0.02em;
}

.gc-display-l {
    font-size: 36px;
    line-height: 44px;
    font-weight: var(--gc-weight-bold);
    letter-spacing: -0.015em;
}

/* Heading */
.gc-heading-xl {
    font-size: 30px;
    line-height: 38px;
    font-weight: var(--gc-weight-semibold);
    letter-spacing: -0.01em;
}

.gc-heading-l {
    font-size: 24px;
    line-height: 32px;
    font-weight: var(--gc-weight-semibold);
    letter-spacing: -0.005em;
}

.gc-heading-m {
    font-size: 20px;
    line-height: 28px;
    font-weight: var(--gc-weight-semibold);
    letter-spacing: -0.005em;
}

.gc-heading-s {
    font-size: 16px;
    line-height: 24px;
    font-weight: var(--gc-weight-semibold);
}

/* Body */
.gc-body-l {
    font-size: 18px;
    line-height: 28px;
}

.gc-body-m {
    font-size: 16px;
    line-height: 24px;
}

.gc-body-s {
    font-size: 14px;
    line-height: 20px;
}

.gc-body-xs {
    font-size: 13px;
    line-height: 18px;
}

/* Label */
.gc-label-l {
    font-size: 16px;
    line-height: 24px;
    font-weight: var(--gc-weight-medium);
}

.gc-label-m {
    font-size: 14px;
    line-height: 20px;
    font-weight: var(--gc-weight-medium);
}

.gc-label-s {
    font-size: 12px;
    line-height: 16px;
    font-weight: var(--gc-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Mono */
.gc-mono-m {
    font-family: var(--gc-font-mono);
    font-size: 14px;
    line-height: 20px;
}

.gc-mono-l {
    font-family: var(--gc-font-mono);
    font-size: 18px;
    line-height: 24px;
    font-weight: var(--gc-weight-bold);
    text-transform: uppercase;
}

/* Kiosk — the watchman console runs at arm's length, so it has its own ramp */
.gc-kiosk-display {
    font-size: 56px;
    line-height: 60px;
    font-weight: var(--gc-weight-bold);
    letter-spacing: -0.02em;
}

.gc-kiosk-title {
    font-size: 32px;
    line-height: 40px;
    font-weight: var(--gc-weight-bold);
    letter-spacing: -0.01em;
}

.gc-kiosk-body {
    font-size: 20px;
    line-height: 28px;
    font-weight: var(--gc-weight-medium);
}

.gc-kiosk-label {
    font-size: 18px;
    line-height: 24px;
    font-weight: var(--gc-weight-semibold);
}

/* Element defaults drawn from the ramp, so unclassed markup still lands on the scale */
h1 { font: var(--gc-weight-bold) 36px/44px var(--gc-font-sans); letter-spacing: -0.015em; }
h2 { font: var(--gc-weight-semibold) 30px/38px var(--gc-font-sans); letter-spacing: -0.01em; }
h3 { font: var(--gc-weight-semibold) 24px/32px var(--gc-font-sans); letter-spacing: -0.005em; }
h4 { font: var(--gc-weight-semibold) 20px/28px var(--gc-font-sans); letter-spacing: -0.005em; }
h5 { font: var(--gc-weight-semibold) 16px/24px var(--gc-font-sans); }
h6 { font: var(--gc-weight-semibold) 14px/20px var(--gc-font-sans); }

small {
    font-size: 14px;
    line-height: 20px;
}

/* Utilities used often enough across pages to belong in the base layer */
.gc-strong { font-weight: var(--gc-weight-semibold); }
.gc-text-secondary { color: var(--gc-text-secondary); }
.gc-text-muted { color: var(--gc-text-muted); }
.gc-text-allow { color: var(--gc-allow-text); }
.gc-text-soft { color: var(--gc-soft-text); }
.gc-text-deny { color: var(--gc-deny-text); }
.gc-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
