:root {
  color-scheme: light;
  --ink: #101417;
  --ink-2: #1b2227;
  --ivory: #f7f2e7;
  --paper: #fffaf0;
  --paper-2: #eee6d5;
  --gold: #c59127;
  --gold-2: #e0bd69;
  --teal: #123e3f;
  --teal-2: #1d615e;
  --wine: #6c2934;
  --muted: #65635d;
  --line: rgba(16, 20, 23, 0.14);
  --shadow: 0 24px 80px rgba(16, 20, 23, 0.18);
  --max: 1180px;
  --header-height: 78px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 88px;
}

#top {
  scroll-margin-top: 0;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  color: var(--paper);
  font-size: 5rem;
}

h2 {
  margin-bottom: 20px;
  font-size: 3rem;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

p {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 14px 5vw;
  color: var(--paper);
  transition: background-color 220ms ease, box-shadow 220ms ease, min-height 220ms ease;
}

.site-header.is-scrolled,
.site-header.nav-visible {
  min-height: 68px;
  background: rgba(16, 20, 23, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: auto;
}

.brand span {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.brand small {
  margin-top: 4px;
  color: var(--gold-2);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  color: rgba(255, 250, 240, 0.82);
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--gold-2);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--paper);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
}

.nav-toggle span:not(.sr-only) {
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 82svh;
  overflow: hidden;
  align-items: center;
  padding: 130px 5vw 96px;
  background: var(--ink);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/publishing-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 20, 23, 0.94) 0%, rgba(16, 20, 23, 0.72) 36%, rgba(16, 20, 23, 0.24) 71%),
    linear-gradient(0deg, rgba(16, 20, 23, 0.48), rgba(16, 20, 23, 0.08));
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy {
  width: min(590px, 100%);
  margin-bottom: 34px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.18rem;
}

.hero-actions,
.button {
  display: inline-flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 13px 18px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--gold-2);
}

.button-secondary {
  border-color: rgba(255, 250, 240, 0.38);
  color: var(--paper);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--paper);
  background: rgba(255, 250, 240, 0.08);
}

.band {
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.section,
.intro {
  padding: 92px 5vw;
}

.section-inner,
.contact-inner,
.visual-band,
.site-footer {
  width: min(var(--max), 90vw);
  margin-inline: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 60px;
  align-items: end;
}

.intro-grid p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 42px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.focus-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-panel,
.capability-card,
.standard-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
}

.feature-panel {
  display: grid;
  min-height: 410px;
  overflow: hidden;
  grid-template-rows: auto 1fr;
  box-shadow: var(--shadow);
}

.feature-copy {
  padding: 30px;
}

.panel-number,
.capability-card span,
.timeline span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-copy p,
.capability-card p,
.standard-item p,
.timeline p,
.contact-copy p {
  color: var(--muted);
}

.book-stack,
.reader-frame {
  position: relative;
  min-height: 190px;
  align-self: end;
  background: linear-gradient(180deg, rgba(238, 230, 213, 0), rgba(238, 230, 213, 0.86));
}

.book-stack .book {
  position: absolute;
  right: 42px;
  bottom: 34px;
  display: block;
  width: 190px;
  height: 124px;
  border: 1px solid rgba(16, 20, 23, 0.16);
  border-radius: 3px;
  box-shadow: 0 24px 44px rgba(16, 20, 23, 0.2);
  transform: rotate(-4deg);
}

.book-one {
  background: linear-gradient(90deg, var(--teal) 0 22%, #eee2c9 22% 24%, #182025 24%);
}

.book-two {
  right: 134px;
  bottom: 68px;
  background: linear-gradient(90deg, var(--wine) 0 20%, #f1dfb9 20% 22%, #f3eadc 22%);
  transform: rotate(7deg);
}

.book-three {
  right: 218px;
  bottom: 40px;
  background: linear-gradient(90deg, #1c2832 0 18%, #d4a449 18% 20%, #2f463e 20%);
  transform: rotate(-13deg);
}

.reader-frame {
  display: grid;
  place-items: center;
}

.reader-frame::before {
  width: min(320px, 74%);
  aspect-ratio: 4 / 3;
  border: 14px solid #20272c;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 30px 60px rgba(16, 20, 23, 0.24);
  content: "";
}

.reader-frame span {
  position: absolute;
  left: 50%;
  width: 150px;
  height: 7px;
  border-radius: 2px;
  background: rgba(16, 20, 23, 0.2);
  transform: translateX(-50%);
}

.reader-frame span:nth-child(1) {
  top: 74px;
  background: var(--gold);
}

.reader-frame span:nth-child(2) {
  top: 96px;
}

.reader-frame span:nth-child(3) {
  top: 118px;
  width: 104px;
}

.dark-section {
  background: var(--ink);
  color: var(--paper);
}

.dark-section .section-heading h2,
.dark-section .capability-card h3 {
  color: var(--paper);
}

.dark-section .section-heading > p,
.dark-section .capability-card p {
  color: rgba(255, 250, 240, 0.68);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability-card {
  min-height: 220px;
  border-color: rgba(255, 250, 240, 0.13);
  background: rgba(255, 250, 240, 0.06);
  padding: 24px;
}

.capability-card span {
  color: var(--gold-2);
}

.visual-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 86px 0;
}

.visual-copy h2 {
  font-size: 2.7rem;
}

.visual-copy p:not(.eyebrow) {
  color: var(--muted);
}

.visual-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.visual-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.process-section {
  border-top: 1px solid var(--line);
  background: var(--ivory);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr);
  gap: 56px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 80px 160px 1fr;
  gap: 22px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 0 0 22px;
}

.timeline h3 {
  margin-bottom: 0;
}

.timeline span {
  margin-bottom: 0;
}

.standards-section {
  background: var(--paper);
}

.standards-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  gap: 58px;
}

.standards-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.standard-item {
  padding: 24px;
}

.contact-section {
  background: var(--teal);
  color: var(--paper);
  padding: 92px 5vw;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: start;
}

.contact-copy h2 {
  color: var(--paper);
}

.contact-copy p {
  color: rgba(255, 250, 240, 0.74);
}

.direct-email {
  display: inline-flex;
  margin-top: 24px;
  color: var(--gold-2);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  background: rgba(16, 20, 23, 0.22);
  padding: 24px;
}

.field-row {
  display: grid;
  gap: 8px;
}

.field-row label {
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 4px;
  background: rgba(255, 250, 240, 0.98);
  color: var(--ink);
  padding: 12px 13px;
}

.field-row textarea {
  resize: vertical;
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.form-status {
  min-height: 1.4em;
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 0;
  color: rgba(16, 20, 23, 0.7);
}

.footer-brand {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.footer-brand img {
  width: 42px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .intro-grid,
  .focus-layout,
  .capability-grid,
  .visual-band,
  .process-grid,
  .standards-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .standards-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    gap: 22px;
  }

  .visual-band {
    width: min(var(--max), 90vw);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2,
  .visual-copy h2 {
    font-size: 2.05rem;
  }

  .site-header {
    padding: 12px 20px;
  }

  .brand img {
    width: 48px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 14px 20px 22px;
    background: var(--ink);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
    transform: translateY(-120%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    border-bottom: 1px solid rgba(255, 250, 240, 0.12);
    padding: 15px 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 76svh;
    padding: 110px 20px 70px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(16, 20, 23, 0.96) 0%, rgba(16, 20, 23, 0.78) 64%, rgba(16, 20, 23, 0.54)),
      linear-gradient(0deg, rgba(16, 20, 23, 0.56), rgba(16, 20, 23, 0.14));
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .button {
    width: 100%;
  }

  .section,
  .intro,
  .contact-section {
    padding: 68px 20px;
  }

  .section-inner,
  .contact-inner,
  .visual-band,
  .site-footer {
    width: 100%;
  }

  .capability-grid,
  .standards-list {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    min-height: 360px;
  }

  .feature-copy,
  .capability-card,
  .standard-item,
  .contact-form {
    padding: 20px;
  }

  .book-stack .book {
    right: 28px;
    width: 150px;
    height: 100px;
  }

  .book-two {
    right: 106px;
  }

  .book-three {
    right: 168px;
  }

  .visual-band {
    padding: 64px 20px;
  }

  .timeline li {
    grid-template-columns: 54px 1fr;
    gap: 10px 16px;
  }

  .timeline p {
    grid-column: 2;
  }

  .site-footer {
    display: grid;
    padding: 28px 20px;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 2.52rem;
  }

  .brand small {
    display: none;
  }

  .hero-actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
