/* Forever January - journal stylesheet (self-contained, no external assets) */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #61707f;
  --accent: #2b5d8c;
  --line: #e1e6ec;
  --radius: 10px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1a2029;
    --text: #e6ebf1;
    --muted: #9aa7b5;
    --accent: #8fb6dc;
    --line: #2a3340;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

h1, h2, h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  max-width: var(--measure);
  padding: 2rem 0 2.5rem;
}

.kicker {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.entries {
  padding-top: 1rem;
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.entry:last-of-type {
  border-bottom: 1px solid var(--line);
}

figure {
  margin: 0;
}

figure svg,
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* photographs of different proportions share one frame */
figure img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

figcaption {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.entry-text time {
  display: block;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.entry-text p {
  margin: 0 0 1rem;
}

.more {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.gallery {
  padding: 3rem 0 1rem;
}

.gallery > p {
  color: var(--muted);
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.about {
  max-width: var(--measure);
  padding: 2.5rem 0 0;
}

.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero {
    padding-top: 1rem;
  }
}
