/* Homepage buttons in the app's olive glass (Stephen, 14 Nov 2026).
   The same recipe as the app's main button and quiet glass pills
   (luminous-glass.css, values from sv-tokens.css under html[data-look='glass']);
   the homepage has no data-look, so the values are repeated here.
   - Main button: olive pill with a top light, a soft ring and a sheen that
     sweeps across on hover. White words 5.9:1 at the lightest point.
   - Over photographs: frosted glass with white words.
   - Small round controls (carousel pause and arrows): quiet see-through glass. */
:root {
  --hg-olive: #4b5432;
  --hg-olive-lift: #616b44;
  --hg-olive-deep: #3a4127;
  --hg-fill: linear-gradient(180deg, var(--hg-olive-lift) 0%, var(--hg-olive) 55%, var(--hg-olive-deep) 100%);
  --hg-shadow: inset 0 1px 0 rgb(255 255 255 / .38), inset 0 -2px 0 rgb(0 0 0 / .18), 0 14px 28px -12px rgb(59 65 38 / .75), 0 0 0 4px rgb(109 117 68 / .14);
  --hg-shadow-press: inset 0 2px 6px rgb(0 0 0 / .3), 0 6px 14px -10px rgb(59 65 38 / .7);
  --hg-sheen: linear-gradient(90deg, transparent, rgb(255 255 255 / .36), transparent);
  --hg-quiet: rgb(255 255 255 / .46);
  --hg-quiet-border: rgb(255 255 255 / .82);
  --hg-quiet-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 3px 10px rgb(70 52 30 / .08);
  --hg-frost: rgb(255 255 255 / .2);
  --hg-frost-border: rgb(255 255 255 / .6);
  --hg-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- main button ---------- */
.button {
  position: relative; isolation: isolate; overflow: hidden;
  border: 0; border-radius: 999px;
  background: var(--hg-fill); color: #fff;
  box-shadow: var(--hg-shadow);
  font-weight: 600; letter-spacing: .04em;
  transition: transform 180ms var(--hg-ease), box-shadow 180ms var(--hg-ease), background 180ms var(--hg-ease);
}
.button::before {
  content: ""; position: absolute; z-index: -1; inset: 0 auto 0 -45%; width: 38%;
  transform: skewX(-20deg); background: var(--hg-sheen); pointer-events: none;
  transition: left 600ms ease;
}
.button:focus-visible { outline: 3px solid var(--hg-olive); outline-offset: 3px; }
.button:active { transform: translateY(1px) scale(.985); box-shadow: var(--hg-shadow-press); }

/* ---------- over a photograph: frosted glass ---------- */
.button-light,
.site-header:not(.is-solid) .nav-account .button {
  background: var(--hg-frost); color: #fff;
  border: 1px solid var(--hg-frost-border);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), 0 10px 26px -12px rgb(0 0 0 / .45);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  text-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
.button-light:focus-visible,
.site-header:not(.is-solid) .nav-account .button:focus-visible { outline-color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-1px); background: var(--hg-fill); }
  .button:hover::before { left: 120%; }
  .button-light:hover,
  .site-header:not(.is-solid) .nav-account .button:hover { background: rgb(255 255 255 / .3); border-color: #fff; }
}

/* ---------- quiet glass: small round controls ---------- */
.row-arrows button {
  background: var(--hg-quiet); border: 1px solid var(--hg-quiet-border);
  box-shadow: var(--hg-quiet-shadow); color: var(--hg-olive);
  backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
}
@media (hover: hover) and (pointer: fine) {
  .row-arrows button:not(:disabled):hover { background: var(--hg-fill); border-color: transparent; color: #fff; }
}

/* Phones and "less transparency": solid fills, no blur. */
@media (prefers-reduced-transparency: reduce) {
  .button-light, .site-header:not(.is-solid) .nav-account .button { background: var(--hg-fill); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; text-shadow: none; }
  .row-arrows button { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .button::before { transition: none; }
  .button:hover, .button:active { transform: none; }
}

/* Hero controls (Stephen, 14 Nov 2026: the dashes and arrows got in the way). The row of dashes is gone and the
   arrows show only when the photographs stand still (reduced motion). The pause button stays, as quiet glass,
   because photographs that move by themselves must be stoppable. */
.hero-ticks { display: none; }
.hero-step { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-step { display: grid; } }
.hero-pause {
  width: 40px; height: 40px; margin: 0; border-radius: 50%; opacity: 1;
  background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .45);
  backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
