:root {
  --page: #eadcb8;
  --paper: #fffaf0;
  --ink: #111111;
  --muted: #756b56;
  --line: #d3c49d;
  --soft: #e1d0a5;
  --red: #b81735;
  --blue: #265ca9;
  --green: #1e6c5d;
  --gold: #a76d19;
  --shadow: 0 20px 70px rgba(17, 17, 17, 0.12);
  --script: "Monotype Corsiva", "Segoe Script", "Segoe Print", Georgia, serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: var(--serif);
  line-height: 1.35;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
  background: rgba(234, 220, 184, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-family: var(--script);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 0.95;
}

.brand small,
.brand-resume {
  color: var(--muted);
  font-size: 0.76rem;
}

.brand-resume {
  display: inline;
  letter-spacing: 0;
}

.brand-resume:hover {
  color: var(--red);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-family: var(--script);
  font-size: 1.22rem;
}

.top-nav a:hover,
.underline-link:hover,
.contact-links a:hover {
  color: var(--red);
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.cover-hero {
  position: relative;
  width: 100vw;
  min-height: calc(100vh - 67px);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #111;
}

.cover-picture,
.cover-photo {
  position: absolute;
  inset: 0;
}

.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.03);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.64) 0%, rgba(10, 8, 7, 0.3) 38%, rgba(10, 8, 7, 0.04) 68%),
    linear-gradient(0deg, rgba(10, 8, 7, 0.42) 0%, rgba(10, 8, 7, 0.02) 48%);
}

.cover-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - 67px);
  max-width: 760px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8vh 24px 9vh;
  color: #fff;
}

.cover-copy .eyebrow {
  color: #f5c84b;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.cover-copy h1 {
  max-width: 700px;
  font-family: "Monotype Corsiva", "Segoe Script", Georgia, serif;
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.98;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.45);
}

.cover-copy h1 span {
  display: block;
}

.cover-copy p:not(.eyebrow) {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.underline-link.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.82);
}

.underline-link.light.muted {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(260px, 0.44fr);
  gap: 24px;
  min-height: calc(100vh - 67px);
  padding: 54px 24px 28px;
  align-items: end;
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--script);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.2rem, 7.5vw, 7.4rem);
  line-height: 0.88;
}

.hero-line {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.underline-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--script);
  font-size: 1.35rem;
  font-weight: 900;
}

.underline-link.muted {
  color: var(--muted);
  border-color: var(--line);
}

.hero-profile {
  align-self: start;
  display: grid;
  gap: 14px;
  justify-items: start;
  padding-top: 8px;
}

.hero-profile img {
  width: min(220px, 48vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-profile p {
  margin: 0;
  font-weight: 900;
}

.hero-profile span {
  display: block;
  max-width: 250px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 12px;
  min-width: 0;
}

.hero-strip img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 16px 46px rgba(17, 17, 17, 0.1);
}

.index-strip,
.series-section,
.download-section,
.pdf-section,
.contact-section {
  border-top: 1px solid var(--line);
  padding: 56px 24px;
}

.index-links {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.index-links a {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--script);
  font-size: 1.28rem;
  font-weight: 400;
}

.section-top {
  display: block;
  margin-bottom: 14px;
}

.series-section .section-heading .eyebrow {
  margin-bottom: 0;
  font-family: var(--script);
  font-size: clamp(1.9rem, 3.6vw, 3.7rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: none;
}

.section-heading h2 {
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: 0.92;
}

.section-heading p:not(.eyebrow) {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
}

.icon-button:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.work-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(520px, 58%);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 62px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.work-rail::-webkit-scrollbar {
  display: none;
}

.series-section[data-format="portrait"] .work-rail {
  grid-auto-columns: minmax(420px, 42%);
}

.series-section[data-format="square"] .work-rail {
  grid-auto-columns: minmax(440px, 46%);
}

.carousel-shell {
  position: relative;
}

.side-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: rgba(17, 17, 17, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.22);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.side-arrow:hover {
  background: var(--red);
}

.side-prev {
  left: 12px;
}

.side-next {
  right: 12px;
}

.work-slide {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.work-slide:hover {
  transform: translateY(-3px);
  border-color: #b9b7ad;
  box-shadow: var(--shadow);
}

.work-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--soft);
}

.series-section[data-format="square"] .work-slide img {
  aspect-ratio: 1 / 1;
}

.series-section[data-format="portrait"] .work-slide img {
  aspect-ratio: 3 / 4;
}

.work-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 11px 12px;
}

.work-caption strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-caption span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pdf-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(460px, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) auto;
  gap: 18px 24px;
  align-items: end;
}

.download-section h2 {
  max-width: 780px;
  color: #8a671e;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  line-height: 0.96;
}

.download-section p:not(.eyebrow) {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 16px 24px;
  color: var(--paper);
  background: var(--red);
  border-radius: 999px;
  font-family: var(--script);
  font-size: 1.45rem;
}

.download-link.secondary {
  color: var(--red);
  background: var(--paper);
  border: 1px solid rgba(184, 23, 53, 0.34);
}

.pdf-section {
  background: #f7edcf;
}

.pdf-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
}

.pdf-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 13px 14px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--script);
  font-size: 1.28rem;
  font-weight: 400;
}

.pdf-button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pdf-button.is-active {
  color: var(--red);
  background: rgba(255, 250, 240, 0.58);
  border-color: rgba(184, 23, 53, 0.34);
}

.pdf-button.is-active span {
  color: var(--muted);
}

.pdf-viewer {
  min-height: 720px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--script);
  font-size: 1.35rem;
  font-weight: 400;
}

.pdf-toolbar a {
  color: var(--red);
  font-size: 0.9rem;
}

.pdf-viewer iframe {
  width: 100%;
  height: 666px;
  border: 0;
}

.contact-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-right: max(24px, calc((100vw - 1452px) / 2 + 24px));
  padding-left: max(24px, calc((100vw - 1452px) / 2 + 24px));
  padding-bottom: 80px;
  background: #f3e8c7;
}

.contact-section h2 {
  max-width: 840px;
  color: #8a671e;
  font-size: clamp(2.3rem, 4.8vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  min-height: 72px;
  padding: 18px;
  overflow-wrap: anywhere;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--script);
  font-size: 1.22rem;
  font-weight: 400;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 9, 0.78);
}

.modal-panel {
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  background: var(--paper);
  border-radius: 8px;
}

.modal-panel img {
  width: 100%;
  height: calc(100vh - 150px);
  object-fit: contain;
}

.modal-close,
.modal-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.modal-close {
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
}

.modal-arrow {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  font-size: 2rem;
}

.modal-prev {
  left: 14px;
}

.modal-next {
  right: 14px;
}

.modal-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal-caption strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-profile {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .hero-profile img {
    width: 116px;
  }

  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-strip img {
    height: 240px;
  }

  .section-top,
  .download-section,
  .pdf-layout {
    grid-template-columns: 1fr;
  }

  .carousel-controls {
    justify-content: flex-start;
  }

  .contact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  .top-nav {
    justify-content: flex-start;
    gap: 12px;
  }

  .hero,
  .cover-copy,
  .index-strip,
  .series-section,
  .download-section,
  .pdf-section,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 2.85rem;
    line-height: 0.94;
  }

  .hero-line {
    max-width: 330px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-strip img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .work-rail,
  .series-section[data-format="portrait"] .work-rail,
  .series-section[data-format="square"] .work-rail {
    grid-auto-columns: minmax(280px, 86%);
    padding-left: 46px;
    padding-right: 46px;
  }

  .cover-hero,
  .cover-copy {
    min-height: 74vh;
  }

  .cover-photo {
    object-position: 50% 48%;
  }

  .cover-copy h1 {
    font-size: clamp(2.55rem, 12vw, 3.05rem);
    line-height: 0.94;
  }

  .cover-copy .eyebrow {
    max-width: 300px;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .cover-copy p:not(.eyebrow) {
    max-width: 320px;
    font-size: 1rem;
    line-height: 1.28;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .download-actions {
    justify-content: flex-start;
  }

  .download-link {
    width: 100%;
  }

  .side-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.65rem;
  }

  .side-prev {
    left: 6px;
  }

  .side-next {
    right: 6px;
  }

  .pdf-viewer {
    min-height: 520px;
  }

  .pdf-viewer iframe {
    height: 466px;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    inset: 8px;
    padding: 10px;
  }

  .modal-panel img {
    height: calc(100vh - 136px);
  }

  .modal-caption {
    flex-direction: column;
    gap: 4px;
  }
}
