:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #dddddd;
  --paper: #ffffff;
  --ink: #111111;
  --accent: #111111;
  --soft: #f3f3f3;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
}

.site-header.show-logo .logo {
  opacity: 1;
  pointer-events: auto;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo:hover,
.logo:focus-visible {
  border-color: var(--ink);
}

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

.nav a {
  padding: 6px 0;
  border-radius: 0;
  color: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

main,
footer {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  min-height: auto;
  padding: 24px 0 48px;
}

.hero-copy {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  max-width: 760px;
  padding: 0;
  border: 0;
  background: transparent;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
dd {
  overflow-wrap: break-word;
}

h1 {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 5.25rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.25;
}

.intro {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.intro:not(.intro-label) {
  padding: 0;
  border: 0;
  background: transparent;
}

.intro-label {
  margin: 0 0 12px;
}

.intro:not(.intro-label) + .intro:not(.intro-label) {
  margin-top: 12px;
}

.snapshot {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  justify-self: end;
  width: 100%;
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.snapshot:hover {
  border-color: #c8b8a7;
}

.portrait-art {
  display: grid;
  height: 100%;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(34, 31, 27, 0.03), rgba(34, 31, 27, 0.03)),
    var(--soft);
}

.portrait-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.initials {
  display: grid;
  width: min(42vw, 170px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 800;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

dt {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.section {
  display: block;
  min-height: auto;
  padding: 30px 0 44px;
  border-top: 0;
}

.section-heading {
  max-width: none;
  margin-bottom: 12px;
}

.section-body {
  display: grid;
  gap: 18px;
  align-content: start;
}

.section-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(90px, 0.18fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  min-height: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

.case-card:hover {
  border-color: #bda993;
}

.case-card h3 {
  grid-column: 2;
  margin-bottom: 8px;
}

.card-meta {
  grid-column: 2;
  margin: 0 0 10px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.86rem;
}

.case-card p:not(.card-kicker),
.case-card li {
  color: var(--muted);
}

.case-card p:not(.card-kicker, .card-meta) {
  grid-column: 2;
  margin: 0 0 14px;
}

.case-card ul {
  grid-column: 2;
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding-left: 20px;
}

.card-kicker {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 2px 0 0;
}

.case-link {
  grid-column: 2;
  grid-row: auto;
  justify-self: start;
  margin-top: 2px;
  white-space: nowrap;
}

.case-card.has-image {
  grid-template-columns: minmax(90px, 0.16fr) minmax(0, 1fr) minmax(160px, 0.34fr);
}

.case-card.has-image .case-image {
  grid-column: 3;
  grid-row: 1 / span 5;
  align-self: stretch;
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.case-card.has-image .case-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-card.has-image .case-link {
  grid-column: 2;
  grid-row: auto;
}

.case-card a,
.writing-list a,
.footer-links a {
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.timeline h3 a {
  color: var(--ink);
  font-family: inherit;
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article,
.writing-list a,
.favorites article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.timeline span,
.writing-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 750;
  text-transform: uppercase;
}

.timeline p,
.favorites p,
.section-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-note {
  margin: 0 0 18px;
  font-size: 1.08rem;
}

.writing-list {
  display: grid;
  gap: 0;
}

.writing-list a {
  display: grid;
  gap: 4px;
  text-decoration: none;
}

.writing-list a:hover,
.writing-list a:focus-visible {
  border-color: #bda993;
}

.favorites {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.favorites article {
  padding: 20px;
  border: 1px solid var(--line);
}

.favorite-items {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.favorite-items li {
  color: var(--muted);
}

.favorite-items a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.favorite-items small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.places-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.7fr);
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}

.places-map {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #eeeeee;
  z-index: 0;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
  z-index: 1;
}

.leaflet-place-pin {
  color: var(--ink);
}

.leaflet-place-pin svg {
  display: block;
  width: 16px;
  height: 22px;
}

.leaflet-place-pin:hover,
.leaflet-marker-icon.is-active {
  color: var(--paper);
}

.leaflet-marker-icon.is-active svg {
  filter:
    drop-shadow(1px 0 0 #b42318)
    drop-shadow(-1px 0 0 #b42318)
    drop-shadow(0 1px 0 #b42318)
    drop-shadow(0 -1px 0 #b42318);
}

.leaflet-container {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.place-marker {
  position: absolute;
  width: 12px;
  height: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transform: translate(-50%, -100%);
}

.place-marker svg {
  display: block;
  width: 100%;
  height: 100%;
}

.place-marker:hover,
.place-marker:focus-visible,
.place-marker.is-active {
  color: var(--paper);
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.place-marker.is-active {
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.16);
}

.place-panel {
  min-height: 320px;
  padding: 18px;
  border: 0;
}

.place-panel h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.place-panel p {
  margin-top: 8px;
}

footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 46px;
  border-top: 0;
  color: var(--muted);
}

footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .hero-copy,
  .snapshot,
  h1 {
    grid-column: 1;
  }

  .hero-copy {
    grid-row: 3;
  }

  .snapshot {
    grid-row: 2;
  }

  .snapshot {
    justify-self: start;
    width: min(100%, 360px);
    min-height: 320px;
  }

  .case-card {
    grid-template-columns: minmax(82px, 0.2fr) minmax(0, 1fr);
    min-height: auto;
  }

  .case-card.has-image {
    grid-template-columns: minmax(82px, 0.2fr) minmax(0, 1fr);
  }

  .case-card h3,
  .case-card p:not(.card-kicker),
  .case-card ul,
  .case-card a,
  .case-card.has-image .case-image {
    grid-column: 2;
  }

  .case-card.has-image .case-image {
    grid-row: auto;
  }

  .card-kicker {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .case-card a {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 24px, 880px);
  }

  .site-header,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a {
    padding: 7px 8px;
    font-size: 0.86rem;
  }

  h1 {
    font-size: 3rem;
  }

  .section {
    padding: 28px 0 42px;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .places-layout {
    grid-template-columns: 1fr;
  }

  .case-card h3,
  .case-card p:not(.card-kicker),
  .case-card ul,
  .case-card a,
  .card-kicker,
  .case-card.has-image .case-image {
    grid-column: 1;
  }

  .card-kicker {
    grid-row: auto;
  }
}
