:root {
  color-scheme: light;
  --background: #f5f1ea;
  --surface: #fffaf2;
  --ink: #1f2933;
  --muted: #5f6c78;
  --line: #d9cfc1;
  --accent: #2f6f73;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Gill Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.home-page {
  justify-content: flex-start;
  gap: 74px;
  padding-top: 168px;
  padding-bottom: 88px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  min-height: 116px;
  padding-top: 28px;
  background: rgba(245, 241, 234, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.header-location {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 190px;
  padding: 10px 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.mini-globe {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.mini-globe canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.header-location p {
  max-width: 112px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.header-location span {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-link {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--accent);
}

.resume-link {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
}

.resume-link:hover,
.resume-link:focus-visible {
  color: var(--accent);
  border-color: var(--line);
  background: rgba(255, 250, 242, 0.7);
}

.resume-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(217, 207, 193, 0.9);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 12px 26px rgba(31, 41, 51, 0.08);
  perspective: 420px;
}

.nav-link {
  min-width: 82px;
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transform: rotateX(18deg) translateY(2px);
  transform-origin: center bottom;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(47, 111, 115, 0.14);
  transform: rotateX(0deg) translateY(-3px) translateZ(18px);
}

.intro {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 56px;
  align-items: center;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 49%, rgba(47, 111, 115, 0.22) 50%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(47, 111, 115, 0.22) 50%, transparent 51%),
    var(--surface);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 620px;
}

.home-columns {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.home-column {
  min-height: 220px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.home-column h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.project-item {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 207, 193, 0.65);
}

.project-item + .project-item {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 2px solid rgba(47, 111, 115, 0.28);
}

.project-item h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.project-item p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.project-item .project-subhead {
  color: var(--ink);
  font-weight: 700;
}

.project-item cite {
  font-style: italic;
}

.project-description {
  margin-top: 18px;
}

.quiet-highlight {
  padding: 0 4px 1px;
  color: #315f42;
  border-radius: 4px;
  background: rgba(128, 169, 121, 0.18);
  font-weight: 700;
}

.project-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-slideshow figcaption,
.adaptive-slideshow figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 8px;
  color: var(--ink);
  border: 1px solid rgba(217, 207, 193, 0.84);
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.76);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-slideshow img,
.adaptive-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 550ms ease;
}

.project-slideshow img.is-active,
.adaptive-slideshow img.is-active {
  opacity: 1;
}

.adaptive-slideshow {
  position: relative;
  width: 100%;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: aspect-ratio 420ms ease;
}

.adaptive-slideshow img {
  object-fit: contain;
}

.slideshow-control {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(217, 207, 193, 0.9);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.84);
  font-size: 26px;
  line-height: 1;
  opacity: 0.2;
  transform: translateY(-50%);
  transition:
    opacity 180ms ease,
    color 180ms ease,
    background 180ms ease;
  cursor: pointer;
}

.slideshow-control:hover,
.slideshow-control:focus-visible {
  color: var(--accent);
  background: var(--surface);
  opacity: 1;
}

.slideshow-control-prev {
  left: 12px;
}

.slideshow-control-next {
  right: 12px;
}

.slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.slideshow-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 250, 242, 0.9);
  border-radius: 50%;
  background: rgba(31, 41, 51, 0.32);
  cursor: pointer;
}

.slideshow-dots button.is-active {
  background: var(--surface);
  border-color: var(--accent);
}

.project-video {
  display: block;
  width: 100%;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.book-viewer {
  margin-top: 24px;
}

.book-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 900px;
  filter: drop-shadow(0 16px 22px rgba(31, 41, 51, 0.14));
}

.book-page {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--surface);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 420ms ease,
    filter 420ms ease;
}

.book-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 0 0;
  border-color: transparent rgba(245, 241, 234, 0.94) transparent transparent;
  filter: drop-shadow(-5px 5px 7px rgba(31, 41, 51, 0.22));
  opacity: 0;
  transition:
    border-width 420ms ease,
    opacity 200ms ease;
  z-index: 2;
}

.book-page::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(225deg, rgba(31, 41, 51, 0.22), transparent 58%);
  opacity: 0;
  transition: opacity 420ms ease;
  z-index: 1;
}

.book-viewer.is-turning-next .book-page::before {
  border-width: 0 74px 74px 0;
  opacity: 1;
}

.book-viewer.is-turning-next .book-page::after {
  opacity: 1;
}

.book-viewer.is-turning-prev .book-page {
  filter: brightness(0.94);
  transform: translateX(6px);
}

.book-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.book-button {
  padding: 8px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.72);
  font-weight: 700;
  cursor: pointer;
}

.book-button:hover,
.book-button:focus-visible {
  color: var(--accent);
  background: var(--surface);
}

.book-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.book-status {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.page-shell-simple {
  justify-content: center;
}

.page-copy {
  width: min(680px, 100%);
  padding-top: 80px;
}

.page-copy h1 {
  max-width: 13ch;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--accent);
}

.contact-list span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

p + p {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .page-shell {
    justify-content: flex-start;
    padding: 28px 18px;
  }

  .home-page {
    gap: 44px;
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .site-header {
    position: relative;
    width: 100%;
    min-height: 132px;
    padding-top: 82px;
    margin-bottom: 30px;
  }

  .header-location {
    position: absolute;
    top: 0;
    left: 0;
    width: 178px;
    padding: 8px 0 0 8px;
  }

  .mini-globe {
    width: 48px;
    height: 48px;
  }

  .home-link {
    font-size: 21px;
  }

  .resume-link {
    width: 28px;
    height: 28px;
  }

  .site-nav {
    width: 100%;
  }

  .nav-link {
    min-width: 0;
    flex: 1;
    padding: 8px 6px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-columns {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-column {
    min-height: 140px;
  }

  .image-placeholder {
    aspect-ratio: 16 / 10;
  }

  h1 {
    max-width: 10ch;
    font-size: 42px;
  }

  p {
    font-size: 16px;
  }

  .contact-list a {
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
  }

  .book-page {
    width: 100%;
  }

}
