/* ============================================
   PSİQUZ — stylesheet
   Plain-language notes are in HOW-TO.md
   ============================================ */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --rule: #d9d9d9;
  --muted: #767676;
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Newsreader', Georgia, serif;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --rule: #333333;
  --muted: #999999;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  transition: background .2s ease, color .2s ease;
}

a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.site-nav .nav-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav .nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.95rem;
}

.site-nav a.nav-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a.nav-link:hover { border-bottom-color: var(--fg); }

.theme-toggle {
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--fg); }

/* ---------- Full-bleed photo ---------- */
.bleed {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  line-height: 0;
}
.bleed img { display: block; width: 100%; height: auto; }

/* ---------- Home page ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

.statement { padding-right: 1rem; }

.statement h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.95;
  margin: 0 0 1.2rem;
}

.statement p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34ch;
}

.index-list { border-top: 1px solid var(--rule); }

.essay-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

.essay-row .row-title {
  font-style: italic;
  font-size: 1.2rem;
  flex: 1;
}

.essay-row .row-date {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.essay-row .row-num {
  color: var(--muted);
  font-size: 0.85rem;
  width: 2rem;
  text-align: right;
}

.essay-row:hover .row-title { text-decoration: underline; }

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

/* ---------- Essay page ---------- */
.essay-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.essay-header .eyebrow-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.essay-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 0.98;
  margin: 0;
}

.essay-body {
  max-width: 68ch;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.essay-body p { margin: 0 0 1.4rem; }
.essay-body em, .essay-body i { font-style: italic; }

.back-link {
  display: inline-block;
  margin: 2rem 0;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.back-link:hover { border-bottom-color: var(--fg); }

/* ---------- Photos page ---------- */
.photo-caption-wrap { padding: 1rem 0 2.5rem; }
.photo-caption {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.site-footer a:hover { border-bottom-color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 1.05rem; }
  .site-nav { padding: 1rem; }
  .site-nav .nav-links { gap: 1rem; }
  .essay-header { padding: 2rem 0 1.2rem; }
}
