:root {
  --ink: #082958;
  --blue: #0c58b8;
  --cyan: #08afe0;
  --pale: #e9f8fc;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --text: #1d2a39;
  --muted: #5d6875;
  --line: #dbe4ea;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 5px solid var(--cyan);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.mark {
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -.06em;
}
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 25px; }
.nav a {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav a:hover, .nav a:focus { color: var(--cyan); }

.hero {
  min-height: 530px;
  display: grid;
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(3,16,33,.92) 0%, rgba(3,16,33,.83) 36%, rgba(3,16,33,.18) 70%),
    url("assets/typewriter-hero.webp") center/cover no-repeat;
}
.hero-copy { max-width: 620px; padding: 70px 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .27em;
  text-transform: uppercase;
}
.identity-lines span { display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.1; }
.hero h1 { margin: 0; color: white; font-size: clamp(3.2rem, 7vw, 6.3rem); letter-spacing: -.045em; }
.hero .lead { margin: 20px 0 32px; max-width: 590px; font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.35; }

.button {
  display: inline-block;
  padding: 13px 21px;
  border: 2px solid var(--cyan);
  background: var(--cyan);
  color: #03182b;
  font-weight: 750;
  text-decoration: none;
}
.button:hover, .button:focus { background: white; border-color: white; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--blue); }
.button.secondary:hover, .button.secondary:focus { background: var(--ink); border-color: var(--ink); color: white; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 84px 0; }
.section.soft { background: var(--soft); }
.section.blue { background: var(--ink); color: white; }
.section.blue h2, .section.blue h3 { color: white; }
.section h2 { margin: 0 0 22px; font-size: clamp(2.35rem, 5vw, 4.3rem); letter-spacing: -.035em; }
.section h3 { font-size: 1.55rem; margin: 0 0 12px; }
.section-intro { max-width: 760px; font-size: 1.14rem; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.card { padding: 28px; background: white; border-top: 5px solid var(--cyan); box-shadow: 0 12px 35px rgba(8,41,88,.08); }
.card p { margin-bottom: 0; color: var(--muted); }
.book-list { display: grid; gap: 18px; }
.book-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.book-item:first-child { padding-top: 0; }
.book-item h3 { margin-bottom: 5px; }
.book-item cite { font-style: normal; }
.registered-mark { margin-left: .04em; font-size: .42em; line-height: 0; vertical-align: super; }
.book-item p { margin: 0; color: var(--muted); }
.text-link { color: var(--blue); font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.stack-box { padding: 34px; background: var(--pale); border-left: 7px solid var(--cyan); }
.stack-box h3 { font-size: 2rem; }
.authority-box { padding: 30px 34px; background: var(--pale); border-left: 7px solid var(--cyan); }
.authority-stat { padding: 16px 0; border-bottom: 1px solid rgba(8,41,88,.16); }
.authority-stat:last-child { padding-bottom: 0; border-bottom: 0; }
.authority-stat strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.1; }
.authority-stat span { display: block; margin-top: 5px; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.authority-stat cite { font-style: italic; }
.smallcaps { color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }

.work-hero { padding: 86px 0 74px; color: white; background: var(--ink); border-bottom: 8px solid var(--cyan); }
.work-hero .smallcaps { color: var(--cyan); }
.work-hero h1 { max-width: 900px; margin: 0 0 22px; color: white; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.045em; }
.work-hero .lead { max-width: 850px; margin: 0; color: white; font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.42; }
.work-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.work-index > div { padding: 25px; background: white; }
.work-index strong { display: block; color: var(--cyan); font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.work-index span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.credit-list { display: grid; gap: 0; }
.credit { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 27px 0; border-top: 1px solid var(--line); }
.credit:first-child { border-top: 0; padding-top: 0; }
.credit-kind { color: var(--blue); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.credit h3 { margin: 0 0 7px; font-size: 1.45rem; }
.credit p { margin: 0; color: var(--muted); }
.service-band { background: var(--pale); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.service-card { padding: 28px; background: white; border-top: 5px solid var(--cyan); box-shadow: 0 12px 35px rgba(8,41,88,.07); }
.service-card h3 { font-size: 1.35rem; }
.service-card p { margin-bottom: 0; color: var(--muted); }
.bio-block { max-width: 900px; }

.legacy {
  color: white;
  background: var(--ink);
}
.legacy h2 { color: white; }
.legacy .smallcaps { color: var(--cyan); }
.legacy .section-intro { color: white; }
.legacy-names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}
.legacy-names span {
  padding: 10px 14px;
  color: white;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.07);
  font-family: var(--serif);
  font-size: 1.06rem;
}
.legacy-names .and-more {
  color: #03182b;
  border-color: var(--cyan);
  background: var(--cyan);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.book-hero { background: var(--pale); border-bottom: 1px solid var(--line); }
.question-band { padding: 30px 0; background: var(--cyan); }
.question-band h1 { margin: 0; color: white; text-align: center; font-size: clamp(2rem, 5vw, 4rem); }
.book-hero-inner { display: grid; grid-template-columns: 330px 1fr; gap: 75px; align-items: center; padding: 70px 0; }
.book-cover-link {
  display: block;
  line-height: 0;
  transition: transform .2s ease;
}
.book-cover-link:hover,
.book-cover-link:focus-visible { transform: translateY(-4px); }
.book-cover-image {
  width: 100%;
  height: auto;
  border: 1px solid #cad4dc;
  box-shadow: 18px 22px 38px rgba(8,41,88,.18);
}
.book-copy h2 { margin: 0 0 9px; font-size: clamp(2.4rem, 5vw, 4.5rem); }
.book-copy .subtitle { margin: 0 0 9px; color: var(--blue); font-family: var(--serif); font-size: 1.55rem; }
.book-copy .authors { font-family: var(--serif); font-size: 1.3rem; }
.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 38px; }
.prompt { padding-top: 18px; border-top: 4px solid var(--cyan); color: var(--ink); font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.concept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 38px; }
.concept { padding: 28px; background: white; border-top: 5px solid var(--cyan); box-shadow: 0 12px 35px rgba(8,41,88,.07); }
.concept > span { color: var(--cyan); font-size: .76rem; font-weight: 850; letter-spacing: .14em; }
.concept h3 { margin: 8px 0 9px; }
.concept p { margin: 0; color: var(--muted); }
.quote { margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.35; }
.quote cite { display: block; margin-top: 18px; color: var(--cyan); font-family: var(--sans); font-size: .9rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.fact { padding: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.fact strong { display: block; color: var(--cyan); font-size: 1.25rem; }
.praise-section { background: var(--pale); }
.praise-section h2 { max-width: 930px; }
.praise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.praise-card { margin: 0; padding: 29px; background: white; border-bottom: 5px solid var(--cyan); box-shadow: 0 12px 35px rgba(8,41,88,.08); }
.praise-card p { margin: 0 0 24px; color: var(--ink); font-family: var(--serif); font-size: 1.4rem; line-height: 1.35; }
.praise-card cite { color: var(--blue); font-size: .77rem; font-style: normal; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.praise-card cite span { color: var(--muted); font-weight: 650; letter-spacing: 0; text-transform: none; }
.praise-note { max-width: 880px; margin: 30px 0 0; color: var(--muted); }

.footer { padding: 34px 0; color: white; background: #061b38; }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.footer p { margin: 0; }
.footer a { color: var(--cyan); }

@media (max-width: 820px) {
  .header-inner { align-items: flex-start; padding: 17px 0; }
  .nav { gap: 8px 15px; }
  .hero { min-height: 510px; background-position: 62% center; }
  .grid-2, .book-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .book-cover-link { width: min(310px, 88vw); margin: 0 auto; }
  .cards, .prompt-grid, .facts, .concept-grid, .praise-grid, .work-index, .service-grid { grid-template-columns: 1fr; }
  .credit { grid-template-columns: 1fr; gap: 8px; }
  .cards > * { grid-column: auto !important; }
}
@media (max-width: 580px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, 1160px); }
  .header-inner { display: block; }
  .mark { display: inline-block; margin-bottom: 14px; }
  .nav { justify-content: flex-start; }
  .nav a { font-size: .7rem; }
  .hero { min-height: 565px; background-position: 68% center; }
  .hero-copy { padding: 72px 0; }
  .section { padding: 62px 0; }
  .footer-inner { display: block; }
}
