:root {
  --night: #121a2c;
  --night-2: #1c2540;
  --mist: #eaf0f6;
  --mist-2: #dbe4ee;
  --foam: #f8f7f3;
  --sand: #efe8dc;
  --linen: #ece8e0;
  --cloud: #b9c7e2;
  --ink: #1a1f2b;
  --soft: #3d4352;
  --muted: #66707f;
  --brass: #d8a85a;
  --wine: #7f2630;
  --wine-lt: #b6464c;
  --rust: #8f2a2e;
  --line: rgba(26, 31, 43, 0.13);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", sans-serif;
  --cjk: "Noto Serif SC", serif;
  --ar: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", "Arabic Typesetting", serif;
  --max: 1120px;
  --frame-r: 56px 56px 32px 32px;
  --frame-r-inset: 44px 44px 22px 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% 8%, rgba(122, 150, 196, 0.16), transparent 55%),
    radial-gradient(800px 500px at 0% 70%, rgba(126, 170, 150, 0.12), transparent 55%),
    var(--mist);
  font: 17px/1.6 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 460; letter-spacing: -0.02em; margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rust);
}
.eyebrow.gold { color: var(--brass); }
.sr { display: grid; gap: 0; }
.sr input, .sr textarea { margin-top: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-weight: 500;
}
.btn.brass { background: var(--brass); color: var(--night); }
.btn.brass:hover { background: #e6bc76; }
.btn { transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn.line { border-color: rgba(185, 199, 226, 0.45); color: var(--foam); background: transparent; }
.btn.line:hover { border-color: var(--brass); color: var(--brass); }
.btn.ink { background: var(--ink); color: var(--foam); width: 100%; }
.btn.ink:hover { background: var(--rust); }
.btn.cream { background: var(--foam); color: var(--night); }
.btn.cream:hover { background: var(--brass); color: var(--night); }

#top, #book, #journey, #talks, #writing, #archive, #honors, #about, #contact { scroll-margin-top: 84px; }

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  background: var(--night);
  color: var(--foam);
}
.brand {
  margin-right: auto;
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  flex-wrap: wrap;
}
.brand b { font-family: var(--serif); font-weight: 460; font-size: 1.2rem; letter-spacing: 0.16em; }
.brand .zh { font-family: var(--cjk); color: var(--brass); font-size: 0.95rem; letter-spacing: 0.12em; }
.ar {
  font-family: var(--ar);
  font-weight: 500;
  direction: rtl;
  unicode-bidi: isolate;
  letter-spacing: 0;
  line-height: 1;
  font-feature-settings: "calt" 1, "liga" 1, "rlig" 1;
}
.brand .ar { color: var(--brass); font-size: 1.2rem; }
.bar nav { display: flex; align-items: center; gap: clamp(10px, 1.1vw, 16px); flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { text-decoration: none; font-size: clamp(0.78rem, 1.05vw, 0.86rem); color: rgba(246, 251, 251, 0.82); letter-spacing: 0.02em; white-space: nowrap; }
.bar nav a:hover { color: var(--brass); }
.nav-buy {
  padding: 7px 14px !important;
  border-radius: 999px;
  background: var(--brass);
  color: var(--night) !important;
}
.burger {
  display: none;
  background: none;
  color: var(--foam);
  border: 1px solid rgba(246, 251, 251, 0.35);
  padding: 5px 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100svh - 72px);
  min-height: 620px;
  max-height: 980px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(560px 460px at 76% 46%, rgba(216, 168, 90, 0.2), transparent 64%),
    radial-gradient(760px 520px at 0% 100%, rgba(122, 150, 196, 0.16), transparent 62%),
    radial-gradient(700px 380px at 30% 0%, rgba(143, 42, 46, 0.18), transparent 60%),
    linear-gradient(180deg, #141c30 0%, var(--night) 55%, #0f1524 100%);
  color: var(--foam);
}
.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
  opacity: 0.25;
  animation: twinkle 3.6s ease-in-out infinite;
}
.stars i:nth-child(1)  { left: 6%;  top: 7%;  width: 3px; height: 3px; animation-duration: 2.8s; }
.stars i:nth-child(2)  { left: 15%; top: 14%; animation-duration: 4.4s; animation-delay: -1.1s; }
.stars i:nth-child(3)  { left: 24%; top: 5%;  animation-duration: 3.2s; animation-delay: -2.4s; }
.stars i:nth-child(4)  { left: 37%; top: 11%; width: 3px; height: 3px; background: #f3dfb8; animation-duration: 5.1s; animation-delay: -0.6s; }
.stars i:nth-child(5)  { left: 49%; top: 4%;  animation-duration: 3.8s; animation-delay: -3.1s; }
.stars i:nth-child(6)  { left: 61%; top: 9%;  animation-duration: 2.6s; animation-delay: -1.8s; }
.stars i:nth-child(7)  { left: 74%; top: 5%;  width: 3px; height: 3px; animation-duration: 4.8s; animation-delay: -2.2s; }
.stars i:nth-child(8)  { left: 86%; top: 12%; animation-duration: 3.4s; animation-delay: -0.4s; }
.stars i:nth-child(9)  { left: 95%; top: 7%;  width: 3px; height: 3px; background: #f3dfb8; animation-duration: 2.9s; animation-delay: -1.6s; }
.stars i:nth-child(10) { left: 3%;  top: 34%; animation-duration: 4.2s; animation-delay: -2.8s; }
.stars i:nth-child(11) { left: 4%;  top: 76%; animation-duration: 3.5s; animation-delay: -0.9s; }
.stars i:nth-child(12) { left: 97%; top: 26%; animation-duration: 5.2s; animation-delay: -3.4s; }
.stars i:nth-child(13) { left: 96%; top: 70%; width: 3px; height: 3px; animation-duration: 3.1s; animation-delay: -1.3s; }
.stars i:nth-child(14) { left: 89%; top: 86%; animation-duration: 4.6s; animation-delay: -2.1s; }
.stars i:nth-child(15) { left: 68%; top: 88%; animation-duration: 2.7s; animation-delay: -0.2s; }
.stars i:nth-child(16) { left: 8%;  top: 91%; animation-duration: 4.9s; animation-delay: -3.6s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.65); }
  46% { opacity: 1; transform: scale(1); }
  62% { opacity: 0.28; transform: scale(0.75); }
  78% { opacity: 0.92; transform: scale(1); }
}
.hero-inner, .hero-rail { position: relative; z-index: 1; }
.hero-inner {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(20px, 4vh, 44px) 0 clamp(12px, 2vh, 24px);
}
.hero-copy { max-width: 36rem; }
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(18px, 3vh, 28px);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cloud);
}
.kicker span {
  padding: 5px 12px;
  border: 1px solid rgba(216, 168, 90, 0.55);
  border-radius: 999px;
  color: var(--brass);
  letter-spacing: 0.16em;
}
.hero h1 {
  font-size: clamp(3.6rem, 8.2vw, 7.4rem);
  line-height: 0.88;
  font-weight: 420;
  letter-spacing: -0.035em;
}
.hero h1 em { display: block; font-style: italic; color: var(--brass); margin-left: 0.04em; }
.sub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(16px, 2.4vh, 24px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--cloud);
}
.sub:before { content: ""; width: 44px; height: 1px; background: var(--wine-lt); flex: none; }
.pitch { margin: clamp(14px, 2.2vh, 22px) 0 0; max-width: 31rem; color: rgba(236, 232, 224, 0.78); }
.pitch b { color: var(--linen); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(22px, 3.4vh, 34px) 0 0; }

.count {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  max-width: 31rem;
  margin-top: clamp(22px, 3.6vh, 36px);
  padding-top: clamp(16px, 2.4vh, 22px);
  border-top: 1px solid rgba(167, 187, 225, 0.22);
}
.count-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cloud);
  white-space: nowrap;
}
.count strong {
  display: block;
  font-family: var(--serif);
  font-weight: 420;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--foam);
  font-variant-numeric: tabular-nums;
}
.count span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(167, 187, 225, 0.8);
}

.stage {
  position: relative;
  justify-self: center;
  height: min(100%, 640px);
  aspect-ratio: 0.72;
  max-width: 100%;
}
.arch {
  position: absolute;
  inset: 0;
  border-radius: var(--frame-r);
  border: 1px solid rgba(216, 168, 90, 0.7);
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 168, 90, 0.28), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44'><path d='M22 0L44 22L22 44L0 22Z' fill='none' stroke='%23D8A85A' stroke-opacity='.12'/></svg>"),
    linear-gradient(180deg, #232d48 0%, #151c2e 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.arch:after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: var(--frame-r-inset);
  border: 1px solid rgba(216, 168, 90, 0.28);
}
.jacket {
  position: absolute;
  inset: 10% 14%;
  z-index: 2;
  margin: 0;
  display: grid;
  place-items: center;
}
.jacket img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 2px 6px 6px 2px;
  box-shadow: -18px 28px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.seal {
  position: absolute;
  right: -22px;
  bottom: 16%;
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--linen);
  border: 1px solid rgba(216, 168, 90, 0.6);
  box-shadow: 0 0 0 5px rgba(143, 42, 46, 0.25), 0 16px 30px -10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  gap: 8px;
  transform: rotate(-8deg);
}
.seal span { display: block; line-height: 1; letter-spacing: 0.12em; }
.seal b { display: block; margin: 0; font-family: var(--serif); font-weight: 460; font-size: 1.35rem; letter-spacing: 0; line-height: 0.95; color: var(--brass); }

.hero-rail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(167, 187, 225, 0.14);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(167, 187, 225, 0.7);
}
.hero-rail span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.hero-rail span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.85;
  flex-shrink: 0;
}

.book { padding: 88px 0; }
.book-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.pull { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; }
.pull em { color: var(--rust); font-style: italic; }
.lede { margin: 18px 0 0; max-width: 36rem; color: var(--soft); }
.spec {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 24px 20px;
}
.spec div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.spec span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.spec .btn { margin: 16px 0 8px; }
.pubnote { margin: 0; text-align: center; font-size: 0.84rem; color: var(--muted); }
.pubnote a { font-weight: 500; }

.journey {
  padding: 88px 0;
  background:
    radial-gradient(700px 400px at 88% 30%, rgba(201, 164, 92, 0.16), transparent 70%),
    var(--night);
  color: var(--foam);
}
.journey h2 { font-size: clamp(2.1rem, 4vw, 3rem); margin: 0 0 14px; max-width: 22ch; }
.j-lede {
  margin: 0 0 36px;
  max-width: 42ch;
  color: rgba(246, 251, 251, 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
}
.jgrid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.jmap { width: 100%; min-width: 0; margin: 0; overflow: visible; }
.jtext { max-width: 36ch; }
.jnum {
  font-family: var(--serif);
  font-size: 6.4rem;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--brass);
}
.jplace { margin: 8px 0 0; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.jtext h3 { font-size: 2rem; margin: 8px 0; }
.jtext p:last-of-type { color: rgba(246, 251, 251, 0.78); max-width: 32ch; }
.jctl { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.jctl button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--brass);
  cursor: pointer;
}
.jdots { display: flex; gap: 8px; }
.jdots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(246, 251, 251, 0.28); cursor: pointer; }
.jdots i.on { background: var(--brass); width: 22px; border-radius: 8px; }
.jmap-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1010 / 666;
}
.world-mask {
  position: absolute;
  inset: 0;
  background: #8aa3c4;
  -webkit-mask: url("world.png") center / 100% 100% no-repeat;
  mask: url("world.png") center / 100% 100% no-repeat;
}
.jmap-stage svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.jroute {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.jn { cursor: pointer; }
.jn .dot { fill: var(--brass); transition: fill 0.2s, r 0.2s; }
.jn .ring { fill: rgba(216, 168, 90, 0.16); stroke: none; }
.jn.on .ring { fill: rgba(216, 168, 90, 0.28); }
.jn.on .dot { fill: #f3e2c0; }
.jn text {
  fill: #f4efe4;
  font: 600 28px var(--sans);
  letter-spacing: 0.04em;
  paint-order: stroke;
  stroke: #10182a;
  stroke-width: 7px;
  stroke-linejoin: round;
}
.jn.on text { fill: var(--brass); }

.sect-nudge { margin: 18px 0 0; font-size: 0.92rem; }
.sect-nudge a { color: var(--rust); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(143, 42, 46, 0.35); }
.sect-nudge a:hover { color: var(--ink); border-bottom-color: var(--brass); }
.sect-nudge--light { margin-top: 28px; }
.sect-nudge--light a { color: var(--brass); border-bottom-color: rgba(216, 168, 90, 0.45); }
.sect-nudge--light a:hover { color: var(--foam); }
.inline-nudge { color: var(--rust); font-weight: 500; text-decoration: none; white-space: nowrap; }
.inline-nudge:hover { color: var(--ink); text-decoration: underline; }
.catalog-note .inline-nudge { color: var(--rust); }
.kicker-link { color: var(--brass); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(216, 168, 90, 0.45); }
.kicker-link:hover { color: var(--foam); }
.hero .cta { flex-wrap: wrap; }
.about-talk { margin-top: 20px !important; }
.about-talk .btn { width: auto; display: inline-block; }

.talks {
  padding: 88px 0;
  background:
    radial-gradient(640px 380px at 12% 20%, rgba(185, 199, 226, 0.35), transparent 70%),
    linear-gradient(180deg, var(--mist) 0%, var(--foam) 100%);
}
.talks-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 28px; }
.talks-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 6px 0 0; }
.talks-note { max-width: 38ch; margin: 0; color: var(--soft); font-size: 0.95rem; line-height: 1.55; }
.talk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.talk-card {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--foam);
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
}
button.talk-card { cursor: pointer; width: 100%; }
button.talk-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(26, 31, 43, 0.08); }
.talk-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mist-2);
}
.talk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.talk-soon {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(26, 31, 43, 0.82);
  color: var(--foam);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.talk-body { padding: 14px 14px 16px; }
.talk-body strong { display: block; font-family: var(--serif); font-weight: 460; font-size: 1.05rem; line-height: 1.25; }
.talk-body span { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--muted); }
.talk-modal-card { width: min(720px, 100%); text-align: left; }
.talk-modal-card h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 14px; }
.talk-embed { position: relative; aspect-ratio: 16 / 9; background: var(--night); border-radius: 12px; overflow: hidden; }
.talk-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.writing { padding: 88px 0; }
.sec-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 6px; }
.sec-head p { max-width: 28ch; margin: 0; color: var(--muted); }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat--three { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  padding: 24px 22px 20px;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); }
.card strong { font-family: var(--serif); font-weight: 460; font-size: 1.22rem; line-height: 1.2; }
.card p { margin: 0; color: var(--soft); font-size: 0.94rem; }
.card .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--rust); }
.ribbon {
  position: absolute;
  top: 0;
  right: 18px;
  width: 62px;
  background: var(--brass);
  color: var(--night);
  font-size: 0.56rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 6px 12px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
}

.catalog { padding: 80px 0; background: var(--foam); }
.catalog-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 22px; }
.catalog-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.catalog-note { max-width: 34ch; margin: 0; color: var(--soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.filters button {
  background: transparent;
  border: 1px solid rgba(28, 44, 50, 0.28);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  color: var(--night);
}
.filters button[aria-pressed="true"] { background: var(--night); color: var(--foam); border-color: var(--night); }
.count-n { margin-left: auto; color: var(--muted); font-size: 0.82rem; }
.rows { border-top: 1px solid var(--night); }
.row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.row[hidden] { display: none; }
.row .k { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.row .t { display: block; font-family: var(--serif); font-size: 1.18rem; line-height: 1.25; }
.row .pub { display: block; margin-top: 3px; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.row .when { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
a.row:hover { background: var(--sand); }

.honors { padding: 80px 0; background: var(--sand); }
.honors h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 28px; }
.honors ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--night);
}
.honors li { padding: 22px 22px 22px 0; border-bottom: 1px solid rgba(28, 44, 50, 0.16); }
.honors small { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.honors strong { display: block; font-family: var(--serif); font-weight: 460; font-size: 1.25rem; margin: 6px 0 4px; }
.honors span { color: var(--muted); font-size: 0.92rem; }

.about { padding: 88px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: start;
}
.about-copy { min-width: 0; }
.portrait {
  margin: 0;
  width: 100%;
  border-radius: var(--frame-r);
  overflow: hidden;
  border: 1px solid rgba(216, 168, 90, 0.45);
  box-shadow: 0 28px 56px -24px rgba(26, 31, 43, 0.35);
  background: linear-gradient(90deg, #291107 0%, #3e1d0c 12%, #543523 42%, #5a3d2b 50%, #5a463b 68%, #463f39 82%, #3a3a3a 100%);
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08) translateY(11%);
  transform-origin: center top;
}
.about h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  margin: 6px 0 16px;
  white-space: nowrap;
}
.about p { margin: 0 0 12px; color: var(--soft); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 !important; }
.langs span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mist-2);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink);
}
.fine { color: var(--muted) !important; font-size: 0.9rem; }
.quote {
  margin-top: 18px !important;
  padding: 16px 18px;
  border-left: 3px solid var(--rust);
  background: var(--foam);
  border-radius: 0 12px 12px 0;
  font-size: 0.94rem;
}
.quote a { color: var(--rust); font-weight: 500; }

.contact { background: var(--night); color: var(--foam); padding: 80px 0; }
.contact h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 6px 0 12px; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact p { color: rgba(246, 251, 251, 0.75); max-width: 32ch; }
.contact form { display: grid; gap: 12px; }
.contact input, .contact textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(246, 251, 251, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--foam);
}
.contact input::placeholder, .contact textarea::placeholder { color: rgba(246, 251, 251, 0.45); }
.contact .wpcf7-form { display: grid; gap: 12px; margin: 0; }
.contact .wpcf7-form p { margin: 0; max-width: none; display: grid; gap: 12px; }
.contact .wpcf7-form br { display: none; }
.contact .wpcf7-submit {
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: 12px 20px;
  font: inherit;
  font-weight: 500;
}
.contact .wpcf7-form-control-wrap { display: block; }
.contact .wpcf7-form-control { width: 100%; }
.contact .wpcf7-spinner { margin-left: 8px; }
.contact .wpcf7-response-output {
  margin: 0;
  padding: 0;
  border: none;
  color: var(--brass);
  font-size: 0.92rem;
}
.contact .wpcf7-not-valid-tip { color: #e8b4a8; font-size: 0.82rem; margin-top: 4px; }
.contact .wpcf7-list-item { margin: 0; }
.form-ok { color: var(--brass) !important; }

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px max(24px, calc((100% - var(--max)) / 2)) 28px;
  background: var(--night);
  color: rgba(246, 251, 251, 0.6);
  font-size: 0.82rem;
}
footer a { color: var(--foam); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(21, 40, 54, 0.55);
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 36px 32px 28px;
  background: var(--sand);
  border-radius: 18px;
  text-align: center;
}
.modal-card h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 8px 0 10px; }
.modal-card p { color: var(--soft); }
.modal-x {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
}
.news-form { display: grid; gap: 10px; margin-top: 18px; }
.news-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--foam);
}

@media (max-width: 980px) {
  .hero-inner, .book-grid, .jgrid, .about-grid, .cgrid, .feat { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr 1fr; }
  .sec-head, .catalog-head, .talks-head { flex-direction: column; align-items: start; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-inner { padding: 32px 0 28px; gap: 40px; }
  .stage { height: auto; width: min(380px, 100%); }
  .seal { right: -6px; }
  .count { flex-wrap: wrap; gap: 16px 22px; }
  .hero-rail { flex-wrap: wrap; justify-content: flex-start; gap: 10px 14px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait {
    width: 100%;
    max-width: min(380px, 100%);
    aspect-ratio: 0.72;
    height: auto !important;
    margin-inline: auto;
  }
  .portrait img {
    transform: scale(1.06) translateY(10%);
  }
  .about h2 { white-space: normal; }
}
@media (max-width: 720px) {
  .burger { display: inline-block; }
  .bar { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; }
  .bar nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 8px;
  }
  .bar nav.open { display: flex; }
  .feat, .honors ul { grid-template-columns: 1fr; }
  .talk-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .row .when { text-align: left; }
  .count-n { margin-left: 0; width: 100%; }
  .kicker { flex-wrap: wrap; gap: 10px; }
  .jn text { font-size: 42px; stroke-width: 10px; }
}
.page-main { padding: 80px 0; min-height: 50vh; }
.page-main h1 { font-family: var(--serif); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars i { animation: none; opacity: 0.7; }
}
