/* Signal + — styles. Palette, type and spacing follow /workspace/aipp-mock/site.html. */
:root {
  --paper: #f3efe6;
  --card: #fffdf8;
  --ink: #1a1714;
  --muted: #5f594f;
  --line: #ddd4c6;
  --accent: #0c5a4b;
  --accent-soft: #e6f0ec;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px 64px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 8px; gap: 12px;
}
.brand { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: inherit; }
.brand .ai { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; }
.brand .pp { font-family: var(--sans); font-weight: 700; font-size: 26px; color: var(--accent); letter-spacing: -0.06em; }
.site-nav { display: flex; gap: 4px; font-size: 13px; font-weight: 600; margin-right: -8px; }
.site-nav a {
  color: var(--ink); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { padding: 20px 0 8px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; line-height: 1.18; letter-spacing: -0.02em;
}
.hero p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
}
.eyebrow, section > h2, .section-head h2, .subscribe h2 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}

/* Subscribe */
.subscribe { margin: 24px 0 8px; }
.subscribe h2 { margin-bottom: 8px; }
.subscribe > p { font-size: 15px; margin-bottom: 12px; }
/* Plain Kit form, styled as in the mock */
.sub-form { display: flex; flex-direction: column; gap: 8px; }
.sub-form label { font-size: 13px; font-weight: 600; }
.sub-form input[type="email"] {
  width: 100%; min-height: 48px;
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 10px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
}
.sub-form input[type="email"]::placeholder { color: #8a8378; }
.sub-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sub-form button {
  border: 0; background: var(--accent); color: #f7fff9;
  font: inherit; font-weight: 650; font-size: 15px;
  border-radius: 10px; padding: 12px 16px; min-height: 48px; cursor: pointer;
}
.sub-form button:hover { background: #0a4d40; }
.sub-form button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; border: 0; border-radius: 10px;
  background: var(--accent); color: #f7fff9;
  font: inherit; font-weight: 650; font-size: 15px;
  padding: 12px 16px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #0a4d40; text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-x { background: var(--ink); color: var(--paper); width: auto; display: inline-flex; padding: 12px 18px; }
.btn-x:hover { background: #000; }
.btn-x svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.fine { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* Sections */
section { margin-top: 36px; }
section > h2 { margin-bottom: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 13px; font-weight: 650; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Empty states */
.empty .kicker { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.empty h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; margin: 8px 0 10px; }
.empty p { color: var(--muted); font-size: 15px; }
.read { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14px; font-weight: 650; color: var(--accent); text-decoration: none; }
.read:hover { text-decoration: underline; }

/* Archive list */
.archive { list-style: none; border-top: 1px solid var(--line); }
.archive li { border-bottom: 1px solid var(--line); }
.archive a, .archive .soon { display: block; padding: 14px 0; text-decoration: none; color: inherit; }
.archive a:hover h3 { color: var(--accent); }
.date { font-size: 12px; color: var(--muted); }
.archive h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; margin: 4px 0; }
.archive p { font-size: 14px; color: var(--muted); }
.soon { opacity: 0.8; }

/* About */
.about p + p { margin-top: 10px; }
.follow { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.follow .handle { font-size: 13px; color: var(--muted); }

/* Page titles (archive/about/404) */
.page-title { padding: 20px 0 4px; }
.page-title h1 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.18; letter-spacing: -0.02em; }
.page-title p { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
}
.site-footer nav { display: flex; gap: 4px 14px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  .wrap { max-width: 720px; padding: 0 32px 72px; }
  .site-header { padding-top: 28px; }
  .site-nav { font-size: 14px; gap: 8px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 17px; max-width: 36em; }
  .page-title h1 { font-size: 44px; }
  .card { padding: 22px 22px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1040px) {
  .wrap { max-width: 1120px; padding: 0 48px 88px; }
  .site-header { padding: 32px 0 12px; border-bottom: 1px solid var(--line); }
  .brand .ai { font-size: 44px; }
  .brand .pp { font-size: 29px; }
  .home-top {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px; align-items: center; padding: 56px 0 24px;
  }
  .home-top .hero { padding: 0; }
  .hero h1 { font-size: 58px; line-height: 1.08; }
  .hero p { font-size: 18px; margin-top: 18px; }
  .home-top .subscribe { margin: 0; padding: 26px 26px 22px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(26,23,20,.35); }
  section { margin-top: 64px; }
  #archive { margin-top: 48px; }
  #latest .empty p { max-width: 68ch; }
  .narrow { max-width: 720px; }
  .page-title { padding-top: 56px; }
  .page-title h1 { font-size: 54px; }
  .page-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .page-body aside { position: sticky; top: 24px; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
