/* The home page, in both languages: thin ruled cards under the same top bar as every other page. It sits after portfolio.css and overrides only what the home page shows.
   It sets no palette but one: every colour below is a variable from portfolio.css, in both themes, and the contour field keeps its own;
   the black front page's palette, at the end, replaces those variables on the front page alone, in the dark theme only. */
.page{font-size:16.5px;line-height:1.6}

.page{display:flex;flex-direction:column;min-width:0}
.home{width:100%;max-width:1200px;margin:0 auto;padding:0 28px}

/* Opening */
.home section{padding:44px 0 50px;border-top:1px solid var(--line)}
.home .brand-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:56px;align-items:start;padding:76px 0 64px;border-top:0}
.home .eyebrow{margin:0 0 14px;color:var(--accent);font-size:.7rem;font-weight:650;letter-spacing:.17em}
.home .eyebrow::before{display:none}
.brand-hero h1{max-width:11.5ch;margin:0 0 22px;color:var(--heading);font-size:clamp(2.7rem,5.1vw,4.05rem);font-weight:780;line-height:1.04;letter-spacing:-.04em}
.brand-hero h1 .hl{color:var(--accent)}
.brand-hero .lede{max-width:52ch;margin:0 0 26px;color:var(--muted);font-size:1.09rem;line-height:1.6}
.cta-row{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center}
.btn{display:inline-flex;align-items:center;min-height:46px;padding:.55rem 1.1rem;border:1px solid var(--line);border-radius:4px;font-size:.92rem;font-weight:640;text-decoration:none}
.btn-primary{background:var(--heading);border-color:var(--heading);color:var(--bg)}
.btn-primary:hover{background:var(--accent);border-color:var(--accent);color:var(--bg)}
.btn-quiet{background:var(--surface);border-color:var(--line);color:var(--heading)}
.btn-quiet:hover{border-color:var(--accent);color:var(--accent)}
.follow{display:flex;flex-wrap:wrap;gap:4px 16px;margin:20px 0 0;color:var(--muted);font-size:.84rem}
.follow a,.section-head a,.card .links a,.band-side>a:not(.btn){color:var(--accent);text-decoration-color:color-mix(in srgb,currentColor 35%,transparent)}
.follow a{color:var(--muted)}
.follow a:hover{color:var(--accent)}
.follow a::after,.card .links a::after,.band-side>a:not(.btn)::after{content:"\2197";display:inline-block;margin-left:.28em;font-size:.9em}
.hero-panel{padding:12px 0 0;background:none;border:0;border-top:2px solid var(--accent);border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.hero-panel h2{margin:0 0 6px;color:var(--muted);font-size:.7rem;font-weight:650;line-height:1.5;letter-spacing:.17em;text-transform:uppercase}
.areas{margin:0;padding:0;list-style:none}
.areas li+li{border-top:1px solid var(--line)}
.areas a{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:46px;padding:8px 0;color:var(--heading);font-size:1rem;font-weight:620;text-decoration:none}
.areas a span{color:var(--accent);transition:transform .25s var(--ease,ease)}
.areas a:hover{color:var(--accent)}.areas a:hover span{transform:translateX(4px)}

/* Section heads */
.section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;margin-bottom:24px}
.section-head h2{margin:0;color:var(--heading);font-size:clamp(1.45rem,2.3vw,1.8rem);font-weight:740;letter-spacing:-.028em}
.section-head a{font-size:.84rem;font-weight:560}
.section-head a::after{content:"\2192";display:inline-block;margin-left:.35em}

/* Ruled cards: a thin coloured rule, a small label and number, a plain title, and no box */
.featured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;counter-reset:card}
.card{position:relative;display:flex;flex-direction:column;min-width:0;padding:12px 0 0;background:none;border:0;border-top:2px solid var(--accent);border-radius:0;counter-increment:card;--kind:var(--accent)}
.card::before{content:counter(card,decimal-leading-zero);position:absolute;top:13px;right:0;color:var(--muted);font-size:.7rem;font-variant-numeric:tabular-nums;letter-spacing:.06em}
.card p{margin:0 0 16px;color:var(--text);font-size:.9rem;line-height:1.6}
.card .kind{margin:0 30px 12px 0;color:var(--kind);font-size:.67rem;font-weight:650;line-height:1.5;letter-spacing:.15em;text-transform:uppercase}
.card h3{margin:0 0 9px;color:var(--heading);font-size:1.09rem;font-weight:720;line-height:1.3;letter-spacing:-.014em}
.card h3 a{color:inherit;text-decoration:none}
.card h3 a:hover{color:var(--kind);text-decoration:underline}
.card .links{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:auto;padding:0;border:0;font-size:.83rem}
.card .links a{color:var(--kind);display:inline-flex;align-items:center;min-height:32px}

/* Take part */
.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}
.band{display:flex;flex-direction:column;min-width:0;padding:12px 0 0;background:none;border:0;border-top:2px solid var(--accent);border-radius:0}
.band h3{margin:0 0 10px;color:var(--heading);font-size:clamp(1.2rem,1.9vw,1.42rem);font-weight:730;line-height:1.25;letter-spacing:-.022em}
.band p{margin:0 0 12px;color:var(--text);font-size:.94rem}
.band .small{color:var(--muted);font-size:.82rem}
.band-side{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:auto;padding-top:10px;border:0}
.band-side .pair{flex-basis:100%;margin:0;color:var(--heading);font-size:1rem;font-weight:650}
.band-side>a:not(.btn){font-size:.84rem}

/* How the work is done */
.principles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 30px;margin:0;padding:0;list-style:none}
.principles li{padding:11px 0 0;border-top:1px solid var(--heading)}
.principles h3{margin:0 0 6px;color:var(--heading);font-size:1rem;font-weight:700;letter-spacing:-.01em}
.principles p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.6}

/* Elsewhere */
.elsewhere{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 30px}
.elsewhere a{display:block;padding:11px 0 13px;background:none;border:0;border-top:1px solid var(--line);border-radius:0;color:var(--heading);font-size:.94rem;font-weight:640;text-decoration:none;overflow-wrap:anywhere}
.elsewhere a span{display:block;margin-top:2px;color:var(--muted);font-size:.8rem;font-weight:400}
.elsewhere a:hover{color:var(--accent);box-shadow:none;transform:none}

/* Footer */
.page .hub-footer{width:calc(100% - 56px);max-width:1144px;margin:auto auto 0;padding:24px 0 36px;border-top:1px solid var(--line);color:var(--muted);font-size:.78rem}
.page .footer-links{gap:6px 18px}
.page .footer-links a{color:var(--accent)}

@media(max-width:1180px){.home .brand-hero{gap:36px;padding:60px 0 52px}.featured,.duo,.principles{gap:24px}}
@media(max-width:1040px){.home .brand-hero{grid-template-columns:1fr;gap:32px}.hero-panel{max-width:520px}.featured{grid-template-columns:1fr}.card p{max-width:62ch}.elsewhere{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Narrow */
@media(max-width:820px){
  .home{padding:0 20px}
  .page .hub-footer{width:auto;margin:0 20px;padding-bottom:30px}
  .home .brand-hero{padding:40px 0 38px}
  .home section{padding:34px 0 38px}
  .duo,.principles{grid-template-columns:1fr}
  .band-side .btn{flex:0 1 auto}
}
@media(max-width:480px){.brand-hero h1{font-size:clamp(2.6rem,12.4vw,3.3rem)}.cta-row .btn{flex:1 1 auto;justify-content:center}.card h3 a{display:block;padding:11px 0;margin:-11px 0}.follow{gap:0 18px}.follow span{flex-basis:100%}.elsewhere{grid-template-columns:1fr}.card .links a,.follow a,.band-side>a:not(.btn){min-height:44px;display:inline-flex;align-items:center}.footer-links a{display:inline-flex;align-items:center;min-height:44px}.section-head a{display:inline-flex;align-items:center;min-height:44px}}
@media(prefers-reduced-motion:reduce){.areas a:hover span{transform:none}}

/* The black front page: the front page alone in black and white, in the dark theme only and both languages; the light theme keeps the light front page, and every other page keeps its own palette.
   Set by the class home-black on the front pages' root element, keyed to the dark theme as each vault's dark palette is in portfolio.css (the theme button's choice, or the system's when no choice is saved).
   The dark theme's own logo rule in portfolio.css shows the light-on-dark logo. Text on black: body 12.04:1, headings 14.88:1, quiet text 7.65:1, links and the highlight 21:1, the logo 17.03:1. */
:root.home-black[data-theme="dark"]{color-scheme:dark;--bg:#000;--surface:#0f0f0f;--raised:#151515;--tag:#151515;--text:#c4c4c4;--muted:#9c9c9c;--line:#2b2b2b;--accent:#fff;--heading:#d9d9d9;--field-rgb:255,255,255;--field-alpha:.06;--field-major-alpha:.12;--field-lens-rgb:255,255,255;--field-lens-alpha:.5;--field-glow:rgba(255,255,255,.05);--glass:rgba(0,0,0,.72);--shadow:0 1px 2px rgba(0,0,0,.6),0 14px 30px -16px rgba(0,0,0,.9)}
@media(prefers-color-scheme:dark){:root.home-black:not([data-theme="light"]){color-scheme:dark;--bg:#000;--surface:#0f0f0f;--raised:#151515;--tag:#151515;--text:#c4c4c4;--muted:#9c9c9c;--line:#2b2b2b;--accent:#fff;--heading:#d9d9d9;--field-rgb:255,255,255;--field-alpha:.06;--field-major-alpha:.12;--field-lens-rgb:255,255,255;--field-lens-alpha:.5;--field-glow:rgba(255,255,255,.05);--glass:rgba(0,0,0,.72);--shadow:0 1px 2px rgba(0,0,0,.6),0 14px 30px -16px rgba(0,0,0,.9)}}
/* The music-note button (N.'s 958): beside the theme button, in its border, corner and ground, and only the page's own colours, so it follows both themes.
   The pause sign and the accent border show while the song plays. The caption under the header appears at the first press and carries the song's licence. */
.header-tools{display:flex;align-items:center;gap:10px}
.music-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;color:var(--text);transition:border-color .2s var(--ease,ease)}
.music-toggle-btn svg{display:block;width:20px;height:20px}
.music-toggle-btn .icon-pause,.music-toggle-btn.is-playing .icon-note{display:none}
.music-toggle-btn.is-playing .icon-pause{display:block}
.music-toggle-btn:hover,.music-toggle-btn.is-playing{border-color:var(--accent)}
.music-caption{max-width:1200px;margin:8px auto 0;padding:0 28px;text-align:right;color:var(--muted);font-size:.8rem;line-height:1.5}
.music-caption a{color:var(--accent)}
@media(max-width:850px){.header-tools{margin-left:auto}.header-tools .theme-toggle-btn{margin-left:0}}
@media(max-width:620px){.music-caption{padding:0 20px}}
@media(prefers-reduced-motion:reduce){.music-toggle-btn{transition:none}}

/* The cards' glow (N.'s 963), after the Music Vault's: on the pointer, or when a link in the card has keyboard focus, a faint ground and a ring in the page's accent,
   white on the black front page and blue on the light one. These cards have no box, so the glow is drawn round them by shadows alone, and their size and the layout stay as they are. */
.home .card,.home .band{--a:var(--accent);transition:box-shadow .25s var(--ease,ease),background-color .25s var(--ease,ease)}
.home .card:hover,.home .card:focus-within,.home .band:hover,.home .band:focus-within{background-color:color-mix(in srgb,var(--a) 7%,var(--bg));box-shadow:0 0 0 14px color-mix(in srgb,var(--a) 7%,var(--bg)),0 0 0 15px color-mix(in srgb,var(--a) 45%,transparent),0 18px 46px -16px color-mix(in srgb,var(--a) 70%,transparent)}
@media(prefers-reduced-motion:reduce){.home .card,.home .band{transition:none}}
