@font-face { font-family: 'RoyaleCouture'; src: url('fonts/custom/royale-couture-sans.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Handwriting'; src: url('fonts/custom/My handwriting.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Alice'; src: url('fonts/custom/Alice-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Arsenal'; src: url('fonts/vendor/arsenal/arsenal-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Arsenal'; src: url('fonts/vendor/arsenal/arsenal-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

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

button, [role="button"],
.am-svg, .am-svg text {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Four colours and nothing else: signal red, light blue, black and white.
   Any other value here is a shade or shadow step of one of those four.
   The JS reads these tokens to paint the canvas, so a colour literal added
   to ai-safety-agendas.js drifts away from this list without failing. */
:root {
  color-scheme: light;
  /* The one page background: html, body, the stage and the canvas sky all
     show this property, so anything layered over the water reads only it. */
  --water: #5BC2F0;
  --paper: var(--water);
  --ink: #0B0B0B;
  --muted: #4A4A4A;
  --cream: #F7F7F4;
  --wood: #0B0B0B;
  --ground: #0B0B0B;
  --ground-shade: #262626;
  --wood-text: #F7F7F4;
  --prosaic-text: #FFFFFF;
  --fundamental-text: #0B0B0B;
  --bush-text: #0B0B0B;
  --surface: #F7F7F4;
  --rust: #E60012;
  --link: #0B0B0B;
  --teal: #E60012;
  --red: #E60012;
  --brick: #B8000E;
  --neon: #E60012;
  --prosaic-shade: #E60012;
  --prosaic-shadow: #B8000E;
  --fundamental-shade: #F7F7F4;
  --fundamental-shadow: #C9D6DE;
  --cooperative-shade: #F7F7F4;
  --cooperative-shadow: #C9D6DE;
}

html { background: var(--water); color: var(--ink); }
body {
  font: 400 19px/1.5 'Arsenal', 'EB Garamond', Georgia, serif;
  overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
cite { font-style: italic; }

/* Persona-style chrome: black and cream slabs with one red accent, leaning
   as parallelograms. A slab leans by skewing the whole element, never by
   clipping its outline, so its label and glyph lean with it. */
:root {
  --p-black: #0B0B0B;
  --p-cream: #F7F7F4;
  --p-red: #E60012;
  --p-blue: #5BC2F0;
  --p-muted: #4A4A4A;
  /* Slabs lean by skewing the whole element, so text and glyphs lean with it. */
  --p-skew: skewX(-11deg);
}

html, body { height: 100%; overflow: hidden; background: var(--water); }
.am-wrap { width: 100%; }
.am-art { position: fixed !important; inset: 0; }
.am-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.am-btn, .am-jump, .am-menu-toggle, .am-menu-item, .am-close {
  border: 0;
  background: var(--p-black);
  color: var(--p-cream);
  font: 700 15px/1.2 'Space Grotesk', system-ui, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transform: var(--p-skew);
  transition: transform .14s cubic-bezier(.3, 1.6, .5, 1);
}
.am-btn:is(:hover, :focus-visible), .am-jump:is(:hover, :focus-visible), .am-close:is(:hover, :focus-visible),
.am-menu-toggle:is(:hover, :focus-visible, [aria-expanded="true"]) {
  background: var(--p-red); color: #fff; outline: none;
}
.am-btn:disabled { opacity: .45; cursor: default; }
.am-btn:disabled:hover { background: var(--p-black); color: var(--p-cream); }

/* The menu folds into one slab in the top-left corner. Unfolded,
   its items drop below the slab and pop in one after another; the chosen one
   grows and turns red. The list is positioned off the slab, so the nav box
   stays the size of the slab and never covers the map. */
.am-menu { position: fixed; z-index: 60; top: 16px; left: 22px; }
body .cat-nav { opacity: 1; }
.am-menu-toggle { display: grid; place-items: center; width: 64px; height: 50px; }
.am-menu-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }
.am-menu-list {
  position: absolute; left: 0; top: calc(100% + 10px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  visibility: hidden; opacity: 0;
  transition: opacity .08s linear, visibility 0s linear .08s;
}
.am-menu.is-open .am-menu-list { visibility: visible; opacity: 1; transition: none; }
.am-menu-item {
  padding: 12px 30px 12px 22px; font-size: 17px; letter-spacing: .01em; white-space: nowrap;
  margin-left: calc(var(--i) * 14px);
  transform-origin: 0 50%;
  box-shadow: 0 0 0 3px var(--p-black);
}
/* backwards, not both: a forwards fill would pin the transform and override
   the chosen item's grown state once the pop ends. */
.am-menu.is-open .am-menu-item {
  animation: am-menu-pop .14s cubic-bezier(.3, 1.6, .5, 1) backwards;
  animation-delay: calc(var(--i) * 40ms);
}
@keyframes am-menu-pop {
  from { opacity: 0; transform: translateX(-36px) scale(.7) rotate(-6deg) var(--p-skew); }
}
/* The page is light-blue water, so the chosen item is red, not blue; a black
   edge keeps a red item apart from the red crowns behind it. */
.am-menu-item:is(:hover, :focus-visible, [aria-expanded="true"]) {
  background: var(--p-red); color: #fff; outline: none;
  transform: translateX(6px) scale(1.1) rotate(-2deg) var(--p-skew);
}

/* The bar's box is wider than its buttons, so only the buttons take the
   pointer; otherwise its empty corner swallows taps on the names behind it. */
.am-zoombar {
  position: fixed; z-index: 30; right: 16px; bottom: 16px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  pointer-events: none;
}
.am-zoombar > * { pointer-events: auto; }
.am-zoom { width: 56px; height: 48px; font-size: 24px; line-height: 1; }
/* An open card takes the right edge, so the zoom steps aside for it. */
body:has(.am-panel.is-open) .am-zoombar { right: calc(min(420px, 100vw - 32px) + 32px); }

/* A borderless illustration; zoom transforms only the artwork. */
.am-art { position: relative; height: 100svh; overflow: hidden; background: var(--water); }
.am-load-error { position: absolute; inset: 0; display: grid; place-content: center; gap: 20px; padding: 24px; text-align: center; }
.am-load-error p { margin: 0; }
.am-art.shoggoth-rig-active .am-shoggoth-face { display: none; }
.am-svg { touch-action: none; }
.am-art canvas, .am-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.am-svg { cursor: default; z-index: 3; }
.am-art canvas { z-index: 1; }

/* Instant baked overview, shown over everything (including the loader) until
   window.load, then faded to reveal the live canvas. object-fit: cover fills
   the viewport; the brief crossfade hides any framing difference from the
   canvas's fit-to-frame overview. Non-interactive once hidden. */
#am-placeholder {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: var(--water);
  z-index: 10000;
  transition: opacity .45s ease;
}
#am-placeholder.is-hidden { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #am-placeholder { transition: none; } }

.am-canopy { cursor: pointer; }
.am-canopy:focus { outline: none; }
.am-canopy.is-hidden, .c-name.is-hidden { display: none; }
.am-canopy .c-hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
  opacity: 0;
  transition: opacity .15s;
}
/* Indicate the topic on its label. A crown outline can cross a foreground
   child because semantic hit targets sit above the complete illustration. */
.am-canopy.is-grouped.is-hit-inactive,
.am-canopy.is-grouped.is-hit-inactive * { pointer-events: none; }
.am-canopy:is(:hover, :focus-visible, .is-sel) .c-name {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .13em;
}
.c-name {
  fill: var(--cream);
  font-family: 'Arsenal', 'EB Garamond', Georgia, serif;
  font-weight: 700;
  text-anchor: middle;
  cursor: pointer;
  stroke-width: 2.5px;
  stroke-linejoin: round;
  paint-order: stroke;
}
.c-name[data-fam="prosaic"] { fill: var(--prosaic-text); stroke: none; }
.c-name[data-fam="fundamental"] { fill: var(--fundamental-text); stroke: none; }
.c-name[data-fam="cooperative"] { fill: var(--bush-text); stroke: none; }
/* A phone name is plain type on its own crown, white on red and ink on white;
   its stroke colour names that crown paint and draws no halo. */
.c-name.is-uniform[data-fam="prosaic"] { stroke: var(--prosaic-shade); }
.c-name.is-uniform[data-fam="fundamental"] { stroke: var(--fundamental-shade); }
.c-name.is-uniform[data-fam="cooperative"] { stroke: var(--cooperative-shade); }
.am-legend { fill: var(--ink); font: italic 400 16px 'EB Garamond', Georgia, serif; text-anchor: middle; }
.am-legend .l-slab { fill: var(--p-red); }
.am-legend .l-title { fill: #FFFFFF; font-style: normal; font-weight: 600; font-size: 28px; letter-spacing: .05em; font-variant: small-caps; }

.am-letter text {
  fill: var(--wood-text);
  stroke: none;
  font-family: 'Handwriting', 'EB Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: .06em;
}
.am-letter.w-open text {
  letter-spacing: .02em;
  font-weight: 500;
  stroke: var(--ink);
  stroke-width: 2.5px;
  stroke-linejoin: round;
  paint-order: stroke;
}
.am-letter[role="button"] { cursor: pointer; }
.am-letter[role="button"]:hover text { text-decoration: underline; }
.am-letter:focus { outline: none; }
.am-letter:focus-visible text { text-decoration: underline; }
.am-letter.is-hidden { display: none; }
.am-branch-hit { fill: none; stroke: transparent; pointer-events: stroke; stroke-linecap: round; }
.am-letter.is-search-match text { fill: var(--wood-text); text-decoration: underline; }
.am-route { fill: none; stroke: var(--neon); stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.am-ground-text {
  fill: var(--wood-text);
  font: italic 400 20px 'EB Garamond', Georgia, serif;
  text-anchor: middle;
}

/* Reading surfaces are cream paper with black ink, one hard border all round. */
.am-panel, .am-sheet, #am-search-popup {
  --ink: var(--p-black); --surface: var(--p-cream); --muted: var(--p-muted); --link: var(--p-black);
  color: var(--ink); background: var(--surface);
}
.am-panel, .am-sheet {
  position: fixed; z-index: 50;
  overflow-y: auto; overscroll-behavior: contain;
  border: 3px solid var(--p-black);
  padding: 20px 24px 26px;
  opacity: 0;
  visibility: hidden;
  transition: transform .18s cubic-bezier(.2, .9, .3, 1), opacity .12s linear, visibility 0s linear .18s;
}
/* The card starts below the magnifier's drawing, which hangs to y 90. */
.am-panel { top: 100px; right: 16px; bottom: 16px; width: min(420px, 100vw - 32px); transform: translateX(40px); }
.am-sheet { top: 84px; bottom: 16px; left: 16px; width: min(480px, 100vw - 32px); transform: translateX(-40px); }
.am-panel.is-open, .am-sheet.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.am-panel h2, .am-sheet h2 { font: 700 clamp(26px, 2.6vw, 32px)/1.1 'Space Grotesk', system-ui, sans-serif; text-transform: uppercase; }
.am-sheet h2 span, .am-panel h2 {
  display: inline-block; padding: 6px 26px 6px 16px; margin-left: -6px;
  background: var(--p-red); color: #fff; transform: var(--p-skew);
}
.am-sheet-body { margin-top: 16px; font-size: 19px; line-height: 1.45; }
.am-sheet-body p + p, .am-source-note p { margin-top: 14px; }
.am-sheet-body .am-source-note { margin-top: 14px; }
.am-close { float: right; width: 44px; height: 44px; margin: -6px -8px 0 12px; font-size: 26px; text-transform: none; }
/* The cross stays at the top of a scrolled card or sheet, so a long read can
   always be closed without scrolling back. */
.am-panel .am-close, .am-sheet .am-close { position: sticky; top: 0; z-index: 1; }
.am-panel:focus { outline: none; }

.am-crumbs { font: 400 14px/1.6 'Space Grotesk', system-ui, sans-serif; color: var(--muted); margin-bottom: 10px; }
.am-crumb {
  all: unset;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.am-crumb:focus-visible { outline: 2px solid var(--ink); }
.am-fam {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font: 500 14px/1.3 'Space Grotesk', system-ui, sans-serif;
  color: var(--muted);
}
.am-swatch { width: 14px; height: 14px; border: 1.5px solid var(--ink); background: var(--shade); }
.am-fam[data-fam="prosaic"]     { --shade: var(--prosaic-shade); }
.am-fam[data-fam="fundamental"] { --shade: var(--fundamental-shade); }
.am-fam[data-fam="cooperative"] { --shade: var(--cooperative-shade); }
.am-panel h3 { margin-top: 18px; font: 700 14px/1.3 'Space Grotesk', system-ui, sans-serif; text-transform: uppercase; }
.am-panel p { margin-top: 4px; }
.am-panel h2 + p { margin-top: 12px; }
.am-reads, .am-agree { list-style: none; }
.am-reads li, .am-agree li { margin-top: 6px; line-height: 1.35; }
.am-agree li { padding-left: 1em; text-indent: -1em; }
.am-agree li::before { content: '\2014\00a0'; }
.am-by { color: var(--muted); }
.am-jumps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.am-jump { font-size: 13px; padding: 8px 20px 8px 16px; }
@media (pointer: coarse) {
  .am-jump { min-height: 44px; }
  .am-crumb { padding-block: 11px; }
}
.am-foldone { margin-top: 20px; }
.am-panel a, .am-sheet a { color: var(--p-black); text-decoration-thickness: 1.5px; }
.am-panel a:hover, .am-sheet a:hover { color: #B8000E; }

.am-shoggoth { cursor: pointer; outline: none; }
.am-shoggoth ellipse { fill: transparent; stroke: transparent; stroke-width: 2; }
.am-shoggoth:hover > ellipse:first-child, .am-shoggoth:focus-visible > ellipse:first-child {
  stroke: var(--ink); stroke-dasharray: 5 6;
}

/* The folded wrap keeps the field's full width, so only its children take
   the pointer; otherwise an invisible strip would swallow drags on the map. */
.am-search-wrap { position: fixed; z-index: 60; top: 16px; right: 16px; width: min(360px, 100vw - 32px); display: flex; justify-content: flex-end; pointer-events: none; }
.am-search-wrap > * { pointer-events: auto; }
.am-search-open {
  flex: none; width: 86px; height: 74px; padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform .14s cubic-bezier(.3, 1.6, .5, 1);
}
.am-search-open img { display: block; width: 86px; height: auto; aspect-ratio: 860 / 734; object-fit: contain; }
/* Over white crowns the cream slab would vanish and leave only the ring;
   a hard, unblurred black offset keeps the whole drawing's outline. */
.am-search-open img { filter: drop-shadow(3px 3px 0 var(--p-black)); }
.am-search-open:is(:hover, :focus-visible) { outline: none; transform: scale(1.08) rotate(-3deg); }
.am-search-wrap.is-open .am-search-open { display: none; }
.am-search-wrap:not(.is-open) .am-search { flex: 0 0 2px; overflow: hidden; opacity: 0; padding: 0; transform: none; }
.am-search { flex: 1; }
.am-search { display: flex; background: var(--p-cream); transform: var(--p-skew); padding-left: 10px; }
.am-search:focus-within { background: #fff; }
#am-agenda { width: 100%; min-width: 0; border: 0; outline: none; padding: 12px 10px; background: transparent; color: var(--p-black); font: 600 16px/1.3 'Space Grotesk', sans-serif; text-transform: uppercase; }
#am-agenda::placeholder { color: var(--p-muted); opacity: 1; }
#am-search-toggle, #am-search-fold { flex: 0 0 48px; min-height: 46px; border: 0; background: var(--p-black); color: var(--p-cream); cursor: pointer; font: 22px/1 Georgia, serif; }
#am-search-fold { margin-left: 4px; font: 700 28px/1 'Space Grotesk', system-ui, sans-serif; }
:is(#am-search-toggle, #am-search-fold):is(:hover, :focus-visible) { background: var(--p-red); color: #fff; outline: none; }
#am-search-toggle[aria-expanded="true"] { transform: rotate(180deg); }
#am-search-popup { position: fixed; inset: auto; margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; border: 3px solid var(--p-black); }
#am-search-status { padding: 10px 12px; border-bottom: 2px solid var(--p-black); font: 13px/1.4 'Space Grotesk', sans-serif; color: var(--muted); }
.am-search-option { display: block; width: 100%; min-height: 56px; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid rgb(11 11 11 / .18); background: transparent; color: var(--p-black); cursor: pointer; font: 600 16px/1.4 'Space Grotesk', sans-serif; overflow-wrap: anywhere; }
.am-search-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.am-search-option[aria-selected="true"], .am-search-option:hover { background: var(--p-red); color: #fff; }
.am-search-option[aria-selected="true"] small, .am-search-option:hover small { color: #fff; }
.am-search-option mark { padding: 0; background: var(--p-black); color: var(--p-cream); }
.am-canopy.is-search-match .c-name { text-decoration: underline; }

/* A wider screen shows the whole poster with a band below it; zoom runs
   along that band so it covers the ground, not the crowns. The sheet starts
   right of the unfolded menu so the chosen item stays in view beside it. */
@media (min-width: 701px) {
  /* Here the controls sit on the black ground band, where black slabs vanish. */
  .am-zoombar .am-btn { background: var(--p-red); color: #fff; }
  .am-zoombar .am-btn:is(:hover, :focus-visible) { background: var(--p-blue); color: var(--p-black); }
  .am-zoombar .am-btn:disabled:hover { background: var(--p-red); color: #fff; }
  .am-zoombar { flex-direction: row; align-items: flex-end; bottom: 18px; }
  /* A sheet stays clear of the zoom row and the corner cat. While the menu is
     unfolded the sheet sits right of it, below the slab and left of the
     magnifier, and the chosen red slab is its title. */
  .am-sheet { bottom: 82px; }
  body:has(.am-menu.is-open) .am-sheet { top: 64px; left: 320px; width: min(480px, 100vw - 438px); }
  body:has(.am-menu.is-open) .am-sheet h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Too narrow or too short for a card or sheet and the zoom row side by side. */
@media (min-width: 701px) and (max-width: 900px), (min-width: 701px) and (max-height: 500px) {
  body:has(.am-panel.is-open, .am-sheet.is-open) .am-zoombar { display: none; }
}
@media (min-width: 701px) and (max-height: 500px) {
  body:has(.am-menu.is-open) .am-sheet { bottom: 16px; }
}
@media (max-width: 700px) {
  body:has(.am-panel.is-open, .am-sheet.is-open) :is(.am-menu, .am-zoombar, .cat-nav) { display: none; }
  body:has(.am-panel.is-open) .am-zoombar { right: 16px; }
  /* The unfolded field starts right of the menu slab, never over it. */
  .am-search-wrap { top: 16px; right: 16px; width: calc(100vw - 104px); }
  /* Over the black ground band a black slab needs a cream edge to show. */
  .am-zoombar .am-btn { box-shadow: 0 0 0 2px var(--p-cream); }
  .am-menu-toggle { width: 56px; height: 44px; }
  .am-menu-item { min-height: 44px; padding: 10px 24px 10px 18px; font-size: 14px; margin-left: calc(var(--i) * 8px); }
  .am-zoom { width: 48px; height: 44px; }
  .am-panel, .am-sheet {
    top: auto; left: 0; right: 0; bottom: 0; width: auto;
    max-height: 72vh;
    border-width: 3px 0 0;
    transform: translateY(40px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .am-panel, .am-sheet, .am-btn, .am-jump, .am-menu-toggle, .am-menu-item, .am-close, .am-menu-list { transition: none; }
  .am-menu.is-open .am-menu-item { animation: none; }
  .am-menu-item:is(:hover, :focus-visible, [aria-expanded="true"]) { transform: var(--p-skew); }
}

.am-canopy.is-quiet-label .c-name { visibility: hidden; }
.am-canopy.is-quiet-label:hover .c-name,
.am-canopy.is-quiet-label:focus-visible .c-name { visibility: visible; }

/* The draft notice is one leaning band across the map. The band leans by
   skewY and its body skews back, so the type stays level; the band's bottom
   padding keeps the button clear of the lower red rule. */
.am-draft {
  position: fixed; inset: 0; z-index: 80;
  display: grid; align-items: center;
  background: rgb(11 11 11 / .45);
}
.am-draft[hidden] { display: none; }
.am-draft-band {
  background: var(--p-black); color: var(--p-cream);
  border-block: 6px solid var(--p-red);
  transform: skewY(-4deg);
  padding: 44px 24px 64px;
}
.am-draft-body { transform: skewY(4deg); max-width: 560px; margin: 0 auto; }
.am-draft h2 {
  margin: 0 0 14px; font: 700 clamp(28px, 6vw, 40px)/1.05 'Space Grotesk', system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: -.01em;
}
.am-draft p { margin: 0 0 30px; font: 700 18px/1.5 'Arsenal', system-ui, sans-serif; color: #D8D8D4; }
/* Reading text is Arsenal set 15% wider: the face has no width axis, so each
   block is laid out in a box 1/1.15 as wide and scaled back out to full width.
   A block given a fixed width of its own would overflow by the same 15%. */
.am-panel :is(p, li), .am-sheet-body :is(p, li), .am-draft p, .am-apple-tip > :not(.am-apple-open) {
  width: calc(100% / 1.15);
  transform: scaleX(1.15);
  transform-origin: 0 0;
}
.am-draft-go { background: var(--p-red); color: #fff; font-size: 22px; padding: 18px 36px; letter-spacing: .04em; }
.am-draft-go:hover { background: var(--p-cream); color: var(--p-black); }
/* The button takes focus on open, so focus is a ring, not a colour change. */
.am-draft-go:focus-visible { background: var(--p-red); color: #fff; box-shadow: 0 0 0 3px var(--p-cream); }

/* Apples link agendas to lists of their open problems. The traced art has no
   colours of its own: a white crown carries a red apple, a red crown a cream
   one, and both keep a black outline and stem. The swing lives on the inner
   group because a CSS transform would replace the placing transform; its
   origin is the group's own, which the script puts at the stem tip. */
.am-apple { --apple-body: var(--p-red); --apple-ink: var(--p-black); cursor: pointer; outline: none; }
.am-apple[data-crown="red"] { --apple-body: var(--p-cream); }
.am-apple .apple-body { fill: var(--apple-body); }
.am-apple .apple-ink { fill: var(--apple-ink); }
.am-apple .apple-hit { fill: transparent; }
.am-apple .apple-shadow { fill: var(--p-black); opacity: .2; pointer-events: none; }
.am-apple .apple-art {
  transform-box: view-box; transform-origin: 0 0;
  transition: transform .14s cubic-bezier(.3, 1.6, .5, 1);
}
.am-apple:is(:hover, :focus-visible, .is-shown) .apple-art { transform: scale(1.3) rotate(-8deg); }

.am-apple-tip {
  position: fixed; z-index: 65; left: 0; top: 0;
  width: min(300px, 100vw - 16px);
  padding: 10px 14px 12px;
  background: var(--p-cream); color: var(--p-black);
  border: 3px solid var(--p-black);
  box-shadow: 4px 4px 0 var(--p-black);
  font: 400 15px/1.35 'Arsenal', system-ui, sans-serif;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.am-apple-tip[hidden] { display: none; }
.am-apple-title { font-weight: 700; font-size: 15px; }
.am-apple-by { margin-top: 2px; color: var(--p-muted); font-size: 13px; }
.am-apple-line { margin-top: 6px; }
.am-apple-open {
  display: inline-block; margin-top: 8px; padding: 5px 14px 5px 10px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--p-black); color: var(--p-cream); text-decoration: none;
  font-weight: 700; font-size: 13px; text-transform: uppercase; transform: var(--p-skew);
}
.am-apple-open:is(:hover, :focus-visible) { background: var(--p-red); color: #fff; outline: none; }
@media (prefers-reduced-motion: reduce) {
  .am-apple .apple-art { transition: none; }
}
