/* arnar.com extras: "Latest words" card and footer motto. Loaded after style.css. */

/* Footer sign-off, centered on every page */
.foot-motto {
  text-align: center;
  margin: 32px 0 24px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 14px;
  color: #b8ab94; /* matches the old hero motto; change here if needed */
}

/* Hero stage: the canvas, then the "Latest words" card.
   Default (narrow screens, or no JavaScript): the card sits under the portrait.
   js/hero.js adds .quote-wide on wide layouts, and sets --wm-left, --wm-width and --wm-bottom so the
   card lines up with the wordmark and the bottom of the portrait. It adds .quote-in-canvas when the quote
   is drawn as pixels inside the canvas (the ball then scatters it like the rest). */
.hero-stage {
  position: relative;
  container-type: inline-size;
}
.latest {
  --gut: clamp(26px, 3.4cqw, 44px);
  box-sizing: border-box;
  margin: 16px 0 0;
  padding: 30px calc(var(--gut) + 8px) 28px;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.55;
}
.hero-stage.quote-wide .latest {
  position: absolute;
  left: var(--wm-left, 54%);
  width: var(--wm-width, 37.2%);
  bottom: var(--wm-bottom, 2%);
  margin: 0;
  padding: 0 var(--gut);
  font-size: 12px;
  font-size: clamp(11px, 1.15cqw, 15px);
}
.latest-quote::before, .latest-quote::after {
  content: "";
  position: absolute;
  width: clamp(18px, 2.2cqw, 28px);
  aspect-ratio: 10 / 7;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 10 7%22 shape-rendering=%22crispEdges%22 fill=%22%23f6b93b%22%3E%3Crect x=%222%22 y=%220%22 width=%221%22 height=%221%22/%3E%3Crect x=%223%22 y=%220%22 width=%221%22 height=%221%22/%3E%3Crect x=%227%22 y=%220%22 width=%221%22 height=%221%22/%3E%3Crect x=%228%22 y=%220%22 width=%221%22 height=%221%22/%3E%3Crect x=%221%22 y=%221%22 width=%221%22 height=%221%22/%3E%3Crect x=%222%22 y=%221%22 width=%221%22 height=%221%22/%3E%3Crect x=%223%22 y=%221%22 width=%221%22 height=%221%22/%3E%3Crect x=%226%22 y=%221%22 width=%221%22 height=%221%22/%3E%3Crect x=%227%22 y=%221%22 width=%221%22 height=%221%22/%3E%3Crect x=%228%22 y=%221%22 width=%221%22 height=%221%22/%3E%3Crect x=%220%22 y=%222%22 width=%221%22 height=%221%22/%3E%3Crect x=%221%22 y=%222%22 width=%221%22 height=%221%22/%3E%3Crect x=%222%22 y=%222%22 width=%221%22 height=%221%22/%3E%3Crect x=%223%22 y=%222%22 width=%221%22 height=%221%22/%3E%3Crect x=%225%22 y=%222%22 width=%221%22 height=%221%22/%3E%3Crect x=%226%22 y=%222%22 width=%221%22 height=%221%22/%3E%3Crect x=%227%22 y=%222%22 width=%221%22 height=%221%22/%3E%3Crect x=%228%22 y=%222%22 width=%221%22 height=%221%22/%3E%3Crect x=%220%22 y=%223%22 width=%221%22 height=%221%22/%3E%3Crect x=%221%22 y=%223%22 width=%221%22 height=%221%22/%3E%3Crect x=%222%22 y=%223%22 width=%221%22 height=%221%22/%3E%3Crect x=%223%22 y=%223%22 width=%221%22 height=%221%22/%3E%3Crect x=%225%22 y=%223%22 width=%221%22 height=%221%22/%3E%3Crect x=%226%22 y=%223%22 width=%221%22 height=%221%22/%3E%3Crect x=%227%22 y=%223%22 width=%221%22 height=%221%22/%3E%3Crect x=%228%22 y=%223%22 width=%221%22 height=%221%22/%3E%3Crect x=%220%22 y=%224%22 width=%221%22 height=%221%22/%3E%3Crect x=%221%22 y=%224%22 width=%221%22 height=%221%22/%3E%3Crect x=%222%22 y=%224%22 width=%221%22 height=%221%22/%3E%3Crect x=%223%22 y=%224%22 width=%221%22 height=%221%22/%3E%3Crect x=%225%22 y=%224%22 width=%221%22 height=%221%22/%3E%3Crect x=%226%22 y=%224%22 width=%221%22 height=%221%22/%3E%3Crect x=%227%22 y=%224%22 width=%221%22 height=%221%22/%3E%3Crect x=%228%22 y=%224%22 width=%221%22 height=%221%22/%3E%3Crect x=%221%22 y=%225%22 width=%221%22 height=%221%22/%3E%3Crect x=%222%22 y=%225%22 width=%221%22 height=%221%22/%3E%3Crect x=%226%22 y=%225%22 width=%221%22 height=%221%22/%3E%3Crect x=%227%22 y=%225%22 width=%221%22 height=%221%22/%3E%3Crect x=%220%22 y=%226%22 width=%221%22 height=%221%22/%3E%3Crect x=%221%22 y=%226%22 width=%221%22 height=%221%22/%3E%3Crect x=%225%22 y=%226%22 width=%221%22 height=%221%22/%3E%3Crect x=%226%22 y=%226%22 width=%221%22 height=%221%22/%3E%3C/svg%3E") no-repeat center / contain;
}
.latest-quote::before { left: calc(-1 * var(--gut)); top: 0.2em; }
.latest-quote::after  { right: calc(-1 * var(--gut)); bottom: 0.2em; transform: rotate(180deg); }
.latest-quote {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  color: #f7ecd2;
  font-size: 1.08em;
}
.latest-quote p { margin: 0; }
.latest-label {
  margin: 10px 0 0;
  font-size: 0.8em;
  letter-spacing: 0.18em;
  color: #f6b93b;
}
.latest-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8em;
  letter-spacing: 0.18em;
  color: #f6b93b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.latest-link:hover, .latest-link:focus-visible { color: #ffda78; }

/* Quote drawn in the canvas: keep the HTML copy for screen readers only */
.hero-stage.quote-in-canvas .latest-quote {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero-stage.quote-in-canvas .latest-quote::before,
.hero-stage.quote-in-canvas .latest-quote::after { display: none; }

/* Quick links in the header: Words, Play and Stories as small borderless pixel icons.
   A line shows under an icon on hover and keyboard focus only.
   Hidden on narrow screens, where the menu already links to the same pages. */
.quick { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.quick a { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 28px; color: var(--q); text-decoration: none; }
.quick a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; opacity: 0; }
.quick a:hover { color: var(--q); filter: brightness(1.3); }
.quick a:hover::after, .quick a:focus-visible::after { opacity: 1; }
.quick a:focus-visible { outline-offset: 0; }
.quick svg { width: 20px; height: 20px; display: block; }
.q-words { --q: #a56be0; }
.q-play { --q: #f3b33e; }
.q-stories { --q: #20b3b6; }
@media (max-width: 640px) { .quick .q-play, .quick .q-stories { display: none; } .quick { gap: 0; margin-right: 4px; } }
@media (max-width: 400px) { .quick { margin-right: 0; } .quick a { width: 18px; } .quick svg { width: 18px; height: 18px; } }
