/* ============================================================
   STATIONSIXADV — FIELD NOTEBOOK
   Calm. Restrained. Typography-forward.
   ============================================================ */

:root {
  --bg:      #f9f8f5;
  --ink:     #1a1917;
  --muted:   #7c7970;
  --faint:   #b8b4ae;
  --rule:    #dedad3;
  --accent:  #5a5044;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans:  system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "Courier New", Courier, monospace;

  --measure: 66ch;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* ── Reset ── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ── */

html {
  font-size: 18px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--serif);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ── */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.25;
}

p {
  max-width: var(--measure);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--ink);
}

/* ── Layout shell ── */

.site-header,
.site-main,
.site-footer {
  width: 100%;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* ── Header ── */

.site-header {
  padding-top: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.site-name:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

/* ── Main ── */

.site-main {
  flex: 1;
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
}

/* ── Footer ── */

.site-footer {
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ── Social nav (footer) ── */

.social-nav {
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-nav a {
  color: var(--faint);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.social-nav a:hover {
  color: var(--muted);
}

.social-nav svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

/* ── Home intro ── */

.site-intro {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--rule);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: var(--measure);
}

/* ── Section label (small caps heading) ── */

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-4);
  font-weight: normal;
}

/* ── Post list (home + listing pages) ── */

.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.post-list > .post-item:first-child {
  border-top: 1px solid var(--rule);
}

.post-item-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.post-item-sep {
  color: var(--faint);
}

.post-item-title {
  font-size: 1.1rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: var(--space-1);
}

.post-item-title a {
  text-decoration: none;
}

.post-item-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
}

.post-item-desc {
  font-size: 0.93rem;
  color: var(--muted);
  max-width: var(--measure);
  line-height: 1.6;
}

/* ── Single post ── */

.post-header {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.post-header .post-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: var(--space-2);
  text-decoration: none;
}

.post-header .post-label:hover {
  color: var(--ink);
  text-decoration: none;
}

.post-title {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  max-width: var(--measure);
}

.post-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
}

/* ── Post content ── */

.post-content > * + * {
  margin-top: 1.5em;
}

.post-content p {
  max-width: var(--measure);
}

.post-content h2 {
  font-size: 1.15rem;
  margin-top: 3em;
  margin-bottom: -0.5em;
}

.post-content h3 {
  font-size: 1rem;
  margin-top: 2.5em;
  margin-bottom: -0.5em;
}

.post-content blockquote {
  border-left: 2px solid var(--rule);
  padding-left: var(--space-3);
  color: var(--muted);
  font-style: italic;
  max-width: var(--measure);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--space-5) 0;
  max-width: 16ch;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
  max-width: var(--measure);
}

.post-content li + li {
  margin-top: 0.4em;
}

/* ── Listing page header ── */

.listing-header {
  margin-bottom: var(--space-5);
}

.listing-title {
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.listing-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── About page ── */

.about-content > * + * {
  margin-top: 1.5em;
}

.about-content p {
  max-width: var(--measure);
}

.about-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--space-5) 0;
  max-width: 16ch;
}

.about-content em {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ── Empty state ── */

.empty-state {
  color: var(--muted);
  font-style: italic;
  padding: var(--space-5) 0;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .site-header,
  .site-main,
  .site-footer {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .site-nav {
    gap: var(--space-2);
  }

  .post-title {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1.05rem;
  }
}
