/* -----------------------------------------------------------------------------
   The Long Road - main stylesheet

   Locked design decisions:
   - Warm paper palette (#f4efe4 background, #2a241c body text)
   - Inter throughout, two weights: 400 and 500
   - Size and space do the hierarchy, not heavy weights
   - Generous whitespace, minimal chrome, no accent color
   ----------------------------------------------------------------------------- */

/* Reset / base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #2a241c;
  background: #f4efe4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.003em;
}

/* Shared container */
.site-header,
.site-main,
.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 36px;
  padding-right: 36px;
}

.site-main {
  padding-bottom: 48px;
}

/* ----- Header ----- */

.site-header {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 56px;
}

.site-brand {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1a1510;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.site-nav a {
  color: #1a1510;
  text-decoration: none;
}

.site-nav a.here {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ----- Footer ----- */

.site-footer {
  padding-top: 20px;
  padding-bottom: 40px;
  margin-top: 72px;
  border-top: 0.5px solid rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  color: #9b9080;
  gap: 32px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-left .tagline {
  color: #afa595;
}

.site-footer a {
  color: #9b9080;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- Homepage post list ----- */

.post-list {
  max-width: 560px;
}

.post-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  gap: 24px;
}

.post-row-title {
  font-size: 16px;
  font-weight: 400;
  color: #1a1510;
  text-decoration: none;
  letter-spacing: -0.005em;
}

.post-row-title:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.post-row-date {
  font-size: 13px;
  color: #9b9080;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ----- Post page ----- */

.post {
  max-width: 620px;
}

.post-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #1a1510;
}

.post-date {
  display: block;
  font-size: 13px;
  color: #9b9080;
  margin-bottom: 40px;
  font-variant-numeric: tabular-nums;
}

.post-body p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 1.2em;
  color: #2a241c;
}

.post-body h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 2em 0 0.6em;
  letter-spacing: -0.01em;
  color: #1a1510;
}

.post-body h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 1.8em 0 0.5em;
  color: #1a1510;
}

.post-body a {
  color: #2a241c;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.post-body blockquote {
  margin: 1.4em 0;
  padding-left: 20px;
  border-left: 2px solid #1a1510;
  color: #1a1510;
}

.post-body blockquote p {
  margin: 0.4em 0;
  font-size: 18px;
  line-height: 1.55;
}

.post-body img {
  max-width: 100%;
  margin: 1.5em 0;
  border-radius: 2px;
}

.post-body ul,
.post-body ol {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: #2a241c;
}

.post-body li {
  margin-bottom: 0.4em;
}

.post-body code {
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-body pre {
  background: rgba(0,0,0,0.05);
  padding: 16px 20px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
  margin: 1.5em 0;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* ----- Static page (About, Uses, Pictures) ----- */

.page {
  max-width: 620px;
}

.page-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: #1a1510;
}

.page-body p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 1.2em;
  color: #2a241c;
}

.page-body a {
  color: #2a241c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- About page ----- */

.portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 28px;
  background: linear-gradient(155deg, #c4b6a0 0%, #8c7862 100%);
  /* When you have a real photo, replace the background above with:
     background: url('/assets/images/portrait.jpg') center/cover;
  */
}

.elsewhere {
  max-width: 560px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 0.5px solid rgba(0,0,0,0.12);
}

.elsewhere-label {
  font-size: 11px;
  color: #9b9080;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin: 0 0 14px;
}

.elsewhere-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}

.elsewhere-list a {
  color: #1a1510;
  text-decoration: none;
}

.elsewhere-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- Uses page ----- */

.uses-group {
  margin-bottom: 36px;
}

.uses-group:last-child {
  margin-bottom: 0;
}

.uses-group h2 {
  font-size: 12px;
  font-weight: 500;
  color: #9b9080;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.uses-item {
  font-size: 16px;
  line-height: 1.85;
  color: #2a241c;
}

.uses-item .note {
  color: #9b9080;
}

/* ----- Pictures page ----- */

.pictures-essay {
  max-width: 580px;
}

.pictures-essay .picture {
  width: 100%;
  margin-bottom: 36px;
  border-radius: 2px;
}

.pictures-essay .picture:last-child {
  margin-bottom: 0;
}

.pictures-placeholder {
  color: #9b9080;
  font-size: 14px;
}

/* ----- Mobile ----- */

@media (max-width: 600px) {
  .site-header,
  .site-main,
  .site-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .site-header {
    padding-top: 24px;
    margin-bottom: 44px;
  }

  .site-brand {
    font-size: 16px;
  }

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

  .post-title {
    font-size: 26px;
    line-height: 1.18;
  }

  .post-row {
    gap: 16px;
  }

  .post-row-title {
    font-size: 15px;
  }

  .post-row-date {
    font-size: 12px;
  }

  .site-footer {
    flex-direction: column;
    gap: 16px;
    margin-top: 56px;
  }
}
