/* The site's skin over the brand tokens (brand/tokens.css). Light and dark follow the visitor's system setting. */
@font-face { font-family: "Cardo"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cardo/Cardo-Regular.woff2") format("woff2"); }
@font-face { font-family: "Cardo"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cardo/Cardo-Bold.woff2") format("woff2"); }
@font-face { font-family: "Cardo"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cardo/Cardo-Italic.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; src: url("../fonts/archivo/Archivo-VF.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono/IBMPlexMono-Medium.woff2") format("woff2"); }

:root {
  /* light theme (tokens: color.light) */
  --surface: var(--tn-light-surface);
  --card: var(--tn-light-card);
  --text: var(--tn-light-on-surface);
  --muted: #5D6370;          /* the brand sheet's secondary text on light; 6:1 on the surface */
  --line: #DDD8CC;
  --link: var(--tn-light-link);
  --accent: var(--tn-forest);   /* the gold thread is too pale for words on light; forest carries emphasis */
  --btn: var(--tn-light-button-fill);
  --btn-edge: var(--tn-light-button-fill);
  --btn-label: var(--tn-light-button-label);
  --focus: var(--tn-loch);
  --swatch-loch: var(--tn-loch);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* dark theme: the cloth's night (tokens: color.dark) */
    --surface: var(--tn-dark-surface);
    --card: var(--tn-dark-card);
    --text: var(--tn-dark-on-surface);
    --muted: var(--tn-dark-muted);
    --line: var(--tn-dark-line);
    --link: var(--tn-dark-link);
    --accent: var(--tn-gold);
    --btn: var(--tn-dark-button-fill);
    --btn-edge: var(--tn-dark-button-edge);
    --btn-label: var(--tn-dark-button-label);
    --focus: var(--tn-gold);
    --swatch-loch: var(--tn-dark-button-fill);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface); color: var(--text); font-family: var(--tn-font-product); font-size: 1rem; line-height: 1.6; overflow-x: hidden; }
a { color: var(--link); text-decoration-color: var(--tn-gold); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--tn-font-mono); font-size: .9em; color: var(--text); background: var(--card); padding: 1px 6px; border-radius: 3px; }

.lockup { display: inline-block; line-height: 0; }
.lockup img { height: 36px; width: auto; display: block; }
