/*
 * Page chrome only. Everything that draws a row — .ph-lines, .ph-line*, .ph-status* —
 * lives in primitives.css and is shared with personal-hub. Nothing here may redefine
 * a token from theme.css; if a value needs to change, change it there.
 */

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

body {
  min-height: 100vh;
  font-family: var(--font-interface), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, var(--ambient), transparent 30rem),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 32px 32px, 32px 32px, auto;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 48px 72px; }

header {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.wordmark { display: flex; align-items: center; gap: 12px; min-width: 0; }

.wordmark-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 750;
}

.product-name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.header-actions { margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }

.theme-btn {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.theme-btn:hover { border-color: var(--primary); }

.hero { padding: 56px 0 46px; }

.hero-kicker,
.section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 14px 0 0;
  font-family: var(--font-editorial), Georgia, serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
}

.lede {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.66;
  color: var(--muted);
  text-wrap: pretty;
}

.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.section-rule { flex: 1; height: 1px; background: var(--border); }

/* The row list is the only place a link is not underlined by default, because the
   whole row is the target and the accent spine already marks it. */
.ph-line { cursor: default; }
a.ph-line { cursor: pointer; }

/* personal-hub writes these two as <div>; here they are spans inside a span, so that
   the markup stays valid inside an <a>. They still need to stack. */
.ph-line-title,
.ph-line-meta { display: block; }

footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.footer-spacer { flex: 1; }

@media (max-width: 620px) {
  .wrap { padding: 0 14px 56px; }
  header { min-height: 68px; gap: 12px; }
  .hero { padding: 36px 0 30px; }
  h1 { font-size: 40px; }
  .lede { font-size: 14.5px; margin-top: 16px; }
  footer { flex-wrap: wrap; gap: 14px; }
  .footer-spacer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-btn { transition: none; }
}
