/*
 * PhotoGather — the chrome every page shares: palette, base type, the page
 * frame, the nav and the footer. Page-specific styling stays inline in the page
 * that needs it; anything a second page would want belongs here instead, so the
 * blog and the privacy policy cannot drift away from the landing page.
 */

:root {
  --bg: #0a0c10;
  --bg2: #10131a;
  --surface: #161b26;
  --border: #232b3b;
  --text: #eef1f7;
  --muted: #97a0b5;
  --accent: #6ea8ff;
  --accent-2: #9d7bff;
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Asset placeholder ---------- */
.ph {
  border: 2px dashed #3b4660;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #11151e, #11151e 14px, #131826 14px, #131826 28px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: #7c87a3;
  font-size: .85rem; line-height: 1.5; font-weight: 500;
}
.ph strong { display: block; color: #aeb9d4; margin-bottom: 6px; font-size: .9rem; letter-spacing: .04em; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10,12,16,.78); border-bottom: 1px solid rgba(35,43,59,.6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 7px;
  display: block; flex: none;
  /* The icon's own ground is nearly the page colour, so the tile needs an edge to read as one. */
  border: 1px solid rgba(255,255,255,.12);
}
.nav-links { display: flex; gap: 28px; font-size: .92rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.small { padding: 9px 18px; font-size: .88rem; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .87rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-inner .logo { font-size: .95rem; }

/* ---------- Long-form pages (blog, posts, privacy) ---------- */
/* The head shares the reading column's width so its left edge lines up with the
   cards or prose underneath, rather than starting at the full page width. */
.page-head { max-width: 760px; margin: 0 auto; padding: 80px 0 40px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { color: var(--muted); margin-top: 16px; max-width: 620px; font-size: 1.05rem; }
/* Dates and section labels, in the same small-caps voice as the landing page's eyebrows. */
.post-meta { color: var(--muted); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }

/* A column of prose, the same width as the page head above it: about 75
   characters at this size — long enough to breathe, short enough that the eye
   finds the next line. */
.doc { max-width: 760px; margin: 0 auto; padding-bottom: 96px; }
.doc h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 14px; }
.doc h3 { font-size: 1.08rem; font-weight: 600; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 1rem; margin-bottom: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); text-decoration: underline; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 44px 0; }
.doc img { border-radius: 12px; margin: 24px 0; }
.doc blockquote { border-left: 2px solid var(--accent); padding-left: 18px; margin: 0 0 16px; }
.doc code { font-size: .92em; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.doc pre { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin-bottom: 16px; }
.doc pre code { background: none; border: 0; padding: 0; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: .9rem; }
.back-link:hover { color: var(--text); }

/* ---------- Blog index ---------- */
/* One column of entries, the same width as the prose a post is read in. */
.posts { max-width: 760px; margin: 0 auto; padding-bottom: 96px; }
.post-card {
  display: block; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 28px 30px; margin-bottom: 18px;
  transition: border-color .15s ease, transform .15s ease;
}
.post-card:hover { border-color: #33405a; transform: translateY(-2px); }
.post-card h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 10px; }
.post-card p { color: var(--muted); font-size: .97rem; }
.post-card .more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
