/* ALONYS v4 — site-wide color tokens & header theme switch.
   Hue/chroma tint every CSS pattern, paper, stitch and motion decoration.
   Text/action tokens use darker companions for legibility, not pale swatches.
   Photos, flyer artwork and member-identity swatches are intentionally preserved.
*/
/* BEGIN GENERATED PALETTES */
:root,html[data-site-theme="default"]{
  --theme-hue:333;--theme-chroma:90%;
  --theme-ink:#624253;
  --theme-muted:#795667;
  --theme-title:#934166;
  --theme-logo:#df5892;
  --theme-accent:#e77da9;
  --theme-action:#b63772;
  --theme-swatch:#df5892;
  --theme-canvas:#fff9fc;
}
html[data-site-theme="momoka"]{
  --theme-hue:220;--theme-chroma:8%;
  --theme-ink:#37414b;
  --theme-muted:#56616b;
  --theme-title:#4b5863;
  --theme-logo:#76828f;
  --theme-accent:#f9fafc;
  --theme-action:#586673;
  --theme-swatch:#f5f5f3;
  --theme-canvas:#fafbfc;
}
html[data-site-theme="riko"]{
  --theme-hue:352;--theme-chroma:94%;
  --theme-ink:#64383e;
  --theme-muted:#825058;
  --theme-title:#a62c42;
  --theme-logo:#c92f4c;
  --theme-accent:#d85060;
  --theme-action:#ba2946;
  --theme-swatch:#d85060;
  --theme-canvas:#fff9fa;
}
html[data-site-theme="fuua"]{
  --theme-hue:199;--theme-chroma:90%;
  --theme-ink:#294a58;
  --theme-muted:#4b6876;
  --theme-title:#206580;
  --theme-logo:#2c94bd;
  --theme-accent:#7bc5df;
  --theme-action:#216d8b;
  --theme-swatch:#7bc5df;
  --theme-canvas:#f8fcff;
}
html[data-site-theme="rina"]{
  --theme-hue:324;--theme-chroma:97%;
  --theme-ink:#633a55;
  --theme-muted:#7b516b;
  --theme-title:#9b326d;
  --theme-logo:#e455a6;
  --theme-accent:#ea7eab;
  --theme-action:#ad2d79;
  --theme-swatch:#ea7eab;
  --theme-canvas:#fff8fc;
}
/* END GENERATED PALETTES */
:root{
 --theme-surface:hsl(var(--theme-hue) calc(var(--theme-chroma)*.72) 99%);
 --theme-soft:hsl(var(--theme-hue) calc(var(--theme-chroma)*.65) 96%);
 --theme-medium:hsl(var(--theme-hue) calc(var(--theme-chroma)*.56) 91%);
 --theme-line:hsl(var(--theme-hue) calc(var(--theme-chroma)*.34) 82%);
 --theme-particle-light:hsl(var(--theme-hue) calc(var(--theme-chroma)*.68) 84%);
 --theme-shadow:hsl(var(--theme-hue) calc(var(--theme-chroma)*.34) 37% / .12);
 --theme-action-hover:hsl(var(--theme-hue) calc(var(--theme-chroma)*.65) 30%);
 --paper:var(--theme-canvas);--blush:var(--theme-soft);--pink:var(--theme-logo);
 --pink-button:var(--theme-action);--pink-ink:var(--theme-title);--ink:var(--theme-ink);--muted:var(--theme-muted);
 --line:var(--theme-line);--soft-line:var(--theme-medium);--ribbon-accent:var(--theme-accent);
 --ribbon-light:var(--theme-soft);--ribbon-deep:var(--theme-title);
}
html{background:var(--theme-canvas);color-scheme:light}
body.ribbon-site{color:var(--theme-ink);background:var(--theme-canvas)}
::selection{background:var(--theme-medium);color:var(--theme-title)}
:focus-visible{outline-color:var(--theme-title)}
/* Only tagged derivatives change. No body-wide hue-rotate / photo filters. */
img[data-theme-kind]{filter:none}
.brand-bow,.brand-wordmark,.intro-wordmark,.letter-sign{filter:none}
html:not([data-site-theme="default"]) img[data-theme-kind]:not(.theme-art-ready){visibility:hidden}
.hero-big-bow,.card-ribbon,.letter-ribbon,.gift-lid img{filter:drop-shadow(1px 2px 0 #ffffffcc)}
html[data-site-theme="momoka"] img[data-theme-kind="bow-ribbon"]{filter:drop-shadow(0 1px 1px #7f8995aa)}
.hero-photo-logo .hero-bow,.ticket-ribbon img,.brand-strip-bow{filter:brightness(0) invert(1)!important}
/* Typography and actions: color is clearly visible without sacrificing contrast. */
.site-header{background:var(--theme-surface);border-color:var(--theme-line);box-shadow:0 6px 30px var(--theme-shadow)}
.site-header::after{border-color:var(--theme-line)}
.desktop-nav a,.footer-navigation nav a{color:var(--theme-ink)}
.desktop-nav a small,.header-note,.top-whisper,.footer-tagline,.footer-social-label,.footer-bottom,.back-to-top{color:var(--theme-muted)}
.desktop-nav a:hover,.desktop-nav a[aria-current],.desktop-nav a[aria-current] small,.menu-label{color:var(--theme-title)}
.section-head h2,.page-heading h1,.subsection-heading h2,.profile-intro-copy h2,.coming-copy h2,.coming-copy h3,.explore-card h2,.article-header h1,.article-content h2{color:var(--theme-title)}
.hero h1,.member-detail-info h1,.member-caption h3{color:var(--theme-ink)}
.hero-title-line:last-child,.hero-script,.about-copy h2,.about-subtitle,.event-date strong,.footer-love>span{color:var(--theme-title)}
.hero-intro,.profile-intro-copy p,.about-text,.member-message>p:last-child,.event-body,.profile-facts dd{color:var(--theme-ink)}
.hero-peek>span,.photo-paper-caption,.page-description,.member-roman,.breadcrumbs,.small-note,.favorite-note,.favorite-panel .eyebrow,.event-status,.event-date>span,.event-time,.schedule-home .small-note,.explore-card>p:not(.eyebrow),.calendar-help,.coming-copy>p,.article-header>p,.profile-facts dt,.profile-facts dt span{color:var(--theme-muted)}
.button-pink,.hero-cta,.filter-button.is-active{background:var(--theme-action);border-color:var(--theme-action);color:#fff}
.button-pink:hover,.hero-cta:hover,.filter-button.is-active:hover{background:var(--theme-action-hover);border-color:var(--theme-action-hover);color:#fff}
.hero-cta{box-shadow:0 5px 0 var(--theme-shadow),0 9px 25px var(--theme-shadow)}
.button-line,.member-x,.icon-button,.color-choice{color:var(--theme-title);border-color:var(--theme-line)}
.button-line:hover,.member-x:hover,.icon-button:hover{background:var(--theme-soft);color:var(--theme-title)}
.round-arrow{color:var(--theme-title);border-color:var(--theme-line)}
a:hover>.round-arrow,a.round-arrow:hover{background:var(--theme-action);border-color:var(--theme-action);color:#fff}
.brand-strip,.ticket-ribbon{background:var(--theme-action);color:#fff}
.pink-dot,.button-spark{color:var(--theme-logo)}
.member-message{background:var(--theme-soft);color:var(--theme-ink)}
.member-message .eyebrow,.detail-roman,.detail-member-color{color:var(--theme-title)}
.member-x{background:var(--theme-surface)}
.member-card,.member-card::before{border-color:var(--theme-line)}
.member-love{background:var(--theme-surface);border-color:var(--theme-line)}
.member-love[aria-pressed="true"]{outline:2px solid var(--theme-title);outline-offset:2px}
.favorite-panel{background:var(--theme-soft);border-color:var(--theme-line)}
.color-choice.is-selected{color:var(--theme-title);background:var(--theme-soft);border-color:var(--theme-title);box-shadow:0 3px 0 var(--theme-medium)}
.color-choice-dot{color:#fff}
.color-choice[data-favorite="momoka"] .color-choice-dot{color:#56616b;text-shadow:none}
.mobile-dock{background:var(--theme-surface);border-color:var(--theme-line)}
.mobile-dock a,.mobile-dock button{color:var(--theme-muted)}
.mobile-dock [aria-current]{background:var(--theme-medium);color:var(--theme-title)}
.mobile-dock [aria-current] .icon{fill:var(--theme-medium)}
.mobile-menu,.effect-toast{color:var(--theme-ink)}
.mobile-menu nav a,.mobile-menu nav a small,.mobile-menu>.eyebrow{color:var(--theme-title)}
.calendar-table .is-today{outline-color:var(--theme-title)}
.calendar-table .has-event{background:var(--theme-action);color:#fff}
.calendar-footer>span i{background:var(--theme-action)}
.tag,.teaser-status,.art-caption,.art-foot{color:var(--theme-title)}
.theme-art-ready{transition:opacity .2s}
/* Compact universal header switch. Current choice is readable, not color-only. */
.header-inner{gap:22px}
.theme-toggle{flex:0 0 78px;min-width:68px;min-height:52px;display:grid;grid-template-columns:1fr auto;align-content:center;justify-items:center;gap:3px 4px;padding:5px 8px;border:1px solid var(--theme-line);border-radius:17px;background:var(--theme-soft);color:var(--theme-title);line-height:1.2;position:relative;z-index:1;transition:background-color .25s,transform .25s}
.theme-toggle:hover{transform:translateY(-2px);background:var(--theme-medium)}
.theme-toggle-icon{grid-column:1/-1;display:flex;align-items:center;justify-content:center;height:15px;padding-left:4px}
.theme-toggle-icon i{width:13px;height:13px;border:1.5px solid var(--theme-surface);border-radius:50%;background:var(--theme-particle-light);margin-left:-4px;box-shadow:0 0 0 .5px var(--theme-line)}
.theme-toggle-icon i:nth-child(2){background:var(--theme-logo)}
.theme-toggle-icon i:nth-child(3){background:var(--theme-swatch)}
.theme-toggle-label{font-size:8px;font-weight:700;letter-spacing:.12em;grid-column:1/-1}
.theme-toggle-current{font-size:6px;letter-spacing:.06em;grid-column:1/-1}
.motion-toggle{margin-left:0}
/* The native dialog provides focus containment, Escape and a modal backdrop. */
.theme-dialog{box-sizing:border-box;position:fixed;inset:112px max(18px,calc((100vw - 1310px)/2)) auto auto;margin:0;width:420px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 138px);overflow:auto;padding:22px 25px 23px;border:1px solid var(--theme-line);border-radius:28px;background:var(--theme-surface);color:var(--theme-ink);box-shadow:0 18px 70px var(--theme-shadow);overscroll-behavior:contain}
.theme-dialog::backdrop{background:var(--theme-shadow);backdrop-filter:blur(2px)}
.theme-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.theme-dialog-top .eyebrow{font-size:9px;letter-spacing:.13em}
.theme-close{width:44px;height:44px;flex:0 0 44px;background:var(--theme-soft)}
.theme-close .icon{width:17px;height:17px}
.theme-dialog h2{font:700 23px/1.6 var(--rounded);letter-spacing:.035em;color:var(--theme-title);margin:4px 0 5px}
.theme-dialog-intro{font-size:11px;color:var(--theme-muted);line-height:1.8}
.theme-choice-list{display:grid;gap:9px;margin:20px 0 16px}
.theme-choice{position:relative;display:grid;grid-template-columns:47px 1fr 19px 20px;gap:13px;align-items:center;min-height:61px;padding:7px 12px 7px 8px;border:1px solid var(--theme-line);border-radius:15px;background:var(--theme-canvas);text-align:left;transition:background .2s,border-color .2s,transform .2s}
.theme-choice:hover{background:var(--theme-soft);transform:translateX(2px)}
.theme-choice[aria-pressed="true"]{border:2px solid var(--theme-title);padding:6px 11px 6px 7px;background:var(--theme-soft);box-shadow:0 3px 0 var(--theme-medium)}
.theme-choice-visual{width:46px;height:46px;border:2px solid #fff;border-radius:50%;background:var(--theme-medium);overflow:hidden;display:grid;place-items:center;box-shadow:0 0 0 1px var(--theme-line)}
.theme-choice-visual .theme-portrait{width:100%;height:100%;object-fit:cover;object-position:50% 23%;transform:scale(1.65);transform-origin:50% 22%}
.theme-brand-bow{width:35px;height:auto}
.theme-choice-copy strong{display:block;font-size:13px;line-height:1.6;font-weight:650;color:var(--theme-ink)}
.theme-choice-copy small{display:block;font-size:8px;line-height:1.7;letter-spacing:.06em;color:var(--theme-muted)}
.theme-choice-swatch{width:19px;height:19px;background:var(--choice-swatch);border:1px solid #87909a50;border-radius:50%}
.theme-choice-check{opacity:0;color:var(--theme-title);font-size:17px;text-align:center}
.theme-choice[aria-pressed="true"] .theme-choice-check{opacity:1}
.theme-dialog-note{font-size:10px;line-height:1.9;color:var(--theme-muted);padding:13px 3px 0;border-top:1px dashed var(--theme-line)}
.motion-ready:not(.motion-paused) .theme-dialog[open]{animation:theme-panel-arrive .28s cubic-bezier(.16,1,.3,1) both}
@keyframes theme-panel-arrive{from{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:1180px) and (min-width:901px){
 .header-inner{gap:12px;padding-inline:23px}.desktop-nav{gap:17px}.header-brand{flex-basis:108px}.theme-toggle{flex-basis:67px;min-width:67px;padding-inline:5px}.motion-toggle{flex-basis:48px}.desktop-nav a{font-size:8.5px}
}
@media(max-width:900px){
 .theme-toggle{margin-left:auto;flex:0 0 69px;min-width:69px;min-height:51px}
 .motion-toggle{margin-left:0;flex-basis:47px}.header-inner{gap:10px}.theme-dialog{top:100px;right:22px}
}
@media(max-width:760px){
 .header-inner{padding-inline:16px 10px;gap:8px}.header-brand{flex-basis:99px}.brand-bow{width:51px}
 .theme-toggle{flex-basis:58px;min-width:58px;min-height:46px;padding:4px;border-radius:13px;gap:2px}
 .theme-toggle-label{font-size:7px}.theme-toggle-current{font-size:6px}.theme-toggle-icon{height:12px}.theme-toggle-icon i{width:11px;height:11px}
 .motion-toggle{flex-basis:40px;min-width:40px;padding:4px 0}.motion-toggle svg{width:18px;height:18px}.motion-toggle span{font-size:6px}.menu-toggle{width:42px;min-width:42px}.menu-toggle img{width:33px}
 .theme-dialog{inset:88px 12px auto 12px;width:auto;max-width:none;max-height:calc(100dvh - 104px);padding:15px 18px 18px;border-radius:23px}
 .theme-dialog h2{font-size:22px}.theme-dialog-top .eyebrow{font-size:8px}.theme-dialog-intro{font-size:10px}.theme-choice-list{margin-top:15px;gap:8px}.theme-choice{min-height:58px;gap:10px;grid-template-columns:44px 1fr 18px 18px}.theme-choice-visual{width:43px;height:43px}.theme-choice-copy strong{font-size:12px}.theme-choice-copy small{font-size:7px}.theme-dialog-note{font-size:9px}
 .favorite-note{font-size:10px;line-height:1.8}
}
@media(max-width:370px){
 .header-inner{padding-inline:13px 7px;gap:6px}.header-brand{flex-basis:86px}.brand-bow{width:45px}.theme-toggle{flex-basis:51px;min-width:51px}.motion-toggle{flex-basis:35px;min-width:35px}.menu-toggle{min-width:38px;width:38px}.menu-toggle img{width:29px}
 .theme-dialog h2{font-size:20px}.theme-dialog{padding-inline:15px}.theme-choice{gap:8px}.theme-dialog-top .eyebrow{letter-spacing:.1em}
}
@media(prefers-reduced-motion:reduce){.theme-dialog[open]{animation:none!important}.theme-art-ready,.theme-toggle,.theme-choice{transition:none!important}}
@media print{.theme-toggle,.theme-dialog{display:none!important}}
