/* ============================================================
   style.css — shared styles for index.html and now.html
   ============================================================ */

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

/* Variables */
:root {
  --bg: #f7f4ef;
  --ink: #2a2520;
  --ink-soft: #6b6560;
  --ink-faint: #b0aa9f;
  --accent: #8b5e3c;
  --rule: #ddd8d0;
  --max: 640px;
}

/* Base */
html {
  font-size: 18px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
  padding: 0 1.5rem;
}

/* ============================================================
   Layout
   ============================================================ */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 0 6rem;
}

/* ============================================================
   Header & nav — shared across all pages
   ============================================================ */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.site-name {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.site-name em {
  font-style: italic;
  color: var(--accent);
}

nav {
  margin-top: 0.75rem;
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.82rem;
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}

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

nav a.active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.lang-switcher {
    top: 1rem;
    right: 1rem;
    font-size: 0.9rem;
}

.lang-switcher a {
    text-decoration: none;
    color: #333;
}

.lang-switcher a.active {
    font-weight: bold;
    text-decoration: underline;
}

.lang-switcher span {
    margin: 0 0.25rem;
    color: #333;
}

/* ============================================================
   Footer — shared across all pages
   ============================================================ */

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer a {
  color: var(--ink-faint);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink-soft);
}

/* ============================================================
   Home page — intro & now teaser
   ============================================================ */

.intro {
  margin-bottom: 3.5rem;
}

.intro p {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

.intro a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.now-teaser {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.now-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.now-snippet {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1rem;
}

.now-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.15s;
}

.now-link:hover {
  opacity: 0.7;
}

/* ============================================================
   Now page — header, sections, dividers
   ============================================================ */

.now-header {
  margin-bottom: 2.5rem;
}

.now-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.now-date {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: lowercase;
}

.now-body {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

.now-section {
  margin-bottom: 2.25rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}

.now-section p {
  font-size: 0.97rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.now-section p:last-child {
  margin-bottom: 0;
}

.now-section p em {
  color: var(--accent);
  font-style: italic;
}

.section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* ============================================================
   Responsive
   ============================================================ */

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

  .page {
    padding: 3rem 0 4rem;
  }
}
