:root {
  color-scheme: light;
  --navy: #111c2c;
  --navy-deep: #0c1522;
  --cream: #f7f1e4;
  --paper: #fffbf1;
  --gold: #efcb80;
  --bronze: #775420;
  --ink: #202b39;
  --muted: #5b5449;
  --dark-muted: #e1d8c9;
  --courtyard-sky: url("assets/Mercy-College-Sky-Continuation.jpg");
  --courtyard-foreground: url("assets/Mercy-College-Courtyard-Continuation.jpg");
  --courtyard-ambient:
    radial-gradient(ellipse at 0% 50%, #543b2b55, transparent 58%),
    radial-gradient(ellipse at 100% 50%, #263d5b66, transparent 60%),
    var(--navy-deep);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.15rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--navy); color: var(--cream); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; text-wrap: balance; }
.wrap { width: min(100% - var(--gutter) * 2, 68rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 2; padding: .55rem 1rem; background: var(--cream); color: var(--navy); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { background: var(--navy-deep); border-bottom: 1px solid #efcb8038; }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1.2rem; min-height: 4.15rem; padding-block: .55rem; }
.wordmark { font: 1.2rem/1.2 var(--serif); color: var(--gold); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
nav a, .footer-inner a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; }
nav a:hover, .footer-inner a:hover, .wordmark:hover { text-decoration: underline; }

.hero {
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 0% 22%, #794a1f7a, transparent 54%),
    radial-gradient(ellipse at 100% 16%, #173b60, transparent 58%),
    var(--navy);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.4rem, 5.5vw, 4.8rem) clamp(2.2rem, 4.5vw, 3.65rem);
  text-align: center;
  text-shadow: 0 2px 12px #07111be0, 0 1px 3px #07111b;
}
.hero-actions { text-shadow: none; }
.hero .button-outline { background-color: #0c1522a8; }
.hero .button-outline:hover { background-color: #16263de6; }
.eyebrow { font-size: .72rem; font-weight: 700; line-height: 1.45; letter-spacing: .17em; text-transform: uppercase; }
.ornament { display: inline-flex; align-items: center; gap: .65rem; color: var(--gold); }
.ornament::before, .hero .ornament::after, .series .ornament::after { content: ""; width: 1.45rem; border-top: 1px solid currentColor; }
h1 { margin-top: .55rem; font-size: clamp(2.7rem, 7.2vw, 6rem); letter-spacing: -.04em; }
.hero-line { margin-top: .8rem; color: var(--dark-muted); font-family: var(--serif); font-size: clamp(1.09rem, 2.4vw, 1.45rem); }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: .65rem; margin-top: 1.55rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 48px; padding: .64rem 1rem; border: 1px solid transparent; border-radius: .2rem; font-size: .9rem; font-weight: 650; text-decoration: none; text-align: center; transition: background-color .18s, border-color .18s; }
.button span { font-size: 1.12em; }
.button-gold { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); }
.button-gold:hover { background: #ffe0a0; border-color: #ffe0a0; }
.button-outline { color: var(--cream); border-color: #c8ab75; }
.button-outline:hover { background: #efcb801a; border-color: var(--gold); }
.hero-art { position: relative; max-width: 90rem; margin-inline: auto; }
.hero-art img { width: 100%; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 1536 / 540;
  /* The last 72 image rows overlap the original banner. */
  transform: translateY(-86.67%);
  background:
    linear-gradient(180deg, #0c152258, #0c152254 47%, transparent 83%),
    var(--courtyard-sky) center top / 100% auto no-repeat;
  mask-image: linear-gradient(transparent, #000 16%, #000 87.5%, #0008 94%, transparent);
  pointer-events: none;
}

.series, .author {
  position: relative;
  isolation: isolate;
  background: var(--courtyard-ambient);
}
.series::before, .author::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  width: min(100%, 90rem);
  margin-inline: auto;
  background-repeat: no-repeat;
  pointer-events: none;
}
.series { padding-block: clamp(3.5rem, 7vw, 5.7rem); }
.series::before {
  top: 0;
  aspect-ratio: 1536 / 544;
  /* The first 88.5 image rows overlap the original at the same scale. */
  transform: translateY(-16.27%);
  background: url("assets/Mercy-College-Courtyard-Blend.jpg") center top / 100% auto no-repeat;
  mask-image: linear-gradient(transparent, #0005 5%, #000c 11%, #000 15.5%, #000 17%, #0009 38%, transparent 92%);
}
.author::before {
  bottom: 0;
  height: 50%;
  background-image: linear-gradient(#0c152280, transparent), var(--courtyard-foreground);
  background-size: 100% 100%, max(100%, 54rem) 200%;
  background-position: center bottom;
  mask-image: linear-gradient(transparent, #0009 70%, #000);
}
.section-intro { margin-bottom: clamp(1.3rem, 3vw, 2.15rem); text-align: center; }
h2 { margin-top: .55rem; font-size: clamp(2.25rem, 5.3vw, 4.05rem); letter-spacing: -.036em; }
.series-grid { display: grid; gap: 1rem; }
.series-card { display: flex; flex-direction: column; padding: clamp(1.3rem, 3.5vw, 2.1rem); border: 1px solid #cdbd9d; border-top: 3px solid #c79a55; background: var(--paper); color: var(--ink); box-shadow: 0 12px 32px #03070e42; }
.martha { background: #e9edf0; border-color: #b2bbc4; border-top-color: #455b72; }
.chapter { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.chapter .eyebrow, .start .eyebrow { color: var(--bronze); }
.martha .chapter .eyebrow, .martha .start .eyebrow { color: #3e5269; }
.chapter-number { font: 1.25rem/1 var(--serif); color: #6c604b; }
.martha .chapter-number { color: #526174; }
.series-card h3 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
.series-card h3 em { display: block; }
.series-card p { margin-top: .9rem; margin-bottom: 1.35rem; max-width: 45ch; color: var(--muted); }
.martha p { color: #434f5d; }
.start { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .65rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid #77685245; }
.start cite { font: italic 1.25rem/1.35 var(--serif); }

.author {
  padding-block: clamp(2.9rem, 7vw, 5.5rem) clamp(6rem, 10vw, 9rem);
}
.author-grid { display: grid; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.portrait { width: min(100%, 23rem); padding: .45rem; border: 1px solid #9f8256; }
.portrait img { width: 100%; }
.author-copy p:not(.eyebrow) { max-width: 48ch; margin-top: 1rem; color: var(--dark-muted); }
.author-copy .button { margin-top: 1.35rem; }
.site-footer { background: var(--navy-deep); color: var(--dark-muted); border-top: 1px solid #efcb8038; font-size: .83rem; }
.footer-inner a { gap: .35rem; }

@media (max-width: 46rem) {
  .hero-art::after {
    aspect-ratio: 1024 / 1204;
    /* Align the portrait outpaint with the original banner below its sky. */
    transform: translateY(-95.27%);
    background:
      linear-gradient(#0c152295 55%, #0c152280 77%, transparent 94%),
      url("assets/Mercy-College-Sky-Mobile.jpg") center top / 100% auto no-repeat;
    mask-image: linear-gradient(transparent, #000 5%, #000 95.5%, transparent);
  }
}
@media (46rem < width <= 68rem) {
  /* Continue the upper sky behind the title when the aligned artwork is shorter. */
  .hero-copy::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    transform: translateX(-50%);
    background:
      linear-gradient(90deg, #271b1766, #08172791 64%, #08172750),
      var(--courtyard-sky) 43% top / auto 154% no-repeat;
    mask-image: linear-gradient(#000, #000d 33%, #0005 62%, transparent 83%);
    pointer-events: none;
  }
}
@media (min-width: 33rem) {
  .hero-actions { flex-direction: row; justify-content: center; }
}
@media (min-width: 46rem) {
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
  .author-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
