/* Reset, page typography and shared helpers. */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
sup { line-height: 0; }

::selection { background: var(--mist); color: var(--carbon); }

/* Focus is drawn in ink on light surfaces and in paper on dark ones (always well over 3:1). */
:focus-visible {
  outline: 2px solid var(--focus, var(--ink));
  outline-offset: 3px;
}
.announce, .closing__cta, .feature__media, .wt, .drawer__head { --focus: var(--paper); }
.mega, .site-header.is-shelf-open { --focus: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-ui);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--margin);
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  font: 500 var(--fs-ui)/1 var(--sans);
  transform: translateY(-160%);
  transition: transform .2s var(--ease-std);
}
.skip-link:focus { transform: translateY(0); }

/* Arrow and play glyphs, drawn with a mask so they take the text colour. */
.arrow, .play-glyph {
  display: inline-block;
  width: 12px;
  height: 10px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.arrow {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M.5 5h12M8.6 1.1 12.5 5 8.6 8.9' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E");
}
.play-glyph {
  width: 9px;
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M.6.8 8.2 5 .6 9.2Z' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}
