* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #222;
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.site-header {
  border-bottom: 1px solid #ddd;
}

.nav,
main,
footer {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
}

main {
  padding: 64px 0;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 64px;
  align-items: center;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: normal;
}

h2 {
  margin-top: 56px;
  font-size: 1.8rem;
  font-weight: normal;
}

h3 {
  margin-bottom: 4px;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.portrait-placeholder {
  aspect-ratio: 1 / 1;
  border: 1px solid #bbb;
  display: grid;
  place-items: center;
  color: #777;
  font-style: italic;
}

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 64px 0 0;
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.trip-card h3,
.trip-card p {
  margin-top: 8px;
}

.trip-photo {
  aspect-ratio: 3 / 2;
  border: 1px solid #bbb;
  display: grid;
  place-items: center;
  color: #777;
  font-style: italic;
}

footer {
  border-top: 1px solid #ddd;
  padding: 24px 0 48px;
  color: #777;
  font-size: 0.9rem;
}

@media (max-width: 650px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    gap: 16px;
  }

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

  .portrait-placeholder {
    width: min(220px, 70vw);
  }

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

/* Trip report index */

.trip-index {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.trip-index-header {
  margin-bottom: 56px;
}

.trip-index-header h1 {
  margin-bottom: 12px;
}

.trip-index-header p {
  color: #666;
  font-size: 1.05rem;
}

.trip-year {
  margin-top: 48px;
}

.trip-year > h2 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
  font-size: 1.35rem;
  font-weight: normal;
}

.trip-entry {
  display: flex;
  justify-content: space-between;
  gap: 32px;

  padding: 22px 4px;

  border-bottom: 1px solid #e5e5e5;
  color: inherit;
  text-decoration: none;

  transition: padding-left 0.15s ease;
}

.trip-entry:hover {
  padding-left: 10px;
}

.trip-entry h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: normal;
}

.trip-entry p {
  margin: 0;
  color: #666;
}

.trip-meta {
  flex-shrink: 0;
  padding-top: 4px;
  color: #777;
  font-size: 0.9rem;
  text-align: right;
}

@media (max-width: 600px) {
  .trip-entry {
    flex-direction: column;
    gap: 6px;
  }

  .trip-meta {
    text-align: left;
  }
}