/* polish.css: design feedback pass, 2026-10-26. Loaded last on every page. */

/* 1. Readable subtext: darker muted/faint text */
:root:not([data-theme='dark']) {
  --color-text-muted: #554A40;
  --color-text-faint: #6E6155;
}
[data-theme='dark'] {
  --color-text-muted: #D6C7A8;
  --color-text-faint: #B3A48E;
}
.substack-note, .nl-block__fine, .signup-note { color: var(--color-text-muted, #554A40) !important; }

/* 2. Mobile header: compact DDDM wordmark */
@media (max-width: 640px) {
  .gnav-logo, .nav-logo-word .wordmark {
    font-size: 0 !important;
    letter-spacing: 0 !important;
  }
  .gnav-logo::before, .nav-logo-word .wordmark::before {
    content: "DDDM";
    font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: none;
    color: var(--color-text, #2A2523);
  }
}

/* 3. Fewer outlines: cards sit on soft shadows instead of borders */
.pillar, .issue, .issue-list .issue, .tool-card, .inline-signup {
  border: 0 !important;
  box-shadow: 0 1px 2px rgba(42, 37, 35, 0.06), 0 4px 14px rgba(42, 37, 35, 0.05);
}
[data-theme='dark'] .pillar, [data-theme='dark'] .issue, [data-theme='dark'] .tool-card, [data-theme='dark'] .inline-signup {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 4. Hover is a gentle lift, never a pink "selected" border */
.tool-card:hover, .issue:hover {
  border-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(42, 37, 35, 0.08), 0 10px 24px rgba(42, 37, 35, 0.09);
}

/* 5. Featured tool card looks like the others (no gradient, no badge) */
.tool-card-featured {
  background: var(--color-surface) !important;
  border-width: 0 !important;
}
.tool-badge { display: none !important; }

/* 6. Secondary newsletter button: solid, so it reads as a button, not an input box */
.kit-btn--inverse, .substack-btn--inverse {
  background: #2A2523 !important;
  color: #FEFCF8 !important;
  border: 0 !important;
}
.kit-btn--inverse:hover, .substack-btn--inverse:hover {
  background: #E1256B !important;
  color: #FEFCF8 !important;
}
[data-theme='dark'] .kit-btn--inverse { background: #F5EFE6 !important; color: #1F1A15 !important; }

/* 7. Phones: tighter "Straight answers" pillars and issue cards */
@media (max-width: 640px) {
  .pillars { gap: 0.75rem !important; }
  .pillar { padding: 1.1rem 1.25rem !important; gap: 0.35rem !important; }
  .pillar-title { font-size: 1.2rem !important; margin: 0 !important; }
  .pillar-body { font-size: 0.95rem !important; line-height: 1.5 !important; }
  .issues, .issue-list { gap: 0.75rem !important; }
  .issue, .issue-list .issue { padding: 1.1rem 1.25rem !important; gap: 0.35rem !important; }
  .tool-card { padding: 1.4rem 1.25rem !important; }
  .tools-grid { gap: 0.9rem !important; }
  .inline-signup { padding: 1.4rem 1.25rem !important; margin-top: 2rem !important; }
}

/* 8. Inline newsletter form (Kit form 10100980) */
.nl-form { display: flex; flex-wrap: wrap; gap: 0.5rem; width: 100%; max-width: 30rem; margin: 0; }
.substack-wrap--center .nl-form, .hero .nl-form, .nl-block .nl-form { margin-inline: auto; }
.nl-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl-form__input {
  flex: 1 1 13rem; min-width: 0; font: 400 1rem/1.3 'Inter', sans-serif; color: #2A2523;
  background: #FEFCF8; border: 1px solid #B9A88A; border-radius: 8px; padding: 0.85rem 1rem;
}
.nl-form__input::placeholder { color: #7A6D5F; }
.nl-form__input:focus { outline: 2px solid #B85D3E; outline-offset: 1px; border-color: transparent; }
.nl-form__btn {
  flex: 0 0 auto; font: 600 1rem/1.2 'Inter', sans-serif; color: #FEFCF8; background: #2A2523;
  border: 0; border-radius: 8px; padding: 0.85rem 1.4rem; cursor: pointer; transition: background .2s ease;
}
.nl-form__btn:hover, .nl-form__btn:focus-visible { background: #E1256B; }
.nl-form__btn:disabled { opacity: .7; cursor: default; }
.nl-form__msg { flex-basis: 100%; margin: 0; font: 500 0.95rem/1.4 'Inter', sans-serif; color: #2A2523; }
.nl-form__msg:empty { display: none; }
.nl-form.is-done .nl-form__input, .nl-form.is-done .nl-form__btn { display: none; }
[data-theme='dark'] .nl-form__input { background: #2A231C; color: #F5EFE6; border-color: #5C5040; }
[data-theme='dark'] .nl-form__input::placeholder { color: #B3A48E; }
[data-theme='dark'] .nl-form__btn { background: #F5EFE6; color: #1F1A15; }
[data-theme='dark'] .nl-form__msg { color: #F5EFE6; }
@media (max-width: 520px) { .nl-form__btn { flex: 1 1 100%; } }
