/* Ian Jones — mockup tokens */
:root{
  --brass:#C8A45A;
  --ink:#171512;
  --bone:#EDE9E1;
  --black:#0A0A0A;
  --charcoal:#2B2B2B;
  --warmgrey:#6D655C;
  --paper:#ECE8E0;
  --white:#FFFFFF;
  --ground:var(--black);
  --brass-ink:var(--brass);
  --fg:var(--bone);
  --fg-dim:rgba(237,233,225,.55);
  --hair:rgba(237,233,225,.18);
  --display:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --ui:'Jost','Helvetica Neue',Arial,sans-serif;
  --top:64px;
  --bottom:56px;
  --ease:cubic-bezier(.33,0,.15,1);
}
[data-ground="white"]{--brass-ink:#7D5F24;--ground:var(--white);--fg:var(--ink);--fg-dim:rgba(23,21,18,.55);--hair:rgba(23,21,18,.14)}
[data-ground="paper"]{--brass-ink:#7D5F24;--ground:var(--paper);--fg:var(--ink);--fg-dim:rgba(23,21,18,.55);--hair:rgba(23,21,18,.16)}
[data-ground="black"]{--ground:var(--black)}
[data-ground="charcoal"]{--ground:var(--charcoal)}
[data-ground="warmgrey"]{--brass-ink:#EBD394;--ground:var(--warmgrey);--fg:#F3EFE7;--fg-dim:rgba(243,239,231,.62);--hair:rgba(243,239,231,.22)}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;min-height:100vh;
  background:var(--ground);color:var(--fg);
  font-family:var(--ui);font-weight:300;font-size:15px;line-height:1.5;
  transition:background-color 1s var(--ease),color 1s var(--ease);
}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible{outline:1px solid var(--brass);outline-offset:4px}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
img{display:block;max-width:100%;-webkit-user-drag:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

.wordmark{
  font-family:var(--display);font-weight:500;font-size:22px;letter-spacing:.06em;
  text-transform:none;line-height:1;
}
.wordmark i{font-style:normal;color:var(--brass)}

.small{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-dim)}

.ground-switch{
  display:flex;align-items:center;gap:10px;
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-dim);
  opacity:.45;transition:opacity .4s var(--ease);
}
.ground-switch:hover,.ground-switch:focus-within{opacity:1}
.ground-switch .sw{width:18px;height:18px;border-radius:50%;border:1px solid var(--hair);position:relative;box-shadow:0 0 0 1px rgba(128,124,116,.45)}
.ground-switch .sw[data-ground="black"]{background:#0A0A0A}
.ground-switch .sw[data-ground="charcoal"]{background:#2B2B2B}
.ground-switch .sw[data-ground="warmgrey"]{background:#6D655C}
.ground-switch .sw[data-ground="paper"]{background:#ECE8E0}
.ground-switch .sw[data-ground="white"]{background:#FFFFFF}
.ground-switch .sw.is-on{outline:1px solid var(--brass);outline-offset:3px}
.ground-switch .sw-label{min-width:9ch}

/* phone: pair becomes a swipe panel */
@media (max-width:720px){
  :root{--top:56px;--bottom:52px}
  .vault-top,.vault-foot{padding:0 18px}
  .vault-nav{display:none}
  .rail{right:10px;height:110px}
  .spread{display:flex;gap:0;padding:0;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .spread::-webkit-scrollbar{display:none}
  .frame{flex:0 0 100%;height:100%;scroll-snap-align:center;padding:var(--matpx,0)}
  .ground-switch{opacity:.8}
  .ground-switch .sw-label,.ground-switch .sw-title{display:none}
  .vault-foot .hint{display:none}
  .vault-foot{font-size:10.5px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
  .vault-foot .plate-line{flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ground-switch{flex:none;justify-self:end}
  .score{grid-template-rows:var(--top) 1fr var(--bottom)}
  .score-head,.score-foot{padding:0 18px}
  .score-head nav a{margin-left:16px}
  .score-grid{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .movements{padding:8px 18px 18px}
  .movements a{font-size:clamp(38px,11vw,56px)}
  .temperament{margin-top:14px;min-height:0;font-size:14px}
}

@media (prefers-reduced-motion:reduce){
  .spread{transition-duration:300ms !important}
  .spread.is-active .frame img{animation:none}
  .score-picture img{transition-duration:300ms}
}

/* ---------- About ---------- */
.about{min-height:100vh;padding-top:var(--top)}
.about-head{display:flex;align-items:center;justify-content:space-between;padding:0 40px}
.about-head nav a{margin-left:22px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-dim)}
.about-body{
  display:grid;grid-template-columns:minmax(200px,26%) minmax(320px,56ch);
  gap:clamp(28px,5vw,72px);justify-content:center;align-items:start;padding:7vh 40px 12vh;
}
/* Set to both margins, as Ian asked to see it. */
/* Justified as Word does it: whole words only, the spaces between them opened out to fill the line. */
.about-text p{font-size:16px;line-height:1.72;color:var(--fg);margin:0 0 22px;font-weight:300;text-align:justify;text-justify:inter-word;-webkit-hyphens:none;hyphens:none}
.about-text p.contact{margin-top:38px;font-size:16.5px;line-height:1.9;letter-spacing:.02em;color:var(--fg);text-align:left;-webkit-hyphens:none;hyphens:none}
.about-text p.contact a{color:var(--brass-ink);border-bottom:1px solid currentColor}
.portrait{margin:0;position:sticky;top:calc(var(--top) + 7vh)}
.portrait img{width:100%;height:auto}
@media (max-width:720px){
  .about-body{grid-template-columns:1fr;gap:26px;padding:4vh 18px 8vh}
  .portrait{position:static;max-width:260px}
}

.still *,.still *::before,.still *::after{transition:none !important;animation:none !important}

/* The one note a phone on its side needs, plainly readable over the pictures
   (landing page and slide show, js/swipe-note.js). */
.swipe-note{
  position:fixed;left:50%;bottom:calc(var(--bottom) + 14px);z-index:35;margin:0;
  transform:translateX(-50%);display:flex;align-items:center;gap:10px;
  padding:9px 18px;border-radius:999px;white-space:nowrap;pointer-events:none;
  background:rgba(10,10,10,.74);color:#EDE9E1;
  font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  opacity:0;transition:opacity .6s var(--ease);
}
.swipe-note[hidden]{display:none}
.swipe-note.is-on{opacity:1}
.swipe-note svg{color:var(--brass);animation:ij-nudge 1.8s var(--ease) infinite}
@keyframes ij-nudge{0%,100%{transform:none}50%{transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){.swipe-note svg{animation:none}}

/* Headings that exist for structure only, never drawn. */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
