@font-face {
  font-family: Figtree;
  src: url("./figtree.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}

@font-face {
  font-family: Figtree;
  src: url("./figtree-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #fff;
  --ink: #191b20;
  --muted: #4d535e;
  --line: #e3e6eb;
  --link: #17458d;
  --link-hover: #0f2d60;
  background: var(--surface);
  color: var(--ink);
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.container {
  width: min(100% - 3rem, 46rem);
  margin-inline: auto;
}

.site-main {
  flex: 1;
  padding-block: clamp(2.75rem, 7vw, 5rem) 4rem;
}

a {
  color: var(--link);
  text-underline-offset: .2em;
}

a:hover { color: var(--link-hover); }

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: .25rem;
}

.skip-link {
  position: absolute;
  inset: 1rem auto auto 1rem;
  z-index: 1;
  padding: .45rem .65rem;
  background: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.site-header-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  min-height: 4rem;
  padding-block: .75rem;
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.site-name img { border-radius: 50%; }

.nav-list,
.link-list,
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.35rem;
}

.nav-list a {
  color: var(--muted);
  font-size: .9375rem;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
}

.nav-list a[aria-current] { font-weight: 500; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 500;
}

h1 {
  font-size: clamp(2.125rem, 6.5vw, 3.5rem);
  letter-spacing: -.035em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.2rem, 3vw, 1.45rem); }
h3 { font-size: 1.0625rem; }

strong, b, th { font-weight: 600; }

.intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: center;
  margin-bottom: clamp(2rem, 6vw, 3.2rem);
}

.intro h1 { font-size: clamp(1.875rem, 5.5vw, 3rem); }

.portrait {
  display: block;
  width: clamp(4.75rem, 17vw, 8.25rem);
  height: auto;
  border-radius: 50%;
}

.lede {
  max-width: 38rem;
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.prose {
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.prose .video-intro { margin: 0 0 1rem; }

.home-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: .3rem;
  background: var(--line);
}

.prose p { margin: .85rem 0 0; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.75rem; }
.prose img { max-width: 100%; height: auto; }

.video-source {
  display: inline-block;
  margin-top: .4rem;
  font-size: .875rem;
}

.photo-note,
.journey-photo figcaption {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

.journey-photo { margin: 1.2rem 0 1.9rem; }

.journey-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: .3rem;
  background: var(--line);
}

.journey-photo figcaption { margin-top: .35rem; }

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
}

.prose blockquote {
  margin-inline: 0;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid var(--line);
  color: var(--muted);
}

.page-heading { margin-bottom: 1.75rem; }

.page-section {
  margin-top: 2.5rem;
  padding-top: 1.45rem;
  border-top: 1px solid var(--line);
}

.page-section > h2 { margin-bottom: .35rem; }

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .35rem 1.5rem;
  padding-block: .95rem;
  border-bottom: 1px solid var(--line);
}

.post-title a {
  color: var(--ink);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--link);
  text-decoration: underline;
}

.post-list p { margin: .3rem 0 0; }
.post-list .post-title { margin: 0; font-weight: 500; }

.muted,
.post-list p,
.post-list time,
.post-source { color: var(--muted); }

.post-list time,
.post-source {
  font-size: .875rem;
  white-space: nowrap;
}

.back-link { display: inline-block; margin-bottom: .8rem; }
.post-date { display: block; margin: .7rem 0 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .45rem .85rem;
  border-radius: .35rem;
  background: var(--link);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--link-hover);
  color: #fff;
}

.booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem 1.5rem;
  margin-top: 0;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.booking p { margin: .25rem 0 0; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { color: var(--muted); font-size: .9375rem; }

@media (max-width: 30rem) {
  .container { width: calc(100% - 2.25rem); }
  .nav-list { column-gap: .85rem; }
  .intro { align-items: start; }
  .post-list li { flex-direction: column; }
}
