:root {
  --bg: #faf7f2;
  --text: #1c1c1a;
  --muted: #6b6b60;
  --accent: #3f5c4a;
  --divider: #e4ddd0;
  --font: "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.bio {
  position: sticky;
  top: 4rem;
}

h1 {
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.portrait {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  margin: 0 0 1.1rem;
  border-radius: 4px;
}

.role {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.destinations {
  display: flex;
  flex-direction: column;
}

.destination {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-top: 1px dashed var(--divider);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.destination:last-child {
  border-bottom: 1px dashed var(--divider);
}

.destination:focus-visible {
  background-color: rgba(63, 92, 74, 0.14);
  padding-left: 0.75rem;
}

.destination-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--accent);
}

.destination-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
  min-width: 0;
}

.destination-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.destination:focus-visible .destination-title {
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .destination:hover {
    background-color: rgba(63, 92, 74, 0.14);
    padding-left: 0.75rem;
  }

  .destination:hover .destination-title {
    color: var(--accent);
  }
}

.destination-desc {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 62ch;
}

.now {
  border-top: 1px dashed var(--divider);
  border-bottom: 1px dashed var(--divider);
  padding: 1.5rem 0 1.75rem;
}

.now-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.now-updated {
  margin: 0.3rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.now p:not(.now-updated) {
  margin: 0 0 1.1rem;
  max-width: 62ch;
}

.now p:last-child {
  margin-bottom: 0;
}

.contact {
  margin-top: 3rem;
  font-size: 0.85rem;
}

.contact-note {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.25rem;
}

.contact a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .contact a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }
}

.copyright {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Squeeze the sidebar gracefully before the layout stacks */
@media (max-width: 960px) {
  .page {
    grid-template-columns: 230px 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 680px) {
  .page {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 1.5rem 3rem;
  }

  .bio {
    position: static;
    text-align: center;
  }

  .portrait {
    max-width: 220px;
    margin-inline: auto;
  }

  .copyright {
    margin-left: 0;
    width: 100%;
    order: 10;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 14px;
  }

  .page {
    padding: 3rem 1.1rem 2.5rem;
  }

  .destination:focus-visible {
    padding-left: 0.5rem;
  }
}

@media (max-width: 420px) and (hover: hover) and (pointer: fine) {
  .destination:hover {
    padding-left: 0.5rem;
  }
}
