/* ==========================================================================
   Karleigh.docx — Components
   The things you can pick up: folders, notes, photographs, windows, tabs.
   ========================================================================== */

/* ==========================================================================
   Table of Contents — Word's TOC field
   Dot leaders drawn with a repeating gradient so they stay crisp and never
   wrap. Each row is a real link, so this is the document's navigation.
   ========================================================================== */
.toc {
  margin: 34px 0 4px;
  padding: 18px 20px 14px;
  border: 1px solid var(--paper-edge);
  background: linear-gradient(180deg, rgba(231,237,245,0.55), transparent 60%);
}
.toc__head {
  margin: 0 0 12px;
  font: bold 15px/1 var(--font-head);
  letter-spacing: 0.01em;
  color: var(--word-heading);
}
.toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }

.toc__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 6px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 2px;
}
.toc__row:hover,
.toc__row:focus-visible {
  background: var(--select);
  color: #fff;
  outline: none;
}
.toc__row:hover .toc__dots,
.toc__row:focus-visible .toc__dots { opacity: 0.55; }
.toc__row:hover .toc__num,
.toc__row:focus-visible .toc__num { color: #fff; }

.toc__n {
  flex: none;
  width: 22px;
  font: bold 11px/1.6 var(--font-goth);
  color: var(--ink-ghost);
}
.toc__row:hover .toc__n { color: rgba(255,255,255,0.8); }

.toc__label {
  flex: none;
  font: 15px/1.5 var(--font-doc);
  max-width: calc(100% - 96px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* the dot leader */
.toc__dots {
  flex: 1;
  min-width: 18px;
  height: 1em;
  background-image: radial-gradient(circle, currentColor 1px, transparent 1.2px);
  background-size: 5px 5px;
  background-position: 0 bottom 4px;
  background-repeat: repeat-x;
  opacity: 0.4;
}
.toc__num {
  flex: none;
  font: 13px/1.5 var(--font-doc);
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
/* the one-line description that unfurls on hover — the "dynamic" bit */
.toc__desc {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding-left: 30px;
  font: var(--t-caption)/1.5 var(--font-ui);
  color: var(--ink-faint);
  transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease);
  opacity: 0;
}
.toc__item:hover .toc__desc,
.toc__item:focus-within .toc__desc { max-height: 3em; opacity: 1; }

.toc__note {
  margin: 12px 0 0;
  font: var(--t-caption)/1.5 var(--font-ui);
  color: var(--ink-faint);
}

@media (max-width: 560px) {
  .toc { padding: 14px 12px 12px; }
  .toc__label { max-width: calc(100% - 74px); font-size: 14px; }
  .toc__desc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toc__desc { transition: none; }
}

/* ==========================================================================
   Desktop folders — the portfolio index
   ========================================================================== */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 22px 10px;
  margin: 26px 0 8px;
}
.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 4px 10px;
  background: none;
  border: 1px solid transparent;
  font: var(--t-ui)/1.35 var(--font-ui);
  color: var(--ink);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease);
}
.folder__icon { position: relative; width: 48px; height: 40px; flex: none; }
.folder__icon svg { display: block; width: 100%; height: 100%; }
.folder__name {
  padding: 1px 5px;
  border-radius: 1px;
  max-width: 100%;
}

.folder:hover { transform: translateY(-2px); }
.folder:hover .folder__icon { filter: brightness(1.05) drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.folder:focus-visible { outline: 1px dotted var(--ink); }
/* single click selects, exactly like a desktop */
.folder[aria-selected="true"] .folder__name { background: var(--select); color: #fff; }
/* Windows tints a selected icon blue rather than dimming it */
.folder[aria-selected="true"] .folder__icon {
  filter: brightness(0.86) saturate(0.55) hue-rotate(178deg);
}

/* the "double-click to open" hint, shown once */
.folder-hint {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 0 0;
  font: var(--t-caption)/1.4 var(--font-ui);
  color: var(--ink-faint);
}

/* ==========================================================================
   Sticky notes
   ========================================================================== */
.sticky {
  position: relative;
  width: 208px;
  padding: 26px 18px 22px;   /* top padding leaves room for the paper clip */
  background: var(--sticky-yellow);
  background-image: linear-gradient(160deg, rgba(255,255,255,0.5), transparent 46%);
  font: 14px/1.6 var(--font-hand);
  color: #3b3524;
  box-shadow: 1px 2px 0 rgba(0,0,0,0.06), 3px 6px 14px rgba(0,0,0,0.16);
  transform: rotate(var(--tilt, -1.6deg));
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sticky--pink { background-color: var(--sticky-pink); }
.sticky--mint { background-color: var(--sticky-mint); }
.sticky--blue { background-color: var(--sticky-blue); }
.sticky h4,
.sticky__head {
  margin: 0 0 8px;
  font: bold 13px/1 var(--font-ui);
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sticky ul { margin: 0; padding: 0; list-style: none; }
.sticky li { position: relative; padding-left: 14px; margin-bottom: 3px; }
.sticky li::before { content: "–"; position: absolute; left: 0; }
/* the curled bottom corner */
.sticky::after {
  content: "";
  position: absolute; right: 0; bottom: 0;
  border-width: 0 0 16px 16px;
  border-style: solid;
  border-color: transparent transparent rgba(0,0,0,0.10) transparent;
}
.sticky[data-draggable] { cursor: grab; }
.sticky[data-draggable]:active { cursor: grabbing; }
.sticky.is-lifted {
  box-shadow: 2px 4px 0 rgba(0,0,0,0.07), 10px 18px 34px rgba(0,0,0,0.26);
  transform: rotate(var(--tilt, -1.6deg)) scale(1.028);
  z-index: 40;
}

/* The hero note is stuck onto the sheet, half in the right margin — which is
   where you actually put a sticky note. It may only hang into the margin while
   a margin exists; below 901px the sheet fills the viewport, so it sits inline
   instead of pushing the page sideways. */
.hero-sticky { margin: 26px 0 0; }
@media (min-width: 901px) {
  .hero-sticky {
    position: absolute;
    right: calc(var(--page-pad-x) * 0.08);   /* on the sheet, not off it */
    top: calc(var(--page-pad-y) + 14px);   /* beside the masthead, clear of the text */
    z-index: 8;
    margin: 0;
  }
}
@media (max-width: 900px) {
  .hero-sticky .sticky { width: 100%; max-width: 260px; }
}

/* ==========================================================================
   Paper clips, staples, tape
   ========================================================================== */
.clip {
  position: absolute;
  top: -24px; left: 22px;
  width: 24px; height: 50px;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(1px 2px 1px rgba(0,0,0,0.28));
}
.tape {
  position: absolute;
  width: 74px; height: 25px;
  background: linear-gradient(160deg,
    rgba(240, 234, 210, 0.72), rgba(228, 219, 190, 0.58));
  border-left: 1px solid rgba(255,255,255,0.5);
  border-right: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.14);
  z-index: 6;
  pointer-events: none;
  /* torn ends */
  clip-path: polygon(0 8%, 6% 0, 94% 4%, 100% 0, 100% 92%, 93% 100%, 7% 96%, 0 100%);
}
.tape--tl { top: -11px; left: -16px; transform: rotate(-32deg); }
.tape--tr { top: -11px; right: -16px; transform: rotate(31deg); }
.tape--bl { bottom: -11px; left: -16px; transform: rotate(29deg); }
.tape--br { bottom: -11px; right: -16px; transform: rotate(-30deg); }

.staple {
  position: absolute;
  top: 10px; left: 12px;
  width: 22px; height: 3px;
  background: linear-gradient(180deg, #cfd2d6, #8b9096);
  box-shadow: 0 1px 1px rgba(0,0,0,0.3),
              -9px 5px 0 -1px #9aa0a6, 9px 5px 0 -1px #9aa0a6;
  transform: rotate(-38deg);
  z-index: 6;
}

/* ==========================================================================
   Photographs — scanned, taped, slightly off-square
   ========================================================================== */
.photo {
  position: relative;
  display: inline-block;
  padding: 9px 9px 34px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #dcdcdc, 0 1px 2px rgba(0,0,0,0.16), 0 6px 18px rgba(0,0,0,0.18);
  transform: rotate(var(--tilt, -2deg));
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  max-width: 100%;
}
.photo img,
.photo .photo__ph {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(150deg, var(--glass-pale), var(--emerald-soft));
  filter: saturate(0.92) contrast(1.03);
}
.photo .photo__ph {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  font: var(--t-meta)/1.5 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 10px;
}
.photo figcaption {
  position: absolute;
  left: 12px; right: 12px; bottom: 9px;
  font: 12px/1.3 var(--font-hand);
  color: var(--ink-soft);
}
.photo:hover { transform: rotate(calc(var(--tilt, -2deg) * 0.3)) translateY(-3px); }

/* A photograph set into the text, the way a magazine runs one — copy wraps
   past it and then reclaims the full measure underneath. */
.photo--right {
  float: right;
  width: 212px;
  margin: 6px -14px 20px 30px;
}
.photo--left {
  float: left;
  width: 212px;
  margin: 6px 30px 20px -14px;
}
@media (max-width: 620px) {
  .photo--right, .photo--left {
    float: none;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 24px;
    display: block;
  }
}

/* ==========================================================================
   Floating windows & dialogs
   ========================================================================== */
.win-layer {
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
}
.win-scrim {
  position: fixed; inset: 0;
  background: rgba(18, 16, 12, 0.34);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.win-scrim.is-shown { opacity: 1; pointer-events: auto; }

.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 80px);
  background: var(--chrome);
  border: 1px solid var(--chrome-dark);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2), 8px 14px 42px rgba(0,0,0,0.4);
  pointer-events: auto;
  animation: win-open var(--dur) var(--ease-win);
  transform-origin: center;
}
@keyframes win-open {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.win.is-closing { animation: win-close 160ms var(--ease) forwards; }
@keyframes win-close {
  to { opacity: 0; transform: scale(0.96); }
}

.win__bar {
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 3px 0 6px;
  background-image:
    linear-gradient(90deg, transparent 55%, rgba(120,180,255,0.3) 100%),
    linear-gradient(180deg, var(--title-b), var(--title-a) 12%, var(--title-a) 64%, var(--title-b));
  color: #fff;
  font: bold 11.5px/1 var(--font-ui);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
  cursor: grab;
  flex: none;
}
.win__bar:active { cursor: grabbing; }
.win__bar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win--inactive .win__bar {
  background-image: linear-gradient(180deg, #9a9a94, #7e7e78);
}

.win__body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: var(--paper-fresh);
  color: var(--ink);
}
.win__pad { padding: 30px 38px 36px; }
@media (max-width: 560px) { .win__pad { padding: 22px 20px 26px; } }

/* the little menu strip some windows carry */
.win__menu {
  display: flex; gap: 2px;
  padding: 2px 4px;
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-dim);
  font: var(--t-ui)/1 var(--font-ui);
  flex: none;
}
.win__menu span { padding: 4px 7px; color: var(--ink-soft); }

/* --- A modal dialog (System message / Save changes) ----------------------- */
.dialog {
  width: 392px;
  background: var(--chrome);
}
.dialog__body {
  display: flex; gap: 18px;
  padding: 24px 22px 18px;
  font: 12px/1.55 var(--font-ui);
  color: var(--ink);
}
.dialog__body h3 { margin: 0 0 8px; font: bold 13px/1.4 var(--font-ui); }
.dialog__icon { flex: none; }
.dialog__buttons {
  display: flex; justify-content: center; gap: 10px;
  padding: 6px 22px 20px;
}
.btn-win {
  min-width: 82px;
  height: 25px;
  padding: 0 14px;
  background: var(--chrome);
  border: 0;
  font: 12px/1 var(--font-ui);
  color: var(--ink);
  cursor: pointer;
  box-shadow:
    inset 1px 1px 0 0 var(--chrome-lit),
    inset -1px -1px 0 0 var(--chrome-dark),
    inset 2px 2px 0 0 var(--chrome-face),
    inset -2px -2px 0 0 var(--chrome-dim);
}
.btn-win:active {
  box-shadow: inset 1px 1px 0 0 var(--chrome-dark), inset -1px -1px 0 0 var(--chrome-lit);
  padding: 1px 13px 0 15px;
}
.btn-win:focus-visible { outline: 1px dotted var(--ink); outline-offset: -4px; }
.btn-win--default { box-shadow:
    inset 0 0 0 1px var(--ink),
    inset 2px 2px 0 0 var(--chrome-lit),
    inset -2px -2px 0 0 var(--chrome-dark),
    inset 3px 3px 0 0 var(--chrome-face),
    inset -3px -3px 0 0 var(--chrome-dim); }

/* ==========================================================================
   Project documents (opened from a folder)
   ========================================================================== */
.proj__head { margin-bottom: 22px; }
.proj__kicker {
  font: var(--t-meta)/1 var(--font-ui);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brick); margin-bottom: 10px;
}
.proj__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 30px; font-weight: bold; line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--word-heading);
}
.proj__deck { font-size: 18px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* the "document properties" table Word shows under File ▸ Properties */
.props {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font: var(--t-caption)/1.5 var(--font-ui);
}
.props th, .props td {
  padding: 7px 10px;
  border: 1px solid var(--paper-edge);
  text-align: left;
  vertical-align: top;
}
.props th {
  width: 132px;
  background: rgba(82, 117, 99, 0.09);
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--t-meta);
  color: var(--emerald-deep);
}

.proj__body h4 {
  margin: 26px 0 8px;
  font: bold var(--t-ui)/1 var(--font-ui);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
}
.proj__body p { margin: 0 0 1em; }
.proj__body ul { margin: 0 0 1.2em; padding-left: 20px; }
.proj__body li { margin-bottom: 5px; }

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1px;
  margin: 22px 0;
  background: var(--paper-edge);
  border: 1px solid var(--paper-edge);
}
.results div { background: var(--paper-fresh); padding: 16px 14px; }
.results b {
  display: block;
  font-family: var(--font-slab);
  font-size: 27px; font-weight: bold; line-height: 1;
  color: var(--word-heading);
  margin-bottom: 5px;
}
.results span { font: var(--t-meta)/1.4 var(--font-ui); letter-spacing: 0.1em;
                text-transform: uppercase; color: var(--ink-faint); }

/* ==========================================================================
   The writing archive — a file listing, not a blog roll
   ========================================================================== */
.archive {
  border: 1px solid var(--paper-edge);
  background: var(--paper-fresh);
  margin: 22px 0;
}
.archive__head,
.archive__row {
  display: grid;
  grid-template-columns: 26px 1fr 118px 78px 92px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font: var(--t-ui)/1 var(--font-ui);
}
.archive__head {
  height: 25px;
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-dim);
  font-weight: bold;
  color: var(--ink-soft);
}
.archive__head span {
  box-shadow: inset -1px 0 0 var(--chrome-dim);
  height: 100%; display: flex; align-items: center; padding-right: 8px;
}
.archive__head span:last-child { box-shadow: none; }

.archive__row {
  width: 100%;
  height: 34px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.055);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.archive__row:nth-child(even) { background: rgba(82, 117, 99, 0.045); }
.archive__row:hover { background: var(--select-soft); }
.archive__row[aria-selected="true"] { background: var(--select); color: #fff; }
.archive__row .name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-doc); font-size: 15px;
}
.archive__row .kind,
.archive__row .size,
.archive__row .date { font-size: var(--t-meta); color: var(--ink-faint); }
.archive__row[aria-selected="true"] .kind,
.archive__row[aria-selected="true"] .size,
.archive__row[aria-selected="true"] .date { color: rgba(255,255,255,0.82); }
.archive__row svg { flex: none; }

@media (max-width: 720px) {
  .archive__head, .archive__row { grid-template-columns: 22px 1fr 76px; }
  .archive__head span:nth-child(3),
  .archive__head span:nth-child(4),
  .archive__row .kind, .archive__row .size { display: none; }
}

/* the reading view an essay opens into */
.reader { font-family: var(--font-doc); font-size: 17px; line-height: 1.7; }
.reader h3 {
  font-family: var(--font-head); font-size: 26px; font-weight: bold;
  line-height: 1.18; margin: 0 0 8px; color: var(--word-heading);
}
.reader .byline {
  font: var(--t-meta)/1 var(--font-ui);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 16px; margin-bottom: 22px;
  border-bottom: 1px solid var(--paper-edge);
}
/* An answering poem — set in the margin's voice, not the author's. */
.reply {
  margin: 26px 0 0;
  padding: 20px 24px;
  background: rgba(82, 117, 99, 0.07);
  border-left: 3px solid var(--emerald);
}
.reply h4 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: bold;
  color: var(--word-heading);
}
.reply p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}
.reply cite {
  display: block;
  margin-top: 14px;
  font: var(--t-meta)/1 var(--font-ui);
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.reader .reply p:first-of-type::first-letter { float: none; font-size: inherit;
  line-height: inherit; font-weight: inherit; padding: 0; color: inherit; }

.reader p.opener::first-letter {
  float: left; font-family: var(--font-doc); font-size: 3.2em;
  line-height: 0.88; font-weight: normal; padding: 0.02em 0.06em 0 0;
  color: var(--ink);
}

/* ==========================================================================
   Clippy — the Office Assistant, Word 97 edition
   The balloon is the real one: pale yellow, thin grey border, an observation,
   a question, bullet-dot options, a rule, then the "don't show me" checkbox.
   ========================================================================== */
.clippy {
  position: fixed;
  right: 20px;
  bottom: 142px;
  z-index: 560;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.clippy[hidden] { display: none; }
.clippy.is-shown { opacity: 1; transform: none; pointer-events: auto; }

.clippy__balloon {
  position: relative;
  width: 246px;
  padding: 13px 15px 12px;
  background: #ffffcc;
  border: 1px solid #9a9a7a;
  border-radius: 9px;
  font: 12.5px/1.45 var(--font-ui);
  color: #1f1f1a;
  box-shadow: 2px 3px 6px rgba(0,0,0,0.28);
}
/* the tail, pointing down-right at Clippy */
.clippy__balloon::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -11px;
  width: 16px;
  height: 12px;
  background: #ffffcc;
  border-right: 1px solid #9a9a7a;
  border-bottom: 1px solid #9a9a7a;
  transform: skewX(-22deg);
  border-radius: 0 0 3px 0;
}

.clippy__line { margin: 0 0 8px; }
.clippy__ask  { margin: 0 0 8px; }

.clippy__opts { margin: 0; padding: 0; list-style: none; }
.clippy__opts li { margin-bottom: 7px; }
.clippy__opt {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: #12308a;
  text-align: left;
  cursor: pointer;
}
/* the blue bullet dot Word used for assistant choices */
.clippy__opt::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  margin-top: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #7fb3f0, #1e57b8 70%);
  box-shadow: 0 0 0 1px #0d3a86;
}
.clippy__opt:hover, .clippy__opt:focus-visible { text-decoration: underline; outline: none; }
.clippy__opt:focus-visible::before { box-shadow: 0 0 0 2px #0d3a86; }

/* the tour's "3 of 9" counter */
.clippy__step {
  margin: 8px 0 0;
  font: bold 10px var(--font-goth);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a7a52;
}
.clippy__step[hidden] { display: none; }

/* a small nudge each time he speaks, so a new line is noticeable */
.clippy.is-pop .clippy__art { animation: clip-pop 420ms var(--ease); }
@keyframes clip-pop {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-7px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

.clippy__rule {
  border: 0;
  border-top: 1px solid #cfcf9e;
  margin: 9px 0 8px;
}
.clippy__never {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4a4a3a;
  cursor: pointer;
}
.clippy__never input { margin: 0; }

.clippy__cancel {
  display: block;
  margin: 9px 0 0 auto;
  padding: 3px 14px;
  background: var(--chrome);
  border: 0;
  font: 11.5px var(--font-ui);
  color: var(--ink);
  cursor: pointer;
  box-shadow:
    inset 1px 1px 0 0 var(--chrome-lit),
    inset -1px -1px 0 0 var(--chrome-dark),
    inset 2px 2px 0 0 var(--chrome-face),
    inset -2px -2px 0 0 var(--chrome-dim);
}
.clippy__cancel:active {
  box-shadow: inset 1px 1px 0 0 var(--chrome-dark), inset -1px -1px 0 0 var(--chrome-lit);
}
.clippy__cancel:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }

/* --- the assistant himself ------------------------------------------------ */
.clippy__art {
  width: 104px;
  height: 115px;
  flex: none;
  filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.3));
}
.clippy__body { animation: clip-sway 5.5s ease-in-out infinite; transform-origin: 40px 64px; }
@keyframes clip-sway {
  0%, 88%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-3.5deg); }
  96% { transform: rotate(2.5deg); }
}
.clippy__eyes { animation: clip-blink 6.2s infinite; transform-origin: 43px 37px; }
@keyframes clip-blink { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(0.08); } }
.clippy__brows { animation: clip-brow 5.5s ease-in-out infinite; }
@keyframes clip-brow {
  0%, 86%, 100% { transform: translateY(0); }
  90%, 94% { transform: translateY(-2px); }
}

@media (max-width: 620px) {
  .clippy { right: 8px; bottom: 118px; gap: 0; }
  .clippy__balloon { width: 196px; font-size: 12px; }
  .clippy__art { width: 76px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .clippy__body, .clippy__eyes, .clippy__brows { animation: none; }
  .clippy.is-pop .clippy__art { animation: none; }
}

/* ==========================================================================
   Toasts — the autosave / notification tray
   ========================================================================== */
.toast-stack {
  position: fixed;
  right: 10px; bottom: 32px;
  z-index: 580;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
.toast {
  width: 244px;
  max-width: calc(100vw - 22px);
  padding: 11px 13px;
  background: var(--chrome-face);
  border: 1px solid var(--chrome-dark);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2), 4px 8px 18px rgba(0,0,0,0.22);
  font: 11.5px/1.5 var(--font-ui);
  color: var(--ink);
  animation: toast-in 300ms var(--ease-win);
}
.toast.is-out { animation: toast-out 260ms var(--ease) forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateX(24px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
.toast b { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 11.5px; }
.toast p { margin: 0; color: var(--ink-soft); }

/* ==========================================================================
   WordArt
   The styling all lives in js/wordart.js, because real WordArt is SVG —
   gradients, offset shadow layers and a convolve-matrix extrude that CSS
   simply cannot draw. These rules only position the result.
   ========================================================================== */
.wordart { display: inline-block; line-height: 0; max-width: 100%; }
/* clipped, so a filter or skewed shadow can never spill past the sheet */
.wordart .wa-svg { display: block; width: 100%; height: auto; overflow: hidden; }

/* Gallery swatches */
.wagal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 4px 0 0; }
.wagal button {
  aspect-ratio: 3 / 2;
  display: grid; place-items: center;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--chrome-dim);
  cursor: pointer; overflow: hidden;
}
.wagal button:hover { border-color: var(--select); }
.wagal button[aria-pressed="true"] { outline: 2px solid var(--select); outline-offset: -2px; }
.wagal button:focus-visible { outline: 2px solid var(--select); outline-offset: -2px; }
.wagal .wordart { width: 100%; }
.wagal .wa-svg { max-width: none !important; }

/* ==========================================================================
   Small print helpers
   ========================================================================== */
.stack  { display: flex; flex-direction: column; gap: 18px; }
.row    { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.row--tight { gap: 12px; }
.grow   { flex: 1; min-width: 0; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }

.link-doc {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-doc:visited { color: #6b3fa0; }
.link-doc:hover { background: var(--highlighter); color: var(--ink); }

/* a chip that looks like a Word field code */
.field {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(47, 94, 168, 0.13);
  font: var(--t-meta)/1.6 var(--font-ui);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ==========================================================================
   Figures — Word's Insert ▸ Picture, with a numbered caption underneath
   ========================================================================== */
.figgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 18px;
  margin: 16px 0 24px;
}
.figgrid--three { grid-template-columns: repeat(3, 1fr); gap: 16px 14px; }

.fig { margin: 0; }
.fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #b8b8b8;
  background: #fff;
}
.fig--sm img, .fig__ph { aspect-ratio: 4 / 3; object-fit: cover; }
.fig__ph {
  display: grid;
  place-items: center;
  border: 1px dashed #b0b0b0;
  background:
    repeating-linear-gradient(135deg, #f4f4f4 0 8px, #fafafa 8px 16px);
  font: var(--t-meta)/1.4 var(--font-goth);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.fig figcaption {
  margin-top: 6px;
  font: var(--t-caption)/1.45 var(--font-ui);
  color: var(--ink-soft);
}
.fig figcaption b { color: var(--ink); }

@media (max-width: 700px) {
  .figgrid, .figgrid--three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .figgrid, .figgrid--three { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Chart — Word's Insert ▸ Chart, drawn in CSS
   ========================================================================== */
.chart {
  margin: 14px 0 0;
  padding: 16px 18px 14px;
  border: 1px solid #b8b8b8;
  background: #fff;
}
.chart__cap {
  margin: 0 0 14px;
  font: var(--t-caption)/1.45 var(--font-ui);
  color: var(--ink-soft);
}
.chart__cap b { color: var(--ink); }

.chart__plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 190px;
  padding-left: 44px;
  /* the horizontal gridlines Word draws behind the plot area */
  background-image: repeating-linear-gradient(
    180deg, #d8d8d8 0 1px, transparent 1px 25%);
  background-position: left 44px top;
  background-size: calc(100% - 44px) 100%;
  border-bottom: 1px solid #8a8a8a;
}
.chart__rules { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; }
.chart__rules span {
  position: absolute;
  right: 4px;
  transform: translateY(50%);
  font: 9.5px/1 var(--font-ui);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.chart__bar {
  position: relative;
  flex: 1;
  height: 0;
  min-width: 6px;
  background: linear-gradient(180deg, #6d95c9, var(--word-heading));
  border: 1px solid #24406f;
  border-bottom: 0;
  transition: height 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.chart__plot.is-grown .chart__bar { height: var(--h); }
.chart__bar:nth-child(2)  { transition-delay: 40ms; }
.chart__bar:nth-child(3)  { transition-delay: 80ms; }
.chart__bar:nth-child(4)  { transition-delay: 120ms; }
.chart__bar:nth-child(5)  { transition-delay: 160ms; }
.chart__bar:nth-child(6)  { transition-delay: 200ms; }
.chart__bar:nth-child(7)  { transition-delay: 240ms; }
.chart__bar:nth-child(8)  { transition-delay: 280ms; }
.chart__bar:nth-child(9)  { transition-delay: 320ms; }
.chart__bar:nth-child(10) { transition-delay: 360ms; }
.chart__bar:nth-child(11) { transition-delay: 400ms; }
.chart__bar:nth-child(12) { transition-delay: 440ms; }
.chart__bar:nth-child(13) { transition-delay: 480ms; }

.chart__val {
  position: absolute;
  left: 50%; bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 3px;
  font: 9px/1 var(--font-ui);
  color: var(--ink-faint);
  opacity: 0;
  white-space: nowrap;
  transition: opacity var(--dur) var(--ease);
}
.chart__bar:hover .chart__val,
.chart__bar:focus-visible .chart__val { opacity: 1; }

.chart__axis {
  display: flex;
  gap: 5px;
  padding: 5px 0 0 44px;
}
.chart__axis span {
  flex: 1;
  min-width: 6px;
  text-align: center;
  font: 9.5px/1.4 var(--font-ui);
  color: var(--ink-faint);
}
.chart__note {
  margin: 10px 0 0;
  font: var(--t-meta)/1.5 var(--font-ui);
  color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  .chart__bar { transition: none; height: var(--h); }
  .chart__val { opacity: 1; }
}
@media (max-width: 560px) {
  .chart__plot { height: 150px; padding-left: 36px; background-position: left 36px top;
                 background-size: calc(100% - 36px) 100%; }
  .chart__axis { padding-left: 36px; }
  .chart__axis span { font-size: 8px; }
  .chart__rules { width: 32px; }
}

/* ==========================================================================
   "Exhibit A" — the shout-out to the first piece of writing
   ========================================================================== */
.firstpiece {
  margin: 20px 0 24px;
  padding: 16px 18px 14px;
  border-left: 3px solid var(--word-heading-2);
  background: linear-gradient(90deg, rgba(231,237,245,0.6), transparent 70%);
}
.firstpiece__tag {
  margin: 0 0 6px;
  font: bold var(--t-meta)/1 var(--font-goth);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--word-heading-2);
}
.firstpiece__body { margin: 0; font-size: 15.5px; line-height: 1.6; }
.firstpiece__cta { margin: 10px 0 0; }
.firstpiece__open {
  background: none; border: 0; padding: 0;
  font: 15px var(--font-doc);
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.firstpiece__open:hover { background: var(--highlighter); color: var(--ink); }
.firstpiece__open:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }

/* ==========================================================================
   Cover photograph
   The photo replaces the drawn computer beside the masthead. Sized to sit
   level with the opening paragraph, mounted like a print taped to the page.
   ========================================================================== */
.hero-photo {
  flex: none;
  width: 168px;
  margin: 0;
  text-align: center;
}
.hero-photo a { display: block; text-decoration: none; }
.hero-photo picture { display: block; }
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  padding: 6px 6px 5px;
  background: #fff;
  box-shadow: 0 0 0 1px #dcdcdc, 0 1px 3px rgba(0,0,0,0.18), 0 6px 14px rgba(0,0,0,0.14);
  transform: rotate(-1.4deg);
  transition: transform var(--dur) var(--ease);
}
.hero-photo a:hover img,
.hero-photo a:focus-visible img { transform: rotate(0deg) translateY(-2px); }
.hero-photo a:focus-visible img { outline: 2px solid var(--select); outline-offset: 3px; }
.hero-photo figcaption { margin-top: 10px; }
.hero-photo figcaption a { font-size: 14px; }

@media (max-width: 700px) {
  .hero-photo { width: 132px; }
}

/* ==========================================================================
   Work shown inside a project document
   ========================================================================== */
.projgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.projgrid .fig { margin: 0; }
.projgrid img,
.projgrid video {
  display: block;
  width: 100%;
  height: auto;
  background: #f0efe9;
  border: 1px solid var(--paper-edge);
}
.projgrid video { cursor: pointer; }
.projlinks { margin: 0 0 1.2em; padding-left: 20px; }
.projlinks li { margin-bottom: 6px; }

/* In the shareable single-file build the mp4s are swapped for their poster
   frames — 24 MB of video would make a page nobody opens on a phone. This
   marks those stills so nobody mistakes them for a still-only piece. */
.projgrid .fig { position: relative; }
.fig__vid {
  position: absolute;
  left: 8px; bottom: 8px;
  padding: 2px 7px;
  background: rgba(18, 16, 12, 0.78);
  color: #fff;
  font: bold 9px/1.5 var(--font-goth);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ==========================================================================
   Linked document — the chip that opens the long case study
   Word shows a linked file as an icon with its name. One line of the page,
   and the whole write-up opens in its own window rather than in the scroll.
   ========================================================================== */
.linkdoc {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 22px 0 4px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fbfbf8, #f2f0e8);
  border: 1px solid var(--paper-edge);
  border-left: 3px solid var(--word-heading);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.linkdoc:hover,
.linkdoc:focus-visible {
  background: linear-gradient(180deg, #fff, #eef2f8);
  border-color: var(--word-heading);
  outline: none;
}
.linkdoc svg { flex: none; }
.linkdoc span { min-width: 0; }
.linkdoc b {
  display: block;
  font: bold 13px/1.35 var(--font-ui);
  color: var(--word-heading);
}
.linkdoc em {
  display: block;
  font: normal var(--t-caption)/1.45 var(--font-ui);
  font-style: normal;
  color: var(--ink-faint);
}
.linkdoc__go {
  margin-left: auto;
  flex: none;
  font: bold var(--t-caption)/1 var(--font-ui);
  color: var(--word-heading);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .linkdoc { flex-wrap: wrap; gap: 10px; }
  .linkdoc__go { margin-left: 38px; }
}

/* ==========================================================================
   Artwork tiles — the whole tile is the button
   ========================================================================== */
.fig--open {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--paper-edge);
  background: #fff;
  cursor: zoom-in;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.fig--open img { display: block; width: 100%; height: auto; }
.fig--open:hover,
.fig--open:focus-visible {
  border-color: var(--word-heading);
  box-shadow: 0 2px 6px rgba(0,0,0,0.14), 0 10px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  outline: none;
}
.fig--open:focus-visible { outline: 2px solid var(--word-heading); outline-offset: 2px; }

/* the opened view */
.artview { margin: 0; }
.artview img {
  display: block;
  width: 100%;
  height: auto;
  background: #f4f4f0;
}
.artview figcaption {
  margin-top: 10px;
  font: var(--t-caption)/1.45 var(--font-ui);
  color: var(--ink-faint);
}

/* ==========================================================================
   The breakout video — one number, told properly
   ========================================================================== */
.breakout {
  margin: 26px 0 8px;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, #fbfbf8, #f2f0e8);
  border: 1px solid var(--paper-edge);
  border-left: 3px solid var(--brick);
}
.breakout__tag {
  margin: 0 0 10px;
  font: bold var(--t-meta)/1 var(--font-goth);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick);
}
.breakout__jump {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--word-heading);
}
.breakout__jump span {
  font: bold 30px/1 var(--font-slab);
  font-variant-numeric: tabular-nums;
}
.breakout__jump svg { align-self: center; flex: none; }
.breakout__jump em {
  font: normal var(--t-caption)/1 var(--font-ui);
  font-style: normal;
  color: var(--ink-faint);
  align-self: center;
}
.breakout__title {
  margin: 0 0 6px;
  font: bold 17px/1.3 var(--font-doc);
  color: var(--ink);
}
.breakout__note {
  margin: 0 0 10px;
  font: var(--t-caption)/1.55 var(--font-ui);
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ==========================================================================
   A scanned page shown as the piece itself
   ========================================================================== */
.scanfig { margin: 0 0 4px; }
.scanfig[hidden] { display: none; }
.scanfig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--paper-edge);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.10);
}

/* video / still tiles inside a project window */
.fig__frame { position: relative; display: block; line-height: 0; }
.fig__frame img,
.fig__frame video { display: block; width: 100%; height: auto; background: #111; }
.fig__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform var(--dur) var(--ease);
}
.fig__play svg { width: 46px; height: 46px; }
.fig--open:hover .fig__play { transform: scale(1.08); }
.fig__cap {
  display: block;
  padding: 7px 2px 0;
  font: var(--t-caption)/1.4 var(--font-ui);
  color: var(--ink-faint);
  text-align: left;
}

/* ==========================================================================
   Featured writing — one piece lifted out of the archive list
   ========================================================================== */
.feature {
  margin: 20px 0 22px;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, #fbfcfe, #f2f5fa);
  border: 1px solid var(--paper-edge);
  border-left: 3px solid var(--word-heading);
}
.feature__flag {
  margin: 0 0 6px;
  font: bold 10px/1 var(--font-goth);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--word-heading);
}
.feature__title {
  margin: 0 0 6px;
  font: bold 21px/1.25 var(--font-head);
  color: var(--word-heading);
}
.feature__dek { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.feature__note {
  margin: 0 0 14px;
  font: italic 13.5px/1.5 var(--font-book);
  color: var(--ink-soft);
}
.feature__go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }

/* ==========================================================================
   New Message — a working composer on the last page
   It builds a mailto: and hands off to the reader's own mail app. Nothing is
   submitted anywhere, which is both the honest design and the private one.
   ========================================================================== */
.mailwin {
  margin: 26px 0 8px;
  background: var(--chrome);
  padding: 3px;
  box-shadow: inset 1px 1px 0 0 var(--chrome-lit), inset -1px -1px 0 0 var(--chrome-dark),
              inset 2px 2px 0 0 var(--chrome-face), inset -2px -2px 0 0 var(--chrome-dim),
              0 2px 5px rgba(0,0,0,.16), 0 10px 24px rgba(0,0,0,.12);
}
.mailwin__bar {
  display: flex; align-items: center; gap: 7px;
  height: 24px; padding: 0 4px 0 6px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b) 58%, var(--title-c));
  color: #fff; font: bold 11.5px/1 var(--font-ui);
  text-shadow: 1px 1px 0 rgba(0,0,0,.4);
}
.mailwin__bar span:first-of-type { flex: 1; }
.mailwin__btns { display: flex; gap: 2px; }
.mailwin__btns i {
  width: 16px; height: 14px; background: var(--chrome);
  box-shadow: inset 1px 1px 0 0 var(--chrome-lit), inset -1px -1px 0 0 var(--chrome-dark);
}
.mailwin__menu {
  display: flex; gap: 2px; padding: 3px 4px;
  font: var(--t-ui)/1 var(--font-ui); color: var(--ink-soft);
}
.mailwin__menu span { padding: 3px 7px; }

.mailwin__form { background: #fff; padding: 10px 12px 12px; margin-top: 2px;
  box-shadow: inset 1px 1px 0 0 var(--chrome-dim), inset -1px -1px 0 0 var(--chrome-lit); }

.mailrow { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.mailrow label {
  flex: none; width: 62px;
  font: bold var(--t-caption)/1 var(--font-ui); color: var(--ink-soft);
}
.mailrow output {
  flex: 1; padding: 5px 7px;
  font: var(--t-caption)/1.3 var(--font-ui); color: var(--ink);
  background: #f4f4f2;
  box-shadow: inset 1px 1px 0 0 var(--chrome-dim), inset -1px -1px 0 0 var(--chrome-lit);
}
.mailrow input,
.mailwin__form textarea {
  flex: 1; width: 100%; min-width: 0;
  padding: 5px 7px;
  border: 0; background: #fff;
  font: var(--t-caption)/1.45 var(--font-ui); color: var(--ink);
  box-shadow: inset 1px 1px 0 0 var(--chrome-dim), inset -1px -1px 0 0 var(--chrome-lit),
              inset 2px 2px 0 0 var(--chrome-dark);
}
.mailwin__form textarea {
  display: block; margin-top: 4px; resize: vertical;
  font-family: var(--font-doc); font-size: 15px; line-height: 1.55;
}
.mailrow input:focus, .mailwin__form textarea:focus {
  outline: 2px solid var(--select); outline-offset: -2px;
}

.mailwin__foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 10px;
}
.mailwin__foot .btn-win { display: inline-flex; align-items: center; gap: 6px; height: 26px; }
.mailwin__status { flex: 1; min-width: 180px;
  font: var(--t-caption)/1.4 var(--font-ui); color: var(--ink-faint); }
.mailwin__count { font: var(--t-meta)/1 var(--font-ui); color: var(--ink-ghost);
  font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Where else to find her — three buttons
   ========================================================================== */
.linkbtns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 6px;
}
.linkbtn {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfbf9, #f0efea);
  border: 1px solid var(--paper-edge);
  border-left: 3px solid var(--accent, var(--word-heading));
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.linkbtn:hover, .linkbtn:focus-visible {
  background: linear-gradient(180deg, #fff, #eef2f8);
  transform: translateY(-1px);
  outline: none;
}
.linkbtn--linkedin { --accent: #0a66c2; }
.linkbtn--youtube  { --accent: #c4302b; }
.linkbtn--substack { --accent: #ff6719; }
.linkbtn__icon { flex: none; width: 22px; height: 22px; color: var(--accent); }
.linkbtn__icon svg { width: 100%; height: 100%; display: block; }
.linkbtn__text { min-width: 0; }
.linkbtn__text b { display: block; font: bold 13px/1.3 var(--font-ui); }
.linkbtn__text em {
  display: block; font-style: normal;
  font: var(--t-caption)/1.35 var(--font-ui); color: var(--ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 620px) {
  .linkbtns { grid-template-columns: 1fr; }
  .mailrow { flex-wrap: wrap; }
  .mailrow label { width: auto; }
}

/* A field only a bot will fill in. Off-screen rather than display:none,
   because some bots skip anything that is genuinely hidden. */
.mailwin__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   The assistant, minimised
   Dismissing him used to remove him with no way back except a menu nobody
   opens. Now he collapses to this.
   ========================================================================== */
.clippytab {
  position: fixed;
  right: 14px;
  bottom: 34px;
  z-index: 555;
  width: 40px; height: 46px;
  display: grid; place-items: center;
  padding: 4px;
  background: var(--chrome-face);
  border: 1px solid var(--chrome-dark);
  box-shadow: 1px 1px 0 rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.22);
  cursor: pointer;
  opacity: .75;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.clippytab[hidden] { display: none; }
.clippytab:hover, .clippytab:focus-visible { opacity: 1; transform: translateY(-2px); outline: none; }
.clippytab:focus-visible { border-color: var(--select); box-shadow: 0 0 0 2px var(--select); }
.clippytab svg { width: 100%; height: 100%; display: block; }
@media (max-width: 620px) { .clippytab { right: 8px; bottom: 30px; width: 34px; height: 40px; } }
