/* ---------------------------------------------------------
   OUR RUNTIME
   Shared visual design for the whole site
--------------------------------------------------------- */

:root {
  --bg: #0b0c0d;
  --panel: #121416;
  --text: #f1eee8;
  --muted: #9b9b96;
  --line: #2a2d30;
  --soft: #181b1e;
  --max: 1180px;
}

/* Basic reset */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

/* Links inherit the quiet visual style */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.75;
}

/* ---------------------------------------------------------
   MAIN LAYOUT
--------------------------------------------------------- */

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.site-title {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------
   TYPOGRAPHY
--------------------------------------------------------- */

.display-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.serif-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

/* ---------------------------------------------------------
   HOMEPAGE
--------------------------------------------------------- */

.home-hero {
  padding: 110px 0 90px;
}

.home-copy {
  margin-top: 36px;
}

.year-list {
  margin-top: 80px;
  border-top: 1px solid var(--line);
}

.year-link {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.year-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.year-description {
  color: var(--muted);
}

.year-arrow {
  font-size: 1.4rem;
}

/* ---------------------------------------------------------
   YEAR PAGE
--------------------------------------------------------- */

.year-hero {
  padding: 88px 0 70px;
  border-bottom: 1px solid var(--line);
}

.year-meta {
  margin-top: 28px;
  color: var(--muted);
}

.year-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  padding-top: 64px;
}

.journal-entry {
  padding-bottom: 80px;
  margin-bottom: 80px;
  border-bottom: 1px solid var(--line);
}

.entry-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 12px;
}

.entry-month {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
}

.entry-location {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: right;
}

.entry-intro {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
}

.photo-full {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   SIDEBAR
--------------------------------------------------------- */

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.sidebar-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-heading {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.sidebar-row:last-child {
  border-bottom: 0;
}

.sidebar-count {
  color: var(--muted);
}

/* ---------------------------------------------------------
   SMALL DETAIL LABELS
--------------------------------------------------------- */

.with-line {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.with-line strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.site-footer {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 850px) {
  .year-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sidebar {
    position: static;
  }

  .year-link {
    grid-template-columns: 90px 1fr auto;
  }
}

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

  .site-nav {
    gap: 14px;
    font-size: 0.8rem;
  }

  .home-hero {
    padding-top: 80px;
  }

  .year-hero {
    padding-top: 64px;
  }

  .year-link {
    grid-template-columns: 1fr auto;
  }

  .year-description {
    grid-column: 1 / -1;
  }

  .entry-heading {
    display: block;
  }

  .entry-location {
    margin-top: 8px;
    text-align: left;
  }

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