/* ============================================================
   philwoolley.com: "The Index" (Variant D)
   Stark Swiss: white ground, near-black ink, one red accent.
   Shared stylesheet for the hub and every sub-page.
   No gradients, no shadows, no decoration.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --red: #e11d1d;
  --muted: #555555;
  --faint: #666666;
  --hairline: #dddddd;
  --wash: #f4f4f4;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --maxw: 1080px;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- top nav (sub-pages) ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 18px;
  border-bottom: 4px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark em { font-style: normal; color: var(--red); }
.brand-name {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.brand-name em { font-style: normal; color: var(--red); }
.crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--faint);
  text-transform: uppercase;
  text-align: right;
}

/* ============================================================
   HUB PAGE
   ============================================================ */

.masthead {
  padding: 60px 0 36px;
  border-bottom: 4px solid var(--ink);
}
.masthead h1 {
  font-size: clamp(46px, 13vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}
.masthead h1 em { font-style: normal; color: var(--red); }
.mast-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 22px;
}
.mast-row p {
  font-size: clamp(15px, 2.4vw, 17px);
  max-width: 540px;
  line-height: 1.45;
}
.mast-row p b { font-weight: 800; }
.mast-row .num {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--faint);
  text-align: right;
  white-space: nowrap;
}

section { border-bottom: 4px solid var(--ink); }

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0 14px;
}
.sec-head h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.sec-head span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.5px;
  text-align: right;
}

/* ---- 01 featured ---- */
.d-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}
.d-feature .txt { padding: 34px 34px 34px 0; }
.d-feature h3 {
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.d-feature p {
  font-size: 16px;
  line-height: 1.5;
  max-width: 430px;
  margin-bottom: 22px;
}
.d-shot {
  background: var(--wash);
  border-left: 1px solid var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 24px 0;
}
.d-shot img {
  width: 56%;
  max-width: 260px;
  border-radius: 12px 12px 0 0;
}

/* ---- buttons ---- */
.btn-d {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  background: var(--red);
  color: #fff;
  padding: 13px 24px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 8px 8px 0;
  transition: background 0.12s ease;
}
.btn-d:hover { background: var(--ink); }
.btn-d.ghost {
  background: transparent;
  color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.btn-d.ghost:hover { background: var(--ink); color: #fff; }

/* ---- 02 the index table ---- */
.idx-row {
  display: grid;
  grid-template-columns: 44px 1fr 210px 118px 60px;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--ink);
  padding: 15px 0;
  text-decoration: none;
  color: inherit;
}
.idx-row:hover { background: var(--wash); }
.idx-row:hover .idx-name { color: var(--red); }
.idx-no {
  font-family: var(--mono);
  font-size: 12px;
  color: #999;
}
.idx-name {
  font-size: clamp(18px, 4vw, 21px);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 0.12s ease;
}
.idx-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.idx-st {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
}
.idx-st.live { color: var(--red); }
.idx-img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  justify-self: end;
  border: 1px solid var(--hairline);
}
.idx-img.gen {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  border: none;
}
.idx-img.chip { background: var(--ink); padding: 5px; border: none; }

/* ---- 03 output strip ---- */
.strip { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.strip > div {
  border-top: 1px solid var(--ink);
  padding: 22px 22px 26px;
}
.strip > div + div { border-left: 1px solid var(--ink); }
.strip h4 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.strip p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.strip a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  margin-right: 12px;
}
.strip a:hover { text-decoration: underline; }
.strip a.placeholder { border-bottom: 1px dotted var(--red); }

/* ---- work with me band ---- */
.hire-d {
  background: var(--ink);
  color: #fff;
  padding: 36px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.hire-d h3 {
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.hire-d p {
  color: #aaa;
  font-size: 14px;
  max-width: 460px;
  margin-top: 8px;
}
.hire-d .btn-d { flex: 0 0 auto; }
.hire-d .btn-d:hover { background: #fff; color: var(--ink); }

/* ---- footer ---- */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0 44px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.5px;
}
.foot .links a {
  color: var(--faint);
  text-decoration: none;
  margin-left: 16px;
}
.foot .links a:first-child { margin-left: 0; }
.foot .links a:hover { color: var(--red); }

/* ============================================================
   ARTICLE / SUB-PAGES (samplomatic, privacy, terms, support)
   ============================================================ */

.page { padding: 44px 0 8px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-title {
  font-size: clamp(38px, 9vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}
.page-title em { font-style: normal; color: var(--red); }
.page-lede {
  font-size: clamp(16px, 3vw, 19px);
  line-height: 1.5;
  max-width: 620px;
  margin-top: 20px;
}
.page-lede b { font-weight: 800; }
.effective {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--faint);
  text-transform: uppercase;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.about { margin-top: 28px; max-width: 640px; }
.about p { font-size: 16px; line-height: 1.6; margin-bottom: 16px; color: var(--muted); }
.about p:first-child { color: var(--ink); }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 40px 0 4px;
  padding-top: 16px;
  border-top: 4px solid var(--ink);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.chip.live { background: var(--red); color: #fff; border-color: var(--red); }
.chip.muted { color: var(--faint); border-color: var(--hairline); }

/* feature list on sub-pages */
.feature-list { list-style: none; margin-top: 12px; }
.feature-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: baseline;
  border-top: 1px solid var(--ink);
  padding: 16px 0;
}
.feature-no {
  font-family: var(--mono);
  font-size: 12px;
  color: #999;
}
.feature-body strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.feature-body span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* prose for policy pages */
.prose { margin-top: 30px; max-width: 680px; }
.prose h2 {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 34px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 .num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}
.prose p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin-bottom: 14px; }
.prose p b, .prose p strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--red); text-decoration: none; border-bottom: 1px solid var(--red); }
.prose ul { margin: 0 0 14px 20px; }
.prose li { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin-bottom: 6px; }

.callout {
  border: 4px solid var(--ink);
  padding: 22px 24px;
  margin: 26px 0;
}
.callout-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.callout p { margin-bottom: 0; color: var(--ink); }

.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 8px; }
.link-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 11px 18px;
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  transition: background 0.12s ease, color 0.12s ease;
}
.link-btn:hover { background: var(--ink); color: #fff; }
.link-btn.primary { background: var(--red); color: #fff; outline-color: var(--red); }
.link-btn.primary:hover { background: var(--ink); outline-color: var(--ink); }

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 4px solid var(--ink);
  margin-top: 40px;
  padding: 24px 0 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--faint);
}
.page-footer a { color: var(--faint); text-decoration: none; }
.page-footer a:hover { color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .wrap { padding: 0 22px; }

  .mast-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .mast-row p { max-width: 100%; }
  .mast-row .num { text-align: left; }

  .d-feature { grid-template-columns: 1fr; }
  .d-feature .txt { padding: 30px 0; }
  .d-shot { border-left: none; border-top: 1px solid var(--ink); padding: 24px 0 0; }
  .d-shot img { width: 62%; max-width: 240px; }

  .strip { grid-template-columns: 1fr; }
  .strip > div + div { border-left: none; }

  .hire-d { flex-direction: column; align-items: flex-start; gap: 20px; padding: 30px 24px; }
}

@media (max-width: 720px) {
  /* index table collapses: keep number + icon, stack name/desc/status */
  .idx-row {
    grid-template-columns: 30px 1fr 46px;
    grid-template-areas:
      "no name img"
      "no desc img"
      "no st   img";
    gap: 2px 14px;
    padding: 16px 0;
  }
  .idx-no   { grid-area: no; align-self: start; padding-top: 3px; }
  .idx-name { grid-area: name; }
  .idx-desc { grid-area: desc; margin-top: 3px; }
  .idx-st   { grid-area: st; margin-top: 6px; }
  .idx-img  { grid-area: img; align-self: center; }

  .sec-head span { display: none; }
  .crumb { display: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .btn-d { display: block; text-align: center; margin-right: 0; }
  .hire-d .btn-d { display: inline-block; }
  .foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot .links a:first-child { margin-left: 0; }
  .foot .links { display: flex; flex-wrap: wrap; gap: 4px 0; }
}
