/* ባሕረ ቀመር · Bahrekemer — editorial styles
   Amharic mode: Amharic only (header/nav stay bilingual).
   English mode: Amharic with English beside it; reading pages have an Amharic / Side by side / English slider. */

/* ---------- Fonts (self-hosted; Ethiopic files cover only Ethiopic, so Latin falls through) ---------- */
@font-face { font-family: "Noto Serif Ethiopic"; font-weight: 300; font-display: swap; src: url(../fonts/noto-serif-ethiopic-ethiopic-300-normal.woff2) format("woff2"); unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF; }
@font-face { font-family: "Noto Serif Ethiopic"; font-weight: 400; font-display: swap; src: url(../fonts/noto-serif-ethiopic-ethiopic-400-normal.woff2) format("woff2"); unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF; }
@font-face { font-family: "Noto Serif Ethiopic"; font-weight: 600; font-display: swap; src: url(../fonts/noto-serif-ethiopic-ethiopic-600-normal.woff2) format("woff2"); unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF; }
@font-face { font-family: "Noto Serif Ethiopic"; font-weight: 700; font-display: swap; src: url(../fonts/noto-serif-ethiopic-ethiopic-700-normal.woff2) format("woff2"); unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF; }
@font-face { font-family: "Noto Serif Ethiopic"; font-weight: 800; font-display: swap; src: url(../fonts/noto-serif-ethiopic-ethiopic-800-normal.woff2) format("woff2"); unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF; }
@font-face { font-family: "Noto Sans Ethiopic"; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-ethiopic-ethiopic-400-normal.woff2) format("woff2"); unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF; }
@font-face { font-family: "Noto Sans Ethiopic"; font-weight: 500; font-display: swap; src: url(../fonts/noto-sans-ethiopic-ethiopic-500-normal.woff2) format("woff2"); unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF; }
@font-face { font-family: "Noto Sans Ethiopic"; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-ethiopic-ethiopic-600-normal.woff2) format("woff2"); unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF; }
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-display: swap; src: url(../fonts/bodoni-moda-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/bodoni-moda-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-display: swap; src: url(../fonts/bodoni-moda-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Newsreader"; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/newsreader-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 500; font-display: swap; src: url(../fonts/newsreader-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(../fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url(../fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url(../fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #111111;
  --ink-2: #2b2b2b;
  --grey: #4a4a4a;
  --grey-2: #5c5c5c;
  --hair: #d9d9d9;
  --wash: #f4f2ee;
  --accent: #8a1c14;
  --serif: "Noto Serif Ethiopic", "Newsreader", Georgia, serif;
  --en: "Newsreader", "Noto Serif Ethiopic", Georgia, serif;
  --display: "Bodoni Moda", "Noto Serif Ethiopic", Georgia, serif;
  --sans: "Noto Sans Ethiopic", "Instrument Sans", system-ui, sans-serif;
  --wrap: 1280px;
  --prose: 44rem;
}
html.big { font-size: 118.75%; }

/* ---------- Language ----------
   span pairs (labels, titles): Amharic always; English joins in English mode or when reading bilingually.
   .lx pairs: only the site language shows.
   block pairs (paragraphs): follow the reading slider. */
html[data-lang="am"][data-read="am"] span[lang="en"]:not(.lx),
html[data-lang="am"] .lx[lang="en"],
html[data-lang="en"] .lx[lang="am"],
html[data-read="am"] [lang="en"]:not(span):not(html):not(.lx):not(.always),
html[data-read="en"] [lang="am"]:not(span):not(html):not(.lx):not(.always),
html[data-lang="en"] :is(.more-link, .text-link, .btn, .sec-head a) > span[lang="am"] { display: none !important; }
span[lang="am"] + span[lang="en"]:not(.lx)::before { content: " · "; }
:is(.more-link, .text-link, .btn, .sec-head a) > span[lang="en"]::before { content: none !important; }
:is(h1, h2, h3, h4, p, li, dd, figcaption, .blk):not(.kicker):not(.label):not(.byline):not(.roles):not(.eyebrow) > span[lang="am"] + span[lang="en"]:not(.lx),
:is(h1, h2, h3, h4) > a > span[lang="am"] + span[lang="en"] { display: block; }
:is(h1, h2, h3, h4, p, li, dd, figcaption, .blk):not(.kicker):not(.label):not(.byline):not(.roles):not(.eyebrow) > span[lang="am"] + span[lang="en"]:not(.lx)::before,
:is(h1, h2, h3, h4) > a > span[lang="am"] + span[lang="en"]::before { content: none !important; }
:is(h1, h2, h3, h4) > span[lang="en"], :is(h1, h2, h3, h4) > a > span[lang="en"], .blk > span[lang="en"] {
  font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1.2; margin-top: .2em;
}
:is(p, div, blockquote, ol, ul, li, dd)[lang="en"] { font-family: var(--en); line-height: 1.62; }
:is(p, div, blockquote)[lang="en"]:not(.lx) { font-size: 1.05em; }
:not(html)[lang="en"] :is(h2, h3, h4), :is(h2, h3, h4)[lang="en"] { font-family: var(--display); font-weight: 500; letter-spacing: 0; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.95;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--hair); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 99; font-family: var(--sans); font-size: .9rem; }
.skip:focus { left: 1rem; }

/* Labels: small spaced capitals in English, plain Amharic beside them */
.kicker, .label, .byline, .roles, .eyebrow {
  font-family: var(--sans); font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  line-height: 1.6; margin: 0 0 .5rem;
}
:is(.kicker, .label, .byline, .roles, .eyebrow) span[lang="am"],
:is(.kicker, .label, .byline, .roles, .eyebrow):not(:has(span)) { letter-spacing: 0; font-size: .875rem; text-transform: none; }
.kicker, .eyebrow { color: var(--accent); }
.label, .byline, .roles { color: var(--grey); font-weight: 500; }
.more-link, .text-link {
  display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none;
  font-family: var(--sans); font-size: .9375rem; font-weight: 600; letter-spacing: .02em;
  border-bottom: 1px solid currentColor; line-height: 1.3; padding-top: .2rem;
}
.more-link:hover, .text-link:hover { color: var(--accent); }
.more-link.light { color: #fff; }
.more-link.light:hover { color: #e9e6e1; }

/* ---------- Utility bar ---------- */
.util { border-bottom: 1px solid var(--hair); }
.util-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1.25rem; min-height: 3rem; }
.today { margin: 0; font-family: var(--sans); font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.today span[lang="en"] { font-size: .8125rem; color: var(--grey); }
.util-ctl { display: flex; align-items: center; gap: .9rem; }
.size-btn {
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 .6rem; border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer; font-family: var(--serif); line-height: 1;
}
.size-btn .s1 { font-size: .75rem; } .size-btn .s2 { font-size: 1.125rem; margin-left: .1rem; }
.size-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-switch { display: flex; gap: .15rem; }
.ls {
  min-height: 2.75rem; padding: 0 .55rem; background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--grey); cursor: pointer; font-size: .9375rem;
}
.ls-am { font-family: var(--sans); } .ls-en { font-family: "Instrument Sans", system-ui, sans-serif; font-size: .875rem; }
html[data-lang="am"] .ls-am, html[data-lang="en"] .ls-en { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Navigation (bilingual in both modes) ---------- */
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.75rem; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.5rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--accent); }
.n-am { font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.35; }
.n-en { font-family: "Instrument Sans", system-ui, sans-serif; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); line-height: 1.3; }
.menu-btn { display: none; }

/* Home masthead */
.masthead { text-align: center; padding-top: 1.9rem; }
.mast-title { display: inline-block; text-decoration: none; }
.mast-lines { display: block; }
.mast-am { display: block; font-weight: 800; font-size: clamp(3.4rem, 9vw, 7.25rem); line-height: 1.08; letter-spacing: -.015em; }
.mast-tag { display: block; margin-top: .35rem; font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.3; }
.mast-by { display: block; margin-top: .35rem; font-weight: 400; font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.5; color: var(--ink-2); }
.mast-sub { display: block; margin-top: .75rem; font-family: "Instrument Sans", system-ui, sans-serif; font-size: .75rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--grey); line-height: 1.6; }
.navrow { position: relative; margin-top: 1.5rem; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); display: flex; justify-content: center; min-height: 3.75rem; }

/* Inner pages: compact bar */
.topbar { border-bottom: 1px solid var(--ink); position: relative; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 4rem; }
.brand { font-weight: 800; font-size: 1.75rem; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.topbar .nav { gap: 0 1.4rem; }
.topbar .n-am { font-size: .9375rem; }

@media (max-width: 1080px) {
  .topbar .nav, .masthead .nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: 0 .6rem;
    background: transparent; border: 0; cursor: pointer; color: var(--ink); font-family: var(--sans); font-size: 1rem;
  }
  .menu-en { font-family: "Instrument Sans", system-ui, sans-serif; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-left: .3rem; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .topbar .nav.open, .masthead .nav.open {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff;
    padding: .5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--ink); box-shadow: 0 18px 30px -20px rgba(0,0,0,.35);
  }
  .nav.open a { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: .6rem; border-bottom: 1px solid var(--hair); min-height: 3.25rem; text-align: left; }
  .nav.open a[aria-current] { border-bottom-color: var(--accent); }
  .nav.open .n-am { font-size: 1.0625rem; }
}
@media (max-width: 420px) { .topbar .menu-label { display: none; } .nav.open { grid-template-columns: 1fr !important; } }

/* ---------- Home: front page ---------- */
.front { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 0 3.5rem; padding: 2.75rem 0 4.5rem; align-items: start; }
.front-lead { padding-right: 3.5rem; border-right: 1px solid var(--hair); }
.front-list .sec-head { margin-bottom: .25rem; }
.ui-new { color: var(--grey); }
.wlist { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.wlist li { border-bottom: 1px solid var(--hair); }
.wlist a { display: block; padding: .95rem 0 1rem; text-decoration: none; }
.wlist .kicker { display: block; margin-bottom: .1rem; }
.wl-title { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.wl-title span[lang="en"] { font-size: .9em; }
.wlist a:hover .wl-title > span[lang="am"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.lead-title { font-size: clamp(2rem, 3.6vw, 3.15rem); line-height: 1.3; letter-spacing: -.005em; margin: .25rem 0 .75rem; }
.lead-title a, .side-item h3 a, .more-item h3 a, .writings-list a { text-decoration: none; }
.lead-title a:hover, .side-item h3 a:hover, .more-item h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.lead-title span[lang="en"] { font-size: .66em; margin-top: .3em; }
.dek { color: var(--ink-2); font-size: 1.1875rem; line-height: 2; margin: 0 0 1rem; }
.dek[lang="en"] { font-family: var(--en); font-size: 1.3rem; line-height: 1.5; }
.dek p { margin: 0 0 1rem; }
.dek > p:first-child::first-letter { float: left; font-weight: 800; font-size: 3.4em; line-height: .95; padding: .06em .12em 0 0; }
.dek[lang="en"] > p:first-child::first-letter { font-family: var(--display); font-weight: 400; font-size: 4em; line-height: .8; padding-top: .08em; }
.lead-verse { white-space: normal; line-height: 2; }
.byline-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
.byline-row .byline { margin: 0; }
.side-item { padding: 0 0 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--hair); }
.side-item:last-child { border-bottom: 0; margin-bottom: 0; }
.side-item h3 { font-size: 1.375rem; line-height: 1.45; margin: .15rem 0 .45rem; }
.side-item h3 span[lang="en"] { font-size: .85em; }
.side-ex { margin: 0; font-size: 1.0625rem; line-height: 1.9; color: var(--grey); }
.side-ex[lang="en"] { font-family: var(--en); font-size: 1.0625rem; line-height: 1.5; }
.big-num { font-weight: 300; font-size: 5.5rem; line-height: 1; margin: .5rem 0 .25rem; }
.aside-title { font-size: 1.5rem; margin: .5rem 0 .4rem; }
.aside-title span[lang="en"] { font-style: normal; font-size: 1.15em; }
.aside-text { font-size: 1.0625rem; line-height: 1.9; color: var(--ink-2); }
.aside-text[lang="en"] { font-size: 1.0625rem; line-height: 1.55; }
.aside-links { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.aside-links li { border-bottom: 1px solid var(--hair); }
.aside-links a { display: flex; align-items: center; min-height: 3.25rem; text-decoration: none; font-size: 1.0625rem; }
.aside-links a::after { content: "→"; margin-left: auto; padding-left: .5rem; }
.aside-links a span[lang="en"] { font-family: var(--en); font-style: italic; color: var(--grey); }
.aside-links a span[lang="en"]::before { content: "\00a0\00a0"; }

/* Feature band */
.band { background: var(--ink); color: #fff; }
.band-inner { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0 4rem; padding: 5rem 0; align-items: center; }
.band-num-col { border-left: 1px solid #444; padding-left: 4rem; }
.band .big-num { color: #fff; margin: .25rem 0 .1rem; }
.band-num-title { color: #fff; font-size: 1.5rem; margin: .25rem 0 .5rem; }
.band-num-title span[lang="en"] { font-style: normal; font-size: 1.15em; }
.band-num-text { color: #d4d4d4; font-size: 1.0625rem; line-height: 1.9; margin: 0 0 1.25rem; }
.band-num-text[lang="en"] { line-height: 1.55; }
.band-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; }
.band .kicker { color: #cfcfcf; }
.band-quote { margin: .75rem 0 1.75rem; }
.band-am { font-weight: 300; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.55; margin: 0 0 .75rem; }
.band-en { font-family: var(--display) !important; font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.75rem) !important; line-height: 1.4; color: #d4d4d4; margin: 0; }

/* Blocks */
.block { padding: 4.5rem 0 1rem; }
.block + .block { padding-top: 2.5rem; }
.rule-head { display: flex; align-items: center; gap: 1.25rem; font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 .5rem; }
.rule-head::before, .rule-head::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.rule-head span[lang="en"] { display: inline !important; font-style: normal !important; font-family: "Instrument Sans", system-ui, sans-serif !important; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; border-top: 3px double var(--ink); padding-top: .75rem; margin-bottom: 1.75rem; }
.sec-head h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0; }
.sec-head h2 span[lang="en"] { display: inline !important; font-family: "Instrument Sans", system-ui, sans-serif !important; font-style: normal !important; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; }
.sec-head h2 span[lang="en"]::before { content: " · " !important; }
html[data-lang="en"] .sec-head h2 span[lang="am"] + span[lang="en"] { margin-left: .6em; }
.sec-head a { font-family: var(--sans); font-size: .9375rem; font-weight: 600; text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.sec-head a:hover { color: var(--accent); }

/* Contents */
.contents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr)); column-gap: 4rem; }
.contents li { border-bottom: 1px solid var(--hair); }
.contents a { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; gap: .25rem 1rem; align-items: baseline; padding: 1.15rem 0; text-decoration: none; }
.contents a:hover .c-title > span[lang="am"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.c-no { font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--accent); }
.c-title { font-size: 1.3rem; font-weight: 600; line-height: 1.45; }
.c-title span[lang="en"] { font-size: 1.15rem; }
.c-desc { display: block; font-size: 1rem; line-height: 1.8; color: var(--grey); margin-top: .2rem; }
.c-desc[lang="en"] { font-family: var(--en); line-height: 1.5; font-size: 1.05rem; }
.c-arrow { font-size: 1.1rem; }

/* More writings */
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 2rem; }
.more-item { border-top: 1px solid var(--hair); padding-top: 1rem; }
.more-item h3 { font-size: 1.3rem; line-height: 1.5; margin: .2rem 0 0; }
.more-item h3 span[lang="en"] { font-size: .85em; }

/* Profile */
.profile { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-top: 4.5rem; }
.profile-inner { display: flex; flex-wrap: wrap; gap: 2.5rem 4.5rem; align-items: center; padding: 4.5rem 0; }
.profile-pic { flex: 1 1 22rem; margin: 0; }
.profile-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.profile-text { flex: 1.3 1 28rem; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 4.5rem; align-items: flex-start; }
.profile-head { flex: 1 1 22rem; min-width: 0; }
.profile-body { flex: 1.2 1 24rem; min-width: 0; max-width: 46rem; }
.profile-inner:has(.profile-pic) .profile-text { display: block; }
.profile-name { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.2; margin: .25rem 0 .75rem; }
.profile-name span[lang="en"] { font-style: normal; font-size: 1.2em; line-height: 1.05; letter-spacing: -.01em; }
.roles { margin-bottom: 1.5rem; }
.profile-body { padding-top: .4rem; }
.profile-bio p { font-size: 1.125rem; line-height: 2; }
.profile-bio [lang="en"] p { font-size: 1.1875rem; line-height: 1.6; }

/* Painting strip */
.paint-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 2rem 1.75rem; }
.paint-strip a { display: flex; flex-direction: column; gap: .75rem; text-decoration: none; }
.hp-frame { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wash); box-shadow: 0 14px 28px -18px rgba(0,0,0,.45); }
.hp-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.paint-strip a:hover .hp-frame img { transform: scale(1.03); }
.hp-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.hp-title span[lang="en"] { font-family: var(--display) !important; font-style: italic; font-weight: 400; }

/* Book strip */
.book-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.book-strip .cover { margin-bottom: .6rem; padding: 1rem; }
.book-strip .cover-title { font-size: 1.05rem; }
.book-strip a:hover .cover { transform: translateY(-3px); box-shadow: 0 14px 24px -16px rgba(0,0,0,.4); }
.book-strip a { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; }
.mini-cover {
  aspect-ratio: 2 / 3; background: var(--wash); border: 1px solid #e0ddd7; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; font-weight: 700; font-size: 1.125rem; line-height: 1.5; margin-bottom: .5rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.book-strip a:hover .mini-cover { transform: translateY(-3px); box-shadow: 0 14px 24px -16px rgba(0,0,0,.4); }
.bs-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.bs-title span[lang="en"] { font-size: 1rem; }
.bs-meta { font-family: var(--sans); font-size: .875rem; color: var(--grey); }
.bs-meta span[lang="en"]::before { content: none !important; }
html[data-lang="am"] .bs-meta span[lang="en"], html[data-lang="en"] .bs-meta span[lang="am"] { display: none !important; }

/* ---------- Inner pages ---------- */
.page-hero { text-align: center; padding: 3.25rem 0 2.25rem; }
.page-hero .wrap { max-width: 52rem; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.3; letter-spacing: -.01em; margin: .25rem 0 .75rem; }
.page-hero h1 span[lang="en"] { font-size: .7em; }
.page-hero .lede { color: var(--ink-2); max-width: 44rem; margin: 0 auto; font-size: 1.1875rem; line-height: 1.9; }
.page-hero .lede span[lang="en"] { font-family: var(--en); font-size: 1.25rem; line-height: 1.5; color: var(--grey); margin-top: .35rem; }
.byline-box { display: inline-block; margin: 1.25rem auto 0; padding: .8rem 0 .7rem; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); max-width: 38rem; }
.byline-box .byline { margin: 0 0 .2rem; }
.source { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--grey); }
.source span[lang="en"] { font-family: var(--en) !important; font-size: 1rem !important; }
.page-body { padding-bottom: 5rem; }

/* Reading slider */
.reader {
  position: sticky; top: .6rem; z-index: 30; display: flex; width: max-content; max-width: 100%; margin: 0 auto 2.75rem;
  padding: 3px; gap: 2px; background: #fff; border: 1px solid var(--ink); border-radius: 999px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.35);
}
.reader button {
  min-height: 2.6rem; padding: 0 1.05rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  cursor: pointer; font-family: var(--sans); font-size: .9375rem; font-weight: 500; white-space: nowrap;
}
.reader button[data-read-set="en"] { font-family: "Instrument Sans", system-ui, sans-serif; font-size: .875rem; }
.reader .rb-en { font-family: "Instrument Sans", system-ui, sans-serif; font-size: .8125rem; }
html[data-lang="am"] .rb-en { display: none; }
html[data-read="am"] [data-read-set="am"], html[data-read="both"] [data-read-set="both"], html[data-read="en"] [data-read-set="en"] { background: var(--ink); color: #fff; }
@media (max-width: 440px) { .reader .rb-en { display: none; } .reader button { padding: 0 .85rem; } }

/* Side-by-side rows */
html[data-read="both"] .is-reader { --prose: 76rem; }
.bi > :last-child { margin-bottom: 1.1em; }
html[data-read="both"] .bi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3.5rem; align-items: start; }
html[data-read="both"] .bi > * { margin-top: 0; }
html[data-read="both"] .bi-head { margin-top: 1.5rem; }
@media (max-width: 760px) {
  html[data-read="both"] .bi { grid-template-columns: minmax(0, 1fr); }
  html[data-read="both"] .bi > [lang="en"] { color: var(--ink-2); padding-bottom: .4rem; }
}

/* Prose */
.prose { max-width: var(--prose); margin-inline: auto; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.75rem; margin-top: 2em; }
.prose h3 { font-size: 1.375rem; margin: 2em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose blockquote { margin: 1.5em 0; padding: 0; color: var(--ink-2); }
.prose strong { font-weight: 700; }
.article p:not(.continued) { hyphens: manual; }
.article > .bi-group > .bi:first-child > p::first-letter,
.article > .bi:first-child > div > p:first-child::first-letter {
  float: left; font-weight: 800; font-size: 3.6em; line-height: .95; padding: .08em .14em 0 0;
}
.article > .bi-group > .bi:first-child > p[lang="en"]::first-letter,
.article > .bi:first-child > div[lang="en"] > p:first-child::first-letter { font-family: var(--display); font-weight: 400; font-size: 4.2em; line-height: .8; padding-top: .1em; }
.end-mark { text-align: center; font-size: 1.5rem; margin: 2rem 0 0; }
.prevnext { max-width: var(--prose); margin: 3rem auto 0; padding-top: 1.25rem; border-top: 3px double var(--ink); display: flex; justify-content: space-between; gap: 1.5rem; }
.prevnext a { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; max-width: 48%; min-height: 2.75rem; }
.prevnext .pn-next { text-align: right; margin-left: auto; }
.prevnext .label { margin: 0; }
.pn-title { font-size: 1.125rem; font-weight: 600; line-height: 1.5; }
.pn-title span[lang="en"] { font-size: 1rem; }
.prevnext a:hover .pn-title > span[lang="am"] { text-decoration: underline; text-decoration-thickness: 1px; }
.all-link { text-align: center; margin: 2.5rem 0 0; }
.cite { margin: 2rem 0 0; font-size: 1rem; color: var(--grey); }
.cite cite { font-style: italic; }
.continued { color: var(--grey); }
.continued[lang="en"], [lang="en"] > .continued { font-style: italic; }
.ornament { text-align: center; margin: 1.5rem auto; }
.ornament span { display: none; }
.ornament::before { content: "፨"; font-size: 1.4rem; }
.placeholder { color: var(--grey); background: var(--wash); border: 1px dashed #bdbab4; padding: .9rem 1.1rem; font-size: 1rem; }
.page-title { text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.section-head p { color: var(--grey); }

/* Writings index */
.writings-list { list-style: none; margin: 0 auto; padding: 0; max-width: 52rem; border-top: 3px double var(--ink); }
.writings-list li { border-bottom: 1px solid var(--hair); }
.writings-list a { display: block; padding: 1.5rem 0; }
.writings-list .kicker { display: block; }
.wi-title { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.45; }
.wi-title span[lang="en"] { font-size: 1.2rem; }
.wi-ex { display: block; margin-top: .4rem; color: var(--grey); font-size: 1.0625rem; line-height: 1.9; }
.wi-ex[lang="en"] { font-family: var(--en); line-height: 1.55; }
.writings-list a:hover .wi-title > span[lang="am"] { text-decoration: underline; text-decoration-thickness: 1px; }

/* Poems */
.poem { padding: 2.5rem 0; border-bottom: 1px solid var(--hair); }
.poem:first-child { padding-top: 0; }
.poem h2 { font-size: 1.9rem; text-align: center; margin: 0 0 1.25rem; }
.verse { white-space: pre-line; font-size: 1.1875rem; line-height: 2.05; }
.verse[lang="en"] { font-family: var(--en); font-style: italic; font-size: 1.2rem; line-height: 1.75; }
.verse-pair { max-width: 62rem; margin-inline: auto; }
html[data-read="both"] .verse-pair .bi { grid-template-columns: max-content max-content; justify-content: center; column-gap: 5rem; }
@media (max-width: 860px) { html[data-read="both"] .verse-pair .bi { grid-template-columns: minmax(0, 1fr); } }
html[data-read="am"] .verse-pair, html[data-read="en"] .verse-pair { max-width: 34rem; margin-inline: auto; }
.poems .cite, .poem-article + .end-mark { text-align: center; }

/* Books */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 2rem; }
.shelf-item { margin: 0; }
.cover {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem 1.25rem; background: var(--wash); border: 1px solid #e0ddd7; color: var(--ink);
  transition: transform .35s ease, box-shadow .35s ease;
}
.cover-title { position: relative; font-size: 1.3rem; font-weight: 700; line-height: 1.5; }
.cover-no { position: absolute; bottom: 1.2rem; left: 0; right: 0; font-size: 1.05rem; color: var(--accent); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shelf-item:hover .cover { transform: translateY(-4px); box-shadow: 0 18px 28px -18px rgba(0,0,0,.45); }
.shelf-item figcaption { margin-top: 1rem; }
.shelf-item h3 { font-size: 1.125rem; line-height: 1.5; margin: 0 0 .15rem; }
.shelf-item figcaption p { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.shelf-item figcaption p[lang="en"] { font-family: var(--display); font-style: italic; }
.shelf-meta { font-family: var(--sans); color: var(--grey) !important; font-size: .875rem !important; margin-top: .35rem !important; }
.shelf-meta span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif; display: inline !important; }
html[data-lang="en"] .shelf-meta span[lang="am"], html[data-lang="am"] .shelf-meta span[lang="en"] { display: none !important; }
.shelf-meta span[lang="en"]::before { content: none !important; }

/* the newest book, large */
.newest { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 3.5rem; align-items: center; max-width: 60rem; margin: 0 auto 4.5rem; padding-bottom: 4rem; border-bottom: 3px double var(--ink); }
.newest-cover img { display: block; width: 100%; height: auto; box-shadow: 0 22px 40px -24px rgba(0,0,0,.55); }
.newest h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.3; margin: .35rem 0 0; }
.newest-sub { margin: .75rem 0 0; font-size: 1.25rem; font-weight: 600; color: var(--ink-2); }
.newest-sub span[lang="en"] { font-family: var(--display); font-style: italic; font-weight: 400; }
.newest-about { margin: 1rem 0 0; font-size: 1.0625rem; color: var(--ink-2); }
.newest-about span[lang="en"] { font-family: var(--en); }
.newest-motto { margin: 1.5rem 0 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--accent); }
.newest-motto p { margin: 0; font-size: 1.125rem; line-height: 1.8; }
.newest-motto p[lang="en"] { font-family: var(--display); font-style: italic; margin-top: .25rem; }
.newest .shelf-meta { margin: 1.25rem 0 .5rem !important; font-size: .9375rem !important; }
.mini-cover.has-img { padding: 0; border: 0; overflow: hidden; }
.mini-cover.has-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .newest { grid-template-columns: minmax(0, 1fr); gap: 2rem; } .newest-cover { max-width: 17rem; margin: 0 auto; } }
@media (max-width: 900px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; } .cover-title { font-size: 1.1rem; } }
.buy, .guest { max-width: var(--prose); margin: 4.5rem auto 0; padding-top: 2.25rem; border-top: 3px double var(--ink); }
.buy h2, .guest h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.buy-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.buy-list li { padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.buy-list .shop { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.buy-list .shop span[lang="en"] { font-size: 1.05rem; }
.buy-list .where { display: block; margin-top: .35rem; font-family: var(--sans); color: var(--ink-2); font-size: 1rem; }
.buy-list .where span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif; }
.guest p { color: var(--ink-2); }

/* Paintings */
.intro { text-align: center; margin: 0 auto 3rem; }
.gallery { columns: 3 17rem; column-gap: 2.25rem; }
.gallery figure { margin: 0 0 2.5rem; break-inside: avoid; }
.gallery .frame { display: block; }
.gallery .frame img { width: 100%; height: auto; box-shadow: 0 14px 28px -18px rgba(0,0,0,.45); }
.gallery .ph { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--wash); color: #b9b5ae; font-size: 2rem; font-weight: 300; }
.gallery figcaption { margin-top: .85rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.gallery figcaption span[lang="en"] { font-family: var(--display) !important; font-style: italic; font-weight: 400; }
.gallery figcaption small { display: block; font-family: var(--sans); font-weight: 400; color: var(--grey); font-size: .875rem; margin-top: .2rem; }
.gallery figcaption small span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif !important; font-style: normal !important; }
.gallery figcaption a { display: block; text-decoration: none; }
.gallery figcaption a:hover > span[lang="am"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.gallery .frame img { transition: opacity .2s; }
.gallery .frame:hover img { opacity: .92; }
.enquire { text-align: center; margin: 1rem 0 0; }

/* one painting, full size */
.painting-page { padding-top: 1.5rem; padding-bottom: 1rem; }
.pt-back { margin: 0 0 1.25rem; font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.pt-back a { text-decoration: none; }
.pt-back a:hover { color: var(--accent); }
.pt-back span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif; }
html[data-lang="en"] .pt-back span[lang="am"] { display: none; }
.pt-back span[lang="en"]::before { content: none !important; }
.pt-figure { margin: 0; text-align: center; }
.pt-figure img { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 9rem); box-shadow: 0 22px 40px -24px rgba(0,0,0,.5); }
.pt-figure figcaption { max-width: var(--prose); margin: 1.75rem auto 0; }
/* several photos of one work (a group of small pieces): one at a time, with ‹ 1 / 6 › under it */
.pt-slides img[hidden] { display: none; }
.pt-slide-nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1rem; font-family: "Instrument Sans", system-ui, sans-serif; }
.ps-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ps-btn:hover { background: var(--ink); color: #fff; }
.ps-count { min-width: 4rem; font-size: 1rem; color: var(--ink-2); }
.pt-title { margin: 0; font-size: 1.75rem; font-weight: 700; line-height: 1.35; }
.pt-about { max-width: var(--prose); margin: 1.25rem auto 0; text-align: left; }
.pt-about p { font-size: 1.0625rem; line-height: 1.8; margin: 0 0 .8rem; }
.pt-about p[lang="en"] { font-family: var(--en); }
.pt-meta { margin: .5rem 0 0; font-family: var(--sans); color: var(--grey); font-size: 1rem; }
.pt-meta span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif !important; font-style: normal !important; }
.painting-page .prevnext { margin-top: 2.25rem; }

/* a book's page: front and back of the cover */
.flip-stage { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.flip-face { margin: 0; }
.flip-face + .flip-face { margin-left: 1.5rem; }               /* no script: both covers side by side */
.js .flip-face:not(.is-on) { display: none; }
.js .flip-face + .flip-face { margin-left: 0; }
.flip-face img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 12rem); box-shadow: 0 22px 40px -24px rgba(0,0,0,.5); }
.flip-arrow, .flip-tabs { display: none; }
.js .flip-arrow { display: grid; place-items: center; flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper, #fff); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 0 .2rem; }
.js .flip-arrow:hover { background: var(--ink); color: #fff; }
.js .flip-arrow[hidden] { visibility: hidden; display: grid; }
.js .flip-tabs { display: flex; justify-content: center; gap: .5rem; margin: 1.25rem 0 0; }
.flip-tabs button { min-height: 2.75rem; padding: 0 1.1rem; border: 1px solid var(--hair); border-radius: 999px; background: none; color: var(--ink-2); font-family: var(--sans); font-size: .9375rem; font-weight: 600; cursor: pointer; }
.flip-tabs button span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif; }
.flip-tabs button span[lang="en"]::before { content: " · " !important; }
.flip-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.pt-caption { max-width: var(--prose); margin: 1.75rem auto 0; text-align: center; }
.pt-caption .newest-sub { margin-top: .6rem; }
.book-page .enquire { margin-top: 1.5rem; }
a.newest-cover { display: block; }
.cover-link { display: block; text-decoration: none; color: inherit; }
.shelf-item h3 a { text-decoration: none; }
.shelf-item h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.cover.has-img { padding: 0; }
.book-drawn { max-width: 20rem; margin: 0 auto; }

/* sold out: a faint band across the cover */
.cover.is-sold-out img, .flip-face.is-sold-out img, .mini-cover.is-sold-out img { filter: grayscale(.35) opacity(.88); }
.cover.is-sold-out, .flip-face.is-sold-out { position: relative; }
.sold-out { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 1;
  display: flex; justify-content: center; align-items: baseline; gap: .6em; padding: .55em .5em;
  background: rgba(255,255,255,.78); border-top: 1px solid rgba(0,0,0,.18); border-bottom: 1px solid rgba(0,0,0,.18);
  color: rgba(17,17,17,.78); font-family: var(--sans); font-size: .9375rem; font-weight: 600; line-height: 1.2; pointer-events: none; }
.sold-out span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif; font-size: .75em; letter-spacing: .14em; text-transform: uppercase; }
.sold-out span[lang="en"]::before { content: none !important; }
.flip-face .sold-out { font-size: 1.125rem; }
.sold-note { text-align: center; margin: 1.25rem 0 0; font-family: var(--sans); font-weight: 600; color: var(--grey); }
.book-motto { max-width: 34rem; margin: 1.25rem auto 0; text-align: left; }
.book-drawn .cover { box-shadow: 0 22px 40px -24px rgba(0,0,0,.35); }
.book-drawn .cover-title { font-size: 1.75rem; }
.newest h2 a { text-decoration: none; }
.newest h2 a:hover > span[lang="am"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.newest-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; }

/* Contact */
.contact-card { max-width: var(--prose); margin: 0 auto; border-top: 3px double var(--ink); padding-top: 1.75rem; }
.contact-intro { font-size: 1.1875rem; color: var(--ink-2); }
.contact-card dl { margin: 1.5rem 0 0; display: grid; grid-template-columns: minmax(7rem, auto) 1fr; }
.contact-card dt, .contact-card dd { padding: .8rem 0; border-bottom: 1px solid var(--hair); margin: 0; }
.contact-card dt { font-family: var(--sans); font-size: .9375rem; color: var(--grey); padding-right: 1.5rem; }
.contact-card dt span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.contact-card dd a { text-decoration-color: var(--hair); }
.contact-action { margin: 2rem 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 3rem; background: var(--ink); color: #fff; text-decoration: none; padding: 0 1.5rem; border: 1px solid var(--ink); font-family: var(--sans); font-size: 1rem; font-weight: 600; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: var(--ink); }
@media (max-width: 520px) { .contact-card dl { grid-template-columns: 1fr; } .contact-card dt { border-bottom: 0; padding-bottom: 0; } }

/* Numbers */
.num-intro, .num-close { max-width: var(--prose); margin-inline: auto; }
.num-intro h2, .num-close h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.notice { max-width: var(--prose); margin: 3rem auto; padding: 1.75rem 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.notice h2 { font-size: 1.375rem; margin-bottom: .6em; }
.notice .sig { margin: 0; color: var(--grey); font-size: 1rem; }
.num-sources-head { margin-top: 4.5rem; }
.num-entry { max-width: var(--prose); margin-inline: auto; padding: 2.5rem 0; border-top: 1px solid var(--hair); }
.num-entry h3 { font-size: 1.25rem; line-height: 1.55; margin: 0 0 1.25rem; }
.num-n { display: inline-block; min-width: 2rem; color: var(--accent); font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 600; }
.num-n + span[lang="am"] { display: inline; }
.verdict { color: var(--ink); padding-left: 1rem; border-left: 2px solid var(--accent); }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; -webkit-overflow-scrolling: touch; }
.numtable { border-collapse: collapse; min-width: 100%; font-size: 1rem; line-height: 1.55; }
.numtable th { text-align: left; font-family: var(--sans); font-weight: 600; font-size: .8125rem; padding: .6rem 1rem; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.numtable th span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.numtable td { padding: .45rem 1rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
.numtable td span[lang="en"] { font-family: var(--en); color: var(--grey); }
.numtable tr.group-start td { border-top: 2px solid var(--hair); }
.numtable .c-n { color: var(--grey); width: 2.5rem; font-family: "Instrument Sans", system-ui, sans-serif; }
.numtable .c-akh { font-size: 1.2rem; white-space: nowrap; }
.numtable td.c-akh { width: 28%; }
.numtable .c-bk { white-space: nowrap; letter-spacing: .04em; width: 30%; }
.numtable .c-ar { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; font-family: var(--en); }
.numtable .c-code, .numtable .c-rd { white-space: nowrap; }
.namelist { columns: 2; column-gap: 2.5rem; padding-left: 1.5rem; margin: 0 0 1.5rem; max-width: var(--prose); }
.namelist li { padding: .15rem 0; break-inside: avoid; }
.namelist li::marker { color: var(--accent); }
.num-seal { text-align: center; color: var(--accent); font-size: 1.3rem; letter-spacing: .08em; margin-top: 3rem; }

/* Introduction */
.megbiya { margin-inline: auto; }
.megbiya h3, .megbiya .bi-head > * { font-size: 1.375rem; }
.epigraph { text-align: center; font-size: 1.35rem; line-height: 1.7; max-width: 34rem; margin: .5rem auto 0; }
.contribute-link { margin-top: 3rem; text-align: center; }

/* Key */
.key-toc { max-width: var(--prose); margin: 0 auto 3.5rem; padding: 1.25rem 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.key-toc .eyebrow { text-align: center; }
.key-toc ol { columns: 2; column-gap: 2.5rem; margin: .5rem 0 0; padding-left: 1.6rem; font-size: 1rem; line-height: 1.55; }
.key-toc li { padding: .3rem 0; break-inside: avoid; }
.key-toc li::marker { color: var(--accent); font-family: "Instrument Sans", system-ui, sans-serif; font-size: .85em; }
.key-toc a { text-decoration: none; display: inline-block; padding: .15rem 0; }
.key-toc a:hover { text-decoration: underline; }
.key-toc a span[lang="en"] { font-family: var(--en); font-style: italic; color: var(--grey); }
@media (max-width: 640px) { .key-toc ol { columns: 1; } }
.key-sec { max-width: var(--prose); margin: 0 auto; padding: 2.5rem 0; border-top: 1px solid var(--hair); scroll-margin-top: 5rem; }
.key-sec h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.key-sec h3 { font-size: 1.25rem; margin: 2em 0 .5em; }
.key-sec .table-wrap { margin: 1.25rem 0 1.5rem; }
.key-sec p.label { color: var(--grey); margin-bottom: .25rem; text-transform: none; letter-spacing: 0; font-size: 1rem; font-family: inherit; }
.key-sec p.example { text-align: center; font-size: 1.15rem; padding: 1rem 1.25rem; background: var(--wash); }
.key-sec p.num-seal { text-align: center; }
ol.labeled { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .75rem; }
ol.labeled li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem; }
ol.labeled .lbl { color: var(--accent); font-weight: 700; }
ol.worked li { background: var(--wash); padding: .6rem .9rem; }
.term-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1rem 0 1.5rem; }
.term-list li { padding: .25rem .8rem; border: 1px solid var(--hair); }

/* Qene */
.qene-essay { margin: 0 auto 4rem; }
.qene-essay .contribute-link { text-align: center; }
.qene-list .qene { max-width: var(--prose); margin: 0 auto; padding: 3rem 0; border-top: 3px double var(--ink); }
.qene .eyebrow { margin-bottom: .25rem; }
.qene h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.qene h3 { font-size: 1.2rem; margin: 2em 0 .5em; }
.verse.geez { font-size: 1.3rem; line-height: 2.1; padding: 1.25rem 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); text-align: center; white-space: pre-line; }
.semwerq { margin: 1.5rem 0; display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: .75rem 1.5rem; }
.semwerq dt { color: var(--accent); font-weight: 700; }
.semwerq dd { margin: 0; }
@media (max-width: 560px) { .semwerq { grid-template-columns: 1fr; gap: .2rem; } .semwerq dd { margin-bottom: .8rem; } }
.worksheet { margin: 1.25rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 1rem; }
.ws-title { margin: 0; padding: .5rem 0; font-family: var(--sans); font-size: .875rem; font-weight: 600; border-bottom: 1px solid var(--hair); }
.ws-title:empty, .ws-title:has(span:empty) { display: none; }
.worksheet > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--hair); }
.worksheet > div:last-child { border-bottom: 0; }
.ws-l { line-height: 1.8; }
.ws-r { white-space: nowrap; font-variant-numeric: tabular-nums; font-family: var(--en); }
.ws-sum { background: var(--wash); padding-inline: .75rem !important; }
.ws-sum .ws-l { color: var(--accent); font-weight: 700; }
.w { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-right: .6rem; }
.ch { display: inline-block; min-width: 1.7em; text-align: center; padding: 0 .2em; border: 1px solid var(--hair); background: #fff; line-height: 1.6; }
.ch sub { font-size: .65em; color: var(--accent); margin-left: 1px; }
.grand { font-size: 1.15rem; text-align: right; margin: 1rem 0 1.5rem; }
.grand b { color: var(--accent); font-size: 1.3em; }
.note { margin-top: 2rem; padding: .9rem 1.2rem; border: 1px dashed #bdbab4; color: var(--grey); font-size: 1rem; }
.note p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 3px double var(--ink); margin-top: 2rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2.25rem 4rem; justify-content: space-between; padding: 3rem 0 2.25rem; }
.foot-id { flex: 1 1 18rem; min-width: 0; }
.foot-name { font-weight: 800; font-size: 2.4rem; line-height: 1.15; margin: 0 0 .5rem; }
.foot-tag { font-size: 1rem; line-height: 1.85; margin: 0; }
.foot-tag span[lang="en"] { font-family: var(--en) !important; font-size: 1rem; line-height: 1.5; color: var(--grey); }
.foot-nav { flex: 1 1 17rem; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; align-content: start; }
.foot-nav a { min-height: 2.75rem; display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.foot-nav a:hover .n-am { text-decoration: underline; }
.foot-nav .n-am { font-size: .9375rem; }
.foot-contact { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; gap: .2rem; font-family: var(--sans); font-size: .9375rem; line-height: 1.7; }
.foot-contact .label { margin-bottom: .3rem; }
.foot-contact span[lang="en"] { display: none; }
html[data-lang="en"] .foot-contact span[lang="en"] { display: inline; }
html[data-lang="en"] .foot-contact span[lang="am"] { display: none; }
.foot-contact span[lang="en"]::before { content: none; }
.copy { padding: 1.1rem 0 1.75rem; border-top: 1px solid var(--hair); font-family: "Instrument Sans", system-ui, sans-serif; font-size: .8125rem; color: var(--grey); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .mast-title, .mast-lines, .mast-photo, .page-hero .wrap > * { animation: rise 1s cubic-bezier(.2,.65,.25,1) both; }
  .page-hero .wrap > :nth-child(2) { animation-delay: .1s; }
  .page-hero .wrap > :nth-child(3) { animation-delay: .25s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .util, .topbar, .masthead .navrow, .reader, .site-footer, .prevnext { display: none; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 980px) {
  .front { grid-template-columns: minmax(0, 1fr); }
  .front-lead { border: 0; padding: 0 0 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--ink); }
  .band-inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .band-num-col { border-left: 0; padding-left: 0; border-top: 1px solid #444; padding-top: 2.5rem; }
  .book-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .paint-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .wrap { width: calc(100% - 2.25rem); }
  .band-inner { padding: 3.5rem 0; }
  .block { padding-top: 3.5rem; }
  .profile-inner { padding: 3rem 0; }
  .page-hero { padding: 2.25rem 0 1.5rem; }
  .masthead { padding-top: 1.25rem; }
  .navrow { margin-top: 1rem; min-height: 3.25rem; }
  .util-bar { justify-content: center; padding: .35rem 0; }
  .today { width: 100%; text-align: center; }
  .contents a { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
  .worksheet > div { flex-wrap: wrap; gap: .25rem .75rem; }
  .ws-r { margin-left: auto; }
  .grand { text-align: left; }
  .numtable { font-size: .95rem; }
  .numtable th, .numtable td { padding: .4rem .6rem; }
  .verse.geez { font-size: 1.12rem; }
  .namelist { columns: 1; }
  .prevnext { flex-direction: column; }
  .prevnext a { max-width: none; }
  .prevnext .pn-next { text-align: left; margin-left: 0; }
}

/* ---------- Phones (≤640px): simple version for older readers; desktop unchanged ----------
   One list on the home page, a home button on every page, bigger text, Amharic only (or English only),
   nothing that moves, footer kept at the bottom. */
.m-only, .phone-bar, .phone-home, .phone-end, .pb-bottom, .size-btn .s-mob { display: none; }
@media (max-width: 640px) {
  html, html.big { font-size: 112.5%; }   /* phones are already large; no size button here */
  .d-only, .util, .topbar, .page-index .navrow, .page-index .mast-sub, .reader, .prevnext, .all-link,
  .page-index .front { display: none !important; }
  .m-only { display: block; }

  /* top: back-home pill + one language link */
  .phone-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 1rem; border-bottom: 1px solid var(--hair); }
  .pb-home { display: inline-flex; align-items: center; gap: .45rem; min-height: 3rem; padding: 0 1rem; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-family: var(--sans); font-size: 1rem; font-weight: 600; }
  .pb-home span[aria-hidden] { font-size: 1.3rem; line-height: 1; }
  .pb-home span[lang="en"]::before { content: none !important; }
  html[data-lang="am"] .pb-home span[lang="en"], html[data-lang="en"] .pb-home span[lang="am"] { display: none !important; }
  .pb-lang { min-height: 3rem; padding: 0 .6rem; background: none; border: 0; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--ink); }
  .pb-to-en { font-family: "Instrument Sans", system-ui, sans-serif; }
  .pb-to-am { font-family: var(--sans); }
  html[data-lang="en"] .pb-to-en, html[data-lang="am"] .pb-to-am { display: none; }

  /* only one language at a time on phones (Amharic mode: Amharic; English mode: English) */
  html[data-lang="en"] span[lang="am"]:not(.always) { display: none !important; }
  html[data-lang="en"] span[lang="am"] + span[lang="en"]::before { content: none !important; }
  .n-en, .menu-en { display: none; }

  /* home */
  .page-index .masthead { padding: 0; border-bottom: 0; }
  .page-index .mast-title, .page-index .mast-lines { display: none; }
  .pb-brand { display: inline-flex; align-items: center; flex: none; white-space: nowrap; min-height: 3rem; font-weight: 800; font-size: min(2.9rem, 13vw); line-height: 1.15; letter-spacing: -.01em; text-decoration: none; }
  .pb-lang { flex: none; }
  .page-index .phone-bar { padding: .75rem 1rem .5rem; align-items: center; border-bottom: 0; }
  .page-index .mast-am { font-size: 2.9rem; }
  .mast-id { margin-top: 0; }
  .mast-tagline { margin: 0; font-size: 1.375rem; font-weight: 700; line-height: 1.4; }
  .mast-tagline span[lang="en"] { font-family: var(--en) !important; font-style: normal !important; font-weight: 600; font-size: 1.3rem !important; margin: 0; }
  .mast-who { margin: .15rem 0 0; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); text-wrap: balance; }
  .mast-who .nw { white-space: nowrap; }
  html[data-lang="am"] .mast-who { font-size: min(1.0625rem, 4.05vw); letter-spacing: -.005em; }
  .mast-who span[lang="en"] { font-family: var(--en) !important; font-style: normal !important; font-size: 1.0625rem !important; margin: 0; }
  .mast-what { display: none; }
  .phone-home { display: block; padding: 1.25rem 1rem 1.5rem; }
  .latest-btn { display: block; margin: 0 0 1.75rem; padding: .8rem 1rem .85rem; background: var(--wash); color: var(--ink); border: 1px solid #dcd8d1; border-left: 4px solid var(--accent); border-radius: 4px; text-decoration: none; }
  .latest-btn .nb-label { color: var(--accent); }
  .lb-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
  .latest-btn .nb-title { margin-top: .15rem; font-size: 1.25rem; }
  .nb-label { display: block; font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: #e9c9c5; }
  .nb-label span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif; }
  .nb-title { display: block; margin-top: .3rem; font-size: 1.375rem; font-weight: 700; line-height: 1.45; }
  .nb-title span[lang="en"] { font-family: var(--en) !important; font-style: normal !important; font-weight: 500; margin: 0; font-size: 1.3rem; line-height: 1.35; }
  .lb-read { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--accent); }
  .lb-read span[aria-hidden] { font-size: 1.4rem; line-height: 1; }
  .ph-head { margin: 0 .25rem .35rem; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--grey); }
  .phone-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
  .phone-rows li { border-bottom: 1px solid #cfcfcf; }
  .phone-rows a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4rem; padding: .3rem .2rem; text-decoration: none; }
  .pr-title { font-size: 1.3rem; font-weight: 600; line-height: 1.4; }
  .pr-title span[lang="en"] { font-family: var(--en) !important; font-style: normal !important; font-weight: 500; margin: 0; }
  .pr-arrow { font-size: 1.75rem; line-height: 1; color: var(--accent); }

  /* inner pages */
  .page-hero { padding: 1.75rem 0 1.25rem; }
  .page-hero h1 { font-size: 1.85rem; }
  .page-hero .lede { font-size: 1.0625rem; }
  .page-hero h1 span[lang="en"], .page-hero .lede span[lang="en"] { font-family: var(--en) !important; font-style: normal !important; margin: 0; font-size: 1em; }
  .page-body { padding-bottom: 1rem; }
  .article p, .prose p { font-size: 1.1875rem; }
  :is(p, div, blockquote)[lang="en"]:not(.lx) { font-size: 1.0625em; }

  /* end of a writing: next piece, all writings */
  .phone-end { display: flex; flex-direction: column; gap: .8rem; margin: 2rem 0 0; }
  .next-btn { display: block; padding: 1rem 1.15rem 1.1rem; background: var(--ink); color: #fff; border-radius: 6px; text-decoration: none; }
  .big-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.5rem; padding: 0 1rem; border: 2px solid var(--ink); border-radius: 6px; text-decoration: none; font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; text-align: center; }
  .big-btn span[aria-hidden] { font-size: 1.3rem; line-height: 1; }
  .big-btn span[lang="en"] { font-family: "Instrument Sans", system-ui, sans-serif; }
  .big-btn span[lang="en"]::before { content: none !important; }
  .pb-bottom { display: block; width: calc(100% - 2.25rem); margin: 1.5rem auto 2rem; }

  /* all-writings list: big rows */
  .writings-list a { display: flex; flex-direction: column; padding: 1rem .2rem; min-height: 4.5rem; position: relative; padding-right: 2rem; }
  .writings-list a::after { content: "›"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.75rem; color: var(--accent); }
  .writings-list .wi-ex { display: none; }
  .wi-title { font-size: 1.125rem; }   /* titles fit on one line on most phones */
  .wi-title span[lang="en"] { font-family: var(--en) !important; font-style: normal !important; margin: 0; }

  /* footer stays at the bottom of every page */
  .site-footer { margin-top: 0; }
  .foot-name, .foot-contact { display: none; }
  .foot-grid { padding: 1.5rem 0 .75rem; }
  .foot-tag { font-size: 1.0625rem; }
  .foot-nav { display: none; }   /* the home page list and the back-home button already cover this */

  /* paintings */
  .gallery { columns: 1; }
  .gallery figcaption { font-size: 1.1875rem; }
  .gallery figcaption small { font-size: 1rem; }
  .pt-back { display: none; }                 /* the top bar already has the back button */
  .painting-page { padding-top: 1rem; }
  .pt-figure img { max-height: none; }
  .pt-title { font-size: 1.6rem; }
  .pt-title span[lang="en"], .gallery figcaption span[lang="en"] { font-family: var(--en) !important; font-style: normal !important; margin: 0; }
  .pt-meta { font-size: 1.0625rem; }
  .painting-page .enquire { margin-top: 1.5rem; }
  .js .flip-arrow { display: none !important; }
  .book-drawn { max-width: 15rem; }
  .book-drawn .cover-title { font-size: 1.4rem; }
  .flip-face img { max-height: none; }
  html:not(.js) .flip-face + .flip-face { margin: 1.25rem 0 0; }
  .flip-stage { flex-direction: column; gap: 0; }
  .js .flip-tabs { gap: .6rem; margin-top: 1.1rem; }
  .flip-tabs button { flex: 1; min-height: 3.5rem; border: 2px solid var(--ink); border-radius: 6px; font-size: 1.125rem; color: var(--ink); }
  html[data-lang="am"] .flip-tabs span[lang="en"], html[data-lang="en"] .flip-tabs span[lang="am"] { display: none; }
  .flip-tabs button span[lang="en"]::before { content: none !important; }
  .pt-caption .newest-sub span[lang="en"] { font-family: var(--en) !important; font-style: normal !important; }
}

/* The optional picture on the home page (site.json → masthead.photo): no frame, tucked right under the name,
   with the line under it close below — the name, picture and lines read as one block. */
.page-index .mast-title { vertical-align: top; }
.mast-photo { margin: -1.7rem auto .1rem; max-width: min(30rem, 80%); }
.mast-photo img { width: 100%; height: auto; display: block; }
.mast-photo + .mast-lines .mast-tag { margin-top: 0; }
@media (max-width: 640px) { .page-index .mast-photo { max-width: 78%; margin: -.5rem auto .2rem; } }
