:root {
  --paper: #f7f4ec;
  --white: #fffdf8;
  --ink: #3e332b;
  --muted: #75695d;
  --green: #305a4d;
  --gold: #b89452;
  --line: #d8c9ad;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.skip {
  position: absolute;
  top: -100px;
  z-index: 20;
  background: white;
  padding: 10px;
}

.skip:focus {
  top: 0;
}

header {
  height: 102px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 24px;
  background: var(--paper);
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--green);
  font-size: 20px;
  font-weight: 700;
}

.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2.6px;
  margin-top: 2px;
}

.brand-icon {
  font-family: Georgia, serif;
  font-size: 34px;
  border: 1px solid var(--gold);
  width: 47px;
  height: 48px;
  line-height: 46px;
  text-align: center;
  position: relative;
  font-weight: 400;
}

.brand-icon span {
  font-size: 20px;
  margin-left: -7px;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 3px;
  font-size: 16px;
}

nav a:hover {
  background: #eae5d9;
}

nav a[aria-current="page"] {
  background: var(--green);
  color: white;
}

main {
  min-height: 70vh;
  max-width: 1440px;
  margin: auto;
  padding: 35px 5% 90px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #876d3b;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

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

h1 {
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: -2.5px;
  margin-bottom: 23px;
}

h2 {
  font-size: 33px;
  line-height: 1.25;
  letter-spacing: -1px;
}

h3 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

p {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  align-items: center;
  padding: 47px 0 65px;
}

.hero h1 {
  font-size: clamp(42px, 4.8vw, 68px);
}

.hero .subtitle {
  font-size: 22px;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 18px;
}

.hero .intro {
  max-width: 530px;
  margin-bottom: 30px;
}

.badge {
  display: inline-block;
  border: 1px solid var(--gold);
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 2.3px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
  border-radius: 3px;
  text-decoration: none;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.2s;
}

.btn:hover {
  background: #214335;
  transform: translateY(-2px);
}

.btn.outline {
  background: transparent;
  color: var(--green);
  border-color: #bbc9c0;
}

.btn.outline:hover {
  background: #e9eee7;
}

.portrait-grid {
  border: 1px solid var(--gold);
  background: var(--white);
  padding: 12px;
  box-shadow: 0 18px 42px #4e3b2720;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  transform: rotate(1deg);
}

.portrait-grid a {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #ddd;
}

.portrait-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.portrait-grid a:hover img {
  transform: scale(1.06);
}

.portrait-grid span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #244b40e8;
  color: white;
  font-size: 10px;
  padding: 6px 3px;
  text-align: center;
  letter-spacing: 1px;
}

.hero-caption {
  text-align: right;
  margin: 17px 0 0;
  font-size: 11px;
  letter-spacing: 2px;
  color: #876d3b;
}

.index-strip {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.index-strip a {
  font-size: 13px;
  text-decoration: none;
  color: var(--green);
}

.index-strip b {
  color: var(--gold);
  margin-right: 9px;
  font-size: 11px;
}

.section-head {
  padding: 16px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.section-head h1 {
  font-size: 40px;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.section-head p {
  margin: 0;
  max-width: 870px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
}

.author-card {
  border: 1px solid var(--line);
  background: var(--white);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.author-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px #44361e12;
}

.card-photo {
  height: 295px;
  padding: 8px;
  background: var(--ink);
  position: relative;
  display: block;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 23%;
  border: 1px solid var(--gold);
}

.card-number {
  position: absolute;
  top: 20px;
  left: 21px;
  background: var(--paper);
  color: var(--green);
  font-size: 12px;
  padding: 4px 8px;
}

.photo-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 5px 13px;
  background: var(--green);
  color: white;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 260px;
}

.card-body h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
}

.card-body p {
  font-size: 16px;
  margin-bottom: 26px;
}

.card-body .btn {
  margin-top: auto;
}

.dates {
  font-size: 12px;
  color: #876d3b;
  letter-spacing: 1px;
  margin-bottom: 9px;
  display: block;
}

.sources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.source-card {
  border: 1px solid #e2dcd0;
  background: var(--white);
  padding: 29px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px #44361e07;
}

.source-card:before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 80px;
  height: 80px;
  border-bottom-left-radius: 80px;
  background: #f2ecdf;
}

.round {
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 24px;
}

.source-card h2 {
  font-size: 20px;
  color: var(--green);
  min-height: 50px;
  margin-bottom: 22px;
}

.source-card .btn {
  display: flex;
  margin-top: 12px;
  font-size: 14px;
  padding: 11px 14px;
}

.source-name {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.crumb {
  font-size: 13px;
  margin-bottom: 30px;
  color: var(--muted);
}

.crumb a {
  color: var(--green);
}

.profile-head {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 45px;
  align-items: center;
  margin-bottom: 42px;
}

.profile-head img {
  width: 250px;
  height: 300px;
  object-fit: cover;
  border: 8px solid var(--ink);
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}

.profile-head h1 {
  font-size: 48px;
  margin-bottom: 14px;
}

.profile-head .subtitle {
  font-size: 22px;
  max-width: 700px;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: 35px 0 32px;
  flex-wrap: wrap;
}

.profile-tabs button {
  border: 0;
  background: transparent;
  padding: 13px 18px;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}

.profile-tabs button[aria-selected="true"] {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: bold;
}

.profile-tabs button:hover {
  background: #ede9dd;
}

.reading {
  max-width: 850px;
}

.reading p {
  font-size: 18px;
}

.reading h2 {
  font-size: 27px;
}

.reading li {
  margin-bottom: 15px;
  color: var(--muted);
}

.concept {
  border-left: 3px solid var(--gold);
  background: #eee9db;
  padding: 22px 26px;
  margin: 30px 0;
}

.concept p {
  margin: 0;
}

.books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.book {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.book h3 {
  font-size: 26px;
}

.book .eyebrow {
  margin-bottom: 20px;
}

.book p {
  font-size: 16px;
}

.book .access {
  font-size: 14px;
  border-top: 1px solid #e6dece;
  padding-top: 18px;
  margin-top: auto;
  width: 100%;
}

.book .btn {
  margin-top: 6px;
}

.source-inline {
  font-size: 14px;
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--green);
}

.profile-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.profile-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(62, 51, 43, 0.05);
}

.profile-bottom a span {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.profile-bottom a:first-child {
  background: var(--white);
  color: var(--green);
  border: 1px solid var(--line);
}

.profile-bottom a:first-child:hover {
  background: var(--paper);
  border-color: var(--gold);
  color: var(--green);
  transform: translateX(-4px);
  box-shadow: 0 4px 14px rgba(48, 90, 77, 0.12);
}

.profile-bottom a:first-child:hover span {
  transform: translateX(-3px);
}

.profile-bottom a:last-child {
  background: var(--green);
  color: var(--white);
  border: 1px solid var(--green);
}

.profile-bottom a:last-child:hover {
  background: #214335;
  border-color: #214335;
  color: var(--white);
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(48, 90, 77, 0.25);
}

.profile-bottom a:last-child:hover span {
  transform: translateX(3px);
}

footer {
  border-top: 1px solid var(--line);
  padding: 25px 5%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

footer a {
  text-decoration: none;
  color: var(--green);
}

.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;
}

@media (min-width: 1500px) {
  main {
    padding-left: 40px;
    padding-right: 40px;
  }
  .hero {
    padding-top: 75px;
    padding-bottom: 80px;
  }
}

@media (max-width: 950px) {
  .hero {
    gap: 5%;
  }
  h1 {
    font-size: 44px;
  }
  .cards,
  .sources {
    grid-template-columns: repeat(2, 1fr);
  }
  .index-strip {
    flex-wrap: wrap;
  }
  .card-photo {
    height: 310px;
  }
  .hero .subtitle {
    font-size: 20px;
  }
  .hero .intro {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  header {
    height: auto;
    padding: 19px 5% 12px;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    font-size: 9px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
  }
  nav a {
    padding: 7px 19px;
    font-size: 14px;
  }
  main {
    padding-top: 25px;
    padding-bottom: 50px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 10px 0 30px;
    gap: 40px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero .intro {
    font-size: 17px;
  }
  .portrait-grid {
    transform: none;
  }
  .portrait-grid span {
    font-size: 10px;
  }
  .hero-caption {
    font-size: 10px;
  }
  .index-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cards,
  .sources,
  .books {
    grid-template-columns: 1fr;
  }
  .card-photo {
    height: 330px;
  }
  .card-body {
    min-height: 230px;
  }
  .section-head h1 {
    font-size: 33px;
  }
  .profile-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .profile-head img {
    width: 175px;
    height: 215px;
  }
  .profile-head h1 {
    font-size: 39px;
  }
  .profile-head .subtitle {
    font-size: 19px;
  }
  .profile-tabs {
    gap: 0;
  }
  .profile-tabs button {
    padding: 12px 10px;
    font-size: 14px;
  }
  .profile-bottom {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }
  .profile-bottom a {
    justify-content: center;
    width: 100%;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
  .book {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
