:root {
  --paper: #f4f0e7;
  --paper-dark: #e9e2d6;
  --white: #fcfbf8;
  --ink: #25251f;
  --green: #28312b;
  --green-soft: #354039;
  --brown: #564a3d;
  --brass: #897452;
  --muted: #69665f;
  --line: #d4ccbe;

  --serif:
    Baskerville,
    "Iowan Old Style",
    "Palatino Linotype",
    Palatino,
    Georgia,
    "Times New Roman",
    serif;

  --sans:
    "Avenir Next",
    Avenir,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;

  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--ink);
  background: #dcd0b9;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 9999;
  padding: 9px 14px;
  color: white;
  background: var(--green);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 240, 231, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: grid;
  line-height: 1.05;
  text-decoration: none;
}

.wordmark strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.wordmark span {
  margin-top: 6px;
  color: var(--brass);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

.site-nav a {
  color: #514e47;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--ink);
}

/* Shared typography */

.eyebrow {
  margin: 0 0 16px;
  color: var(--brass);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section {
  padding: 96px 0;
}

.section-heading h2,
.section-header h2,
.contact h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--green);
  color: white;
  background: var(--green);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  color: var(--green);
  background: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.text-link span {
  font-size: 16px;
}

/* Hero */

.hero {
  padding: 84px 0 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 88px;
}

.hero h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-title {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--brown);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.42;
}

.hero-lede {
  max-width: 625px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 32px;
}

.portrait {
  width: min(100%, 430px);
  margin: 0;
  justify-self: end;
}

.portrait-frame {
  padding: 9px;
  border: 1px solid #a89d8e;
  background: #e4ddd1;
  box-shadow: 0 15px 30px rgba(39, 36, 31, 0.1);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.88) contrast(1.02);
}

/* Credential strip */

.credentials-strip {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.credentials-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
}

.credentials-inner span {
  padding: 0 20px;
  border-right: 1px solid var(--line);
  color: #5d5951;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.credentials-inner span:last-child {
  border-right: 0;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 92px;
  align-items: start;
}

.prose p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
}

.prose p:first-child {
  margin-top: 0;
}

.prose .lead {
  color: #514e47;
  font-size: 16px;
}

.personal-note {
  margin-top: 34px;
  padding: 26px 28px;
  border-left: 3px solid var(--brass);
  background: rgba(255, 255, 255, 0.45);
}

.personal-note h3 {
  margin: 0;
  color: var(--green);
  font-size: 22px;
  font-weight: 500;
}

.personal-note p {
  margin: 10px 0 0;
}

/* Service */

.service {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.section-header {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 85px;
  align-items: end;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.section-header > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.82;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 58px;
}

.service-list article {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.service-list h3,
.milestones h3 {
  margin: 0;
  color: var(--green);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.28;
}

.service-list p,
.milestones p {
  margin: 9px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
}

.agency-note {
  margin: 29px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
}

.agency-note strong {
  color: var(--green);
}

/* Work */

.work-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.milestones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.milestones article {
  min-height: 185px;
  padding: 30px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.milestones article:nth-child(even) {
  border-right: 0;
}

/* Book */

.book-section {
  color: #f1ede4;
  background: var(--green);
}

.book-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 92px;
}

.book-visual {
  width: min(100%, 405px);
  margin: 0 auto;
}

.book-visual img {
  width: 100%;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.28));
}

.book-eyebrow {
  color: #cbb98d;
}

.book-copy h2 {
  margin: 0;
  color: #f6f1e7;
  font-size: clamp(43px, 5vw, 65px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.book-subtitle {
  margin: 21px 0 27px;
  color: #d7c9a8;
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
}

.book-copy > p:not(.eyebrow):not(.book-subtitle) {
  color: #d5d2c9;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.82;
}

.book-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 29px 0;
  padding: 17px 0;
  border-block: 1px solid rgba(220, 207, 174, 0.25);
  color: #d8ccb0;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.button-light {
  border-color: #d8c9a4;
  color: var(--green);
  background: #d8c9a4;
}

.button-light:hover,
.button-light:focus-visible {
  color: white;
  background: transparent;
}

/* Contact */

.contact {
  background: var(--paper-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 88px;
  align-items: start;
}

.contact-copy > p {
  margin-top: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 26px;
}

/* Footer */

.site-footer {
  padding: 42px 0;
  border-top: 1px solid #37413a;
  color: #bcbab3;
  background: #202722;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: end;
}

.site-footer strong {
  color: #eeeae2;
  font-size: 19px;
  font-weight: 500;
}

.site-footer p {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.65;
}

.footer-legal {
  text-align: right;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .section-header,
  .book-grid,
  .contact-grid {
    gap: 55px;
  }
}

@media (max-width: 780px) {
  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-grid,
  .about-grid,
  .section-header,
  .book-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: min(100%, 470px);
    justify-self: start;
  }

  .credentials-inner {
    grid-template-columns: 1fr;
    padding: 13px 0;
  }

  .credentials-inner span {
    padding: 11px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .credentials-inner span:last-child {
    border-bottom: 0;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .milestones {
    grid-template-columns: 1fr;
  }

  .milestones article {
    border-right: 0;
  }

  .book-visual {
    width: min(100%, 360px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .hero {
    padding: 50px 0 62px;
  }

  .hero h1 {
    font-size: 51px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-actions,
  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .section-header h2,
  .contact h2 {
    font-size: 38px;
  }

  .milestones article {
    min-height: auto;
    padding: 26px 22px;
  }

  .book-copy h2 {
    font-size: 44px;
  }

  .book-subtitle {
    font-size: 20px;
  }

  .contact-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Refined book-title sizing */
.book-copy h2 {
  font-size: clamp(34px, 3.4vw, 48px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .book-copy h2 {
    font-size: clamp(32px, 4vw, 42px);
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .book-copy h2 {
    font-size: 36px;
    line-height: 1.08;
  }
}
