/* Nequbay: one portrait, the words, the player. Dark, monochrome, one wine. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(assets/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(assets/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF; }
@font-face { font-family: "Noto Sans Ethiopic"; font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap;
  src: url(assets/fonts/noto-sans-ethiopic-ethiopic.woff2) format("woff2");
  unicode-range: U+030E, U+1200-1399, U+2D80-2DDE, U+AB01-AB2E; }
@font-face { font-family: "Noto Serif Ethiopic"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(assets/fonts/noto-serif-ethiopic-ethiopic.woff2) format("woff2");
  unicode-range: U+030E, U+1200-1399, U+2D80-2DDE, U+AB01-AB2E; }

:root {
  color-scheme: dark;
  --ink: #0b0a0a;
  --ink-2: #141212;
  --ink-3: #1d1a1a;
  --rule: #2b2727;
  --bone: #ece7df;
  --mute: #a39b91;        /* 7.3:1 on ink */
  --faint: #8c857b;       /* 5.3:1 on ink, 4.9:1 on ink-2; meta and placeholders */
  --wine: #9e1d34;        /* fills; bone on wine 7.6:1 */
  --wine-hi: #e0566e;     /* text/lines on ink 5.6:1 */
  --wine-deep: #4a0d18;
  --sans: "Archivo", "Noto Sans Ethiopic", system-ui, sans-serif;
  --serif-am: "Noto Serif Ethiopic", "Noto Sans Ethiopic", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 17px/1.6 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--dock-h);
  transition: padding-bottom .5s var(--ease);
  caret-color: var(--wine-hi);
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--wine); color: var(--bone); }
html { scrollbar-color: var(--rule) var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--rule); border: 2px solid var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wine-hi); outline-offset: 3px; }
[lang="am"] { font-family: "Noto Sans Ethiopic", var(--sans); }
svg { width: 1em; height: 1em; flex: none; }
.dim { color: var(--mute); font-weight: 400; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bone); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  min-height: 48px; padding: 0 1.25em; border: 1px solid transparent; border-radius: 0;
  font-weight: 650; font-size: 1rem; letter-spacing: .01em; cursor: pointer; text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { font-size: 1.05em; }
.btn-wine { background: var(--wine); color: var(--bone); }
.btn-wine:hover { background: #b3243c; }
.btn-wine small { font-weight: 450; color: #f0c9cf; font-size: .82em; letter-spacing: .02em; }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--bone); min-height: 44px; }
.btn-ghost:hover { border-color: var(--bone); }
.btn[disabled] { opacity: .55; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; font-weight: 600; text-decoration: none; color: var(--bone); }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: #fff; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: linear-gradient(var(--ink) 0, rgba(11,10,10,.7) 60%, rgba(11,10,10,0));
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent; background-origin: border-box;
}
.bar.solid, .bar.open { background: var(--ink); border-bottom-color: var(--rule); }
.mark { display: inline-flex; align-items: baseline; gap: .55em; text-decoration: none; margin-right: auto; }
.mark-en { font-weight: 850; font-stretch: 62%; font-size: 1.45rem; letter-spacing: .04em; line-height: 1; }
.mark-am { font-weight: 600; font-size: .95rem; color: var(--mute); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 12px; text-decoration: none; font-size: .95rem; font-weight: 550; color: var(--mute); transition: color .2s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--bone); }
.nav .nav-book { color: var(--bone); border: 1px solid var(--rule); margin-left: 6px; }
.nav .nav-book:hover { border-color: var(--wine-hi); }
.menu-b { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); background: none; color: var(--bone); font-weight: 600; font-size: .95rem; cursor: pointer; }
.menu-b:hover { border-color: var(--bone); }
.social { display: flex; gap: 2px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--mute); font-size: 1.25rem; transition: color .2s; }
.social a:hover { color: var(--bone); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.hero-face {
  position: absolute; z-index: -1; inset: 0;
  display: flex; justify-content: center; align-items: flex-end;
}
.hero-face img {
  height: min(100svh, 1000px); width: auto; max-width: none;
  margin-left: 18vw; /* face sits right of centre on wide screens */
  /* fade the photo's frame (top, sides, bottom) so the cut-out sits in the dark */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 62%, transparent 98%), linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 62%, transparent 98%), linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-composite: intersect;
  filter: contrast(1.06);
}
.hero-copy {
  width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto;
  padding-bottom: clamp(40px, 8vh, 88px);
}
.hero-tag { font-size: clamp(.92rem, 1.3vw, 1.05rem); color: var(--mute); font-weight: 500; letter-spacing: .02em; margin-top: 16px; }
.hero-tag i { font-style: normal; color: var(--faint); padding: 0 .35em; }
.hero-name { display: flex; flex-direction: column; line-height: .86; }
.hn-en {
  font-size: clamp(4.25rem, 11vw, 6rem); font-stretch: 62%; font-weight: 900;
  text-transform: uppercase; letter-spacing: -.01em;
  /* the condensed cut keeps the name narrow next to the face */
}
.hn-am { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; color: var(--bone); margin-top: .25em; line-height: 1; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; }

/* ---------- section rhythm ---------- */
section { position: relative; }
.hw, .music, .about, .book { padding-block: clamp(88px, 12vw, 150px) 0; }
.book { padding-bottom: clamp(88px, 12vw, 150px); }
h2 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-stretch: 62%; font-weight: 850; line-height: .95; text-transform: uppercase; letter-spacing: -.005em; }
h3 { font-size: 1.25rem; font-weight: 700; }

/* ---------- Hibre Weyin ---------- */
.hw { padding-top: 0; }
.eyes { position: relative; overflow: hidden; border-block: 1px solid var(--rule); margin-bottom: clamp(64px, 9vw, 120px); }
.eyes img { width: 100%; height: clamp(90px, 16.5vw, 340px); object-fit: cover; filter: contrast(1.1) brightness(.92); }
.eyes::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 14%, transparent 86%, var(--ink)); }
.hw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: start; }
.hw-head h2 { display: flex; flex-direction: column; gap: 18px; text-transform: none; }
.hw-am { font-family: "Noto Sans Ethiopic", var(--sans); font-weight: 850; font-stretch: 75%; font-size: clamp(3.4rem, 8vw, 6rem); line-height: 1; color: var(--bone); }
.hw-en { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-stretch: 62%; text-transform: uppercase; color: var(--bone); letter-spacing: .01em; }
.scroll-text { margin: 40px 0 0; padding: 0; }
.scroll-text blockquote { margin: 0; }
.scroll-text blockquote p { font-family: var(--serif-am); font-size: 1.12rem; line-height: 1.95; color: var(--bone); max-width: 34em; }
.gloss { margin-top: 18px; color: var(--mute); max-width: 36em; font-size: 1rem; }
.scroll-text figcaption { margin-top: 14px; font-size: .85rem; color: var(--faint); letter-spacing: .02em; }

.notify { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); }
.notify label { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.notify-row { display: flex; gap: 0; max-width: 520px; }
.notify input[type=text], .field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 0;
  background: var(--ink-2); color: var(--bone); font-size: 16px; transition: border-color .2s, background-color .2s;
}
.notify input[type=text] { border-right: 0; }
.notify input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.notify input:hover, .field input:hover, .field textarea:hover { border-color: #463f3f; }
.notify input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--wine-hi); background: var(--ink-3); }
.notify .btn { flex: none; }
[aria-invalid="true"] { border-color: var(--wine-hi) !important; }
.notify-msg, .book-msg { min-height: 1.6em; margin-top: 10px; font-size: .95rem; color: var(--mute); }
.notify-msg.ok, .book-msg.ok { color: var(--bone); }
.notify-msg.err, .book-msg.err { color: var(--wine-hi); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }

/* track rows (shared by album list and catalog) */
.tracks, .catalog { list-style: none; margin: 0; padding: 0; }
.row {
  position: relative; display: grid; align-items: center; gap: 16px;
  grid-template-columns: 2.2rem 1fr auto; padding: 14px 4px; border-bottom: 1px solid var(--rule);
  cursor: pointer; transition: background-color .25s var(--ease);
}
.row:hover { background: var(--ink-2); }
.row-n { font-variant-numeric: tabular-nums; color: var(--faint); font-weight: 600; font-size: .95rem; text-align: right; }
.row-t { min-width: 0; }
.row-am { font-weight: 650; font-size: 1.08rem; line-height: 1.35; }
.row-am .note { font-weight: 400; color: var(--mute); font-size: .92rem; margin-left: .35em; }
.row-en { color: var(--mute); font-size: .9rem; line-height: 1.4; margin-top: 2px; }
.row-meta { color: var(--faint); font-size: .85rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.row-play {
  position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; padding: 0;
}
.row-play:focus-visible { outline-offset: -2px; }
.row .eq { display: none; }
.row.is-playing .row-n { color: transparent; }
.row.is-playing .eq { display: flex; }
.row.is-playing .row-am { color: var(--wine-hi); }
.eq { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); gap: 2px; align-items: flex-end; height: 14px; }
.eq span { width: 3px; background: var(--wine-hi); height: 40%; }
.playing-live .eq span { animation: eq 1s var(--ease) infinite alternate; }
.eq span:nth-child(2) { animation-delay: -.4s !important; }
.eq span:nth-child(3) { animation-delay: -.7s !important; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }

/* ---------- catalog ---------- */
.music-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 24px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.music-sub { grid-column: 1; color: var(--mute); }
.seg { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 3px; padding: 3px; border: 1px solid var(--rule); }
.seg-b { min-height: 40px; padding: 0 16px; border: 0; background: none; color: var(--mute); font-weight: 600; cursor: pointer; }
.seg-b[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.seg-b:not([aria-pressed="true"]):hover { color: var(--bone); }
.catalog .row { grid-template-columns: 2.2rem 128px 1fr auto; padding-block: 12px; }
.thumb { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink-3); filter: grayscale(1) contrast(1.05); transition: filter .35s var(--ease); }
.row:hover .thumb, .row.is-playing .thumb { filter: none; }
.row-tag { display: inline-block; margin-left: .5em; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--mute); border: 1px solid var(--rule); padding: 0 .45em; vertical-align: .15em; }
.more-b { margin-top: 24px; }
.more-b[hidden] { display: none; }
.features { margin-top: 28px; color: var(--mute); font-size: .95rem; }
.features a { color: var(--bone); }

/* ---------- meaning ---------- */
.words { padding-top: clamp(88px, 12vw, 150px); }
.words-head { padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.words-head h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; text-transform: none; }
.words-am { font-family: "Noto Sans Ethiopic", var(--sans); font-weight: 850; font-stretch: 75%; font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; }
.words-en { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-stretch: 62%; text-transform: uppercase; color: var(--bone); }
.words-sub { margin-top: 16px; color: var(--mute); max-width: 40em; }
.words-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); padding-top: 40px; align-items: start; }
.words-index { display: flex; flex-direction: column; position: sticky; top: 96px; border-top: 1px solid var(--rule); }
.wi {
  display: grid; gap: 2px; text-align: left; padding: 16px 12px 16px 16px; min-height: 64px;
  background: none; border: 0; border-bottom: 1px solid var(--rule); color: var(--mute); cursor: pointer;
  transition: color .2s, background-color .25s var(--ease);
}
.wi:hover { color: var(--bone); background: var(--ink-2); }
.wi[aria-selected="true"] { color: var(--bone); background: var(--ink-3); }
.wi[aria-selected="true"] .wi-en { color: var(--mute); }
.wi-am { font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.wi-en { font-size: .88rem; }
.reader { min-width: 0; }
.reader-title { font-family: "Noto Sans Ethiopic", var(--sans); font-weight: 800; font-stretch: 75%; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.15; }
.reader-en { margin-top: 8px; color: var(--mute); font-size: 1.05rem; }
.reader-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.seg-sm .seg-b { min-height: 44px; font-size: .9rem; padding: 0 14px; }
.reader-paras { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: v; }
.reader-paras li { position: relative; padding: 0 0 26px 2.6rem; counter-increment: v; }
.reader-paras li::before { content: counter(v); position: absolute; left: 0; top: .3em; font-size: .8rem; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.p-am { font-family: var(--serif-am); font-size: 1.22rem; line-height: 1.95; max-width: 34em; }
.p-en { margin-top: 6px; color: var(--mute); max-width: 38em; line-height: 1.6; }
.p-solo { font-size: 1.2rem; line-height: 1.6; color: var(--bone); max-width: 36em; }
.reader.am-only .p-en { display: none; }
.reader-lines { margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--rule); }
.reader-lines h4 { margin: 0 0 18px; font-size: 1.05rem; }
.reader-lines ol { list-style: none; margin: 0; padding: 0; }
.reader-lines li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.l-am { font-family: var(--serif-am); font-size: 1.3rem; line-height: 1.7; }
.l-en { color: var(--mute); font-style: italic; margin-top: 2px; }
.l-mean { margin-top: 10px; max-width: 38em; }
.reader-src { margin-top: 8px; font-size: .85rem; color: var(--faint); }
.reader.swap { animation: rise .6s var(--ease) both; }

.ask { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(56px, 7vw, 96px); padding-top: 40px; border-top: 1px solid var(--rule); }
.ask h3 { font-size: 1.5rem; }
.ask-copy p { margin-top: 12px; color: var(--mute); max-width: 26em; }
.ask-fields { display: grid; gap: 18px; }
.field select {
  width: 100%; min-height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--rule); border-radius: 0;
  background: var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' stroke='%23a39b91' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  appearance: none; color: var(--bone); font-size: 16px; font-family: var(--sans);
}
.field select:focus { outline: none; border-color: var(--wine-hi); }
.opt { font-weight: 400; color: var(--faint); }
.ask-msg { min-height: 1.6em; margin-top: 10px; font-size: .95rem; color: var(--mute); }
.ask-msg.ok { color: var(--bone); } .ask-msg.err { color: var(--wine-hi); }
.row-mean {
  position: relative; z-index: 1; margin-left: .5em; padding: 0 .5em; min-height: 26px; vertical-align: .1em;
  font: 600 .75rem/1.6 var(--sans); letter-spacing: .03em; color: var(--wine-hi);
  background: none; border: 1px solid var(--wine-deep); cursor: pointer;
}
.row-mean:hover { border-color: var(--wine-hi); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-photo { margin: 0; position: sticky; top: 96px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; }
.about-photo figcaption { margin-top: 10px; font-size: .85rem; color: var(--faint); }
.pull { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1; text-transform: uppercase; }
.pull-src { margin-top: 16px; color: var(--mute); font-size: .92rem; }
.about-copy .lead { margin-top: 44px; font-size: 1.25rem; line-height: 1.55; max-width: 34em; }
.about-copy p + p { margin-top: 18px; }
.about-copy p:not(.pull-src) { max-width: 36em; }
.credits { margin: 44px 0 0; border-top: 1px solid var(--rule); }
.credits div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.credits dt { color: var(--faint); font-size: .9rem; font-weight: 600; }
.credits dd { margin: 0; color: var(--bone); font-size: .98rem; }

/* ---------- book ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.book-head p { margin-top: 24px; color: var(--mute); max-width: 30em; font-size: 1.08rem; }
.book-direct { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.book-direct:empty { display: none; }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.field.half { grid-column: span 1; }
.field label { font-size: .92rem; font-weight: 600; color: var(--mute); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input[type=date] { color-scheme: dark; }
.field input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
.book-send { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 6px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: clamp(64px, 9vw, 110px) var(--gutter) calc(28px + var(--dock-h)); text-align: center; }
.foot-am { font-family: var(--serif-am); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.5; }
.foot-gloss { color: var(--mute); margin-top: 8px; }
.foot-row { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 56px; }
.mark-am.big { font-size: clamp(3.4rem, 10vw, 6rem); font-weight: 800; color: var(--bone); line-height: 1; }
.foot-links { display: flex; gap: 8px; }
.foot-links a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); text-decoration: none; font-weight: 600; font-size: .95rem; }
.foot-links a:hover { border-color: var(--bone); }
.foot-small { margin-top: 40px; color: var(--faint); font-size: .82rem; }

/* ---------- dock ---------- */
.dock {
  position: fixed; z-index: 50; right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px));
  background: var(--ink-2); border: 1px solid var(--rule);
  transform: translateY(calc(100% + 32px)); transition: transform .55s var(--ease);
}
.dock.on { transform: none; }
.dock[hidden] { display: block; visibility: hidden; }
.dock-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; transition: aspect-ratio .45s var(--ease), max-height .45s var(--ease); max-height: 400px; }
.dock-video iframe, .dock-video #yt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dock.mini .dock-video { max-height: 0; }
.dock-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; }
.dock-thumb { width: 64px; height: 36px; object-fit: cover; display: none; }
.dock.mini .dock-thumb { display: block; }
.dock-meta { min-width: 0; }
.dock-title { font-weight: 650; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-sub { color: var(--mute); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-ctl { display: flex; }
.ic { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--mute); cursor: pointer; font-size: 1.15rem; transition: color .2s; }
.ic:hover { color: var(--bone); }
.ic-main { color: var(--bone); }

/* ---------- motion ---------- */
html.still { scroll-behavior: auto; }
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.js .reveal.in { animation: rise 1s var(--ease) both; }
.js .hero-face img { animation: face 2.2s var(--ease) both; }
.js .hero-copy > * { animation: rise 1.1s var(--ease) both; }
.js .hero-tag { animation-delay: .25s !important; }
.js .hero-name { animation-delay: .35s !important; }
.js .hero-act { animation-delay: .5s !important; }
@keyframes face { from { opacity: 0; filter: contrast(1.06) brightness(0); transform: scale(1.04); } to { opacity: 1; filter: contrast(1.06) brightness(1); transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal.in { animation: none; }
  .js .hero-face img, .js .hero-copy > * { animation: none; }
  .playing-live .eq span { animation: none; height: 70%; }
  .dock, .dock-video, body { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .menu-b { display: inline-flex; align-items: center; }
  .nav { display: none; }
  .bar.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px;
  }
  .bar.open .nav a { padding: 14px 0; font-size: 1.15rem; color: var(--bone); border-bottom: 1px solid var(--rule); }
  .bar.open .nav .nav-book { border: 0; margin: 0; color: var(--wine-hi); }
  .hw-grid, .about-grid, .book-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 560px; }
  .words-grid, .ask { grid-template-columns: 1fr; }
  .words-index { position: static; flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--rule); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .wi { flex: none; border-bottom: 0; border-right: 1px solid var(--rule); padding: 12px 16px; }
  .wi:first-child { border-left: 1px solid var(--rule); }
  .about-photo img { aspect-ratio: 16 / 10; }
  .hero-face img { margin-left: 30vw; }
}
@media (max-width: 599px) {
  body { font-size: 16px; }
  .bar { gap: 8px; height: 58px; }
  .mark-en { font-size: 1.3rem; }
  .social a { width: 40px; }
  .hero { align-items: end; }
  .hero-face { align-items: flex-start; padding-top: 58px; }
  .hero-face img { height: auto; width: 118vw; margin-left: 0; max-width: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%); mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
    -webkit-mask-composite: source-over; mask-composite: add; }
  .hero-copy { padding-bottom: 28px; }
  .hero-act .btn-wine { width: 100%; justify-content: center; }
  .hero-act { gap: 4px 20px; margin-top: 22px; }
  .notify-row { flex-direction: column; }
  .notify input[type=text] { border-right: 1px solid var(--rule); }
  .notify .btn { width: 100%; justify-content: center; margin-top: 8px; }
  .row { grid-template-columns: 1.8rem 1fr; gap: 12px; }
  .row-meta { grid-column: 2; text-align: left; margin-top: -8px; }
  .catalog .row { grid-template-columns: 96px 1fr; }
  .catalog .row-n { display: none; }
  .catalog .row-meta { grid-column: 2; }
  .thumb { width: 96px; grid-row: span 2; align-self: start; }
  .catalog .eq { left: 40px; }
  .music-head { grid-template-columns: 1fr; }
  .seg { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .credits div { grid-template-columns: 1fr; gap: 4px; }
  .reader-paras li { padding-left: 1.9rem; }
  .p-am { font-size: 1.12rem; }
  .ask .book-send .btn { width: 100%; justify-content: center; }
  .book-form { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .book-send .btn { width: 100%; justify-content: center; }
  .dock { right: 0; bottom: 0; width: 100%; border-inline: 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .dock-ctl [data-dock="prev"] { display: none; }
}
