/* MikeSmithAI. One stylesheet. System fonts, no images in the page. */

:root {
  --paper: #f6f1e8;
  --raised: #fffcf8;
  --ink: #1b1612;
  --muted: #3e372f;
  --line: #e4d8c8;
  --green: #0f513f;
  --green-dark: #0b3a2d;
  --danger: #8e1a1a;
  --input-border: #7a6e60;
  --thanks-bg: #e5f2ec;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Liberation Serif", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Helvetica, "Liberation Sans", Arial, sans-serif;
  --radius: 1rem;
  --shadow: 0 16px 40px rgba(27, 22, 18, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--green);
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

h1,
h2,
.thanks-title {
  font-family: var(--serif);
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  max-width: 12em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

p + p {
  margin-top: 0.75rem;
}

a {
  color: var(--green-dark);
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--green);
  color: var(--raised);
}

.wrap {
  width: min(68rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  background: var(--green);
  color: var(--raised);
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  padding: 1rem 0 0.25rem;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-height: 2.75rem;
}

.mark {
  display: block;
  flex: none;
}

.nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}

.nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover,
.footer-nav a:hover,
.nav a:focus-visible,
.footer-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero {
  padding: 1.75rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.kicker {
  margin-bottom: 0.7rem;
  color: var(--green);
  font-weight: 650;
  font-size: 0.98rem;
}

.lede {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5;
}

.scan-card,
.signup-box {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
}

.scan-card {
  padding: 1.15rem;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

label {
  font-weight: 650;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--input-border);
  border-radius: 0.75rem;
  background: var(--raised);
  color: var(--ink);
  font: inherit;
  appearance: none;
}

input::placeholder {
  color: #5c534a;
  opacity: 1;
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--raised) inset;
  caret-color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button-primary {
  width: 100%;
  background: var(--green);
  color: var(--raised);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  justify-self: start;
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.button:disabled {
  cursor: progress;
}

.button-text {
  justify-self: start;
  min-height: 2.75rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--green-dark);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.hint,
.point p,
.step p,
.footer-note,
.faq details p,
.lede {
  color: var(--muted);
}

.hint {
  font-size: 0.98rem;
}

.form-error {
  color: var(--danger);
  font-weight: 650;
}

.thanks {
  background: var(--thanks-bg);
  border: 1px solid var(--green);
  border-radius: 0.9rem;
  padding: 1rem 1.05rem 0.4rem;
}

.thanks-title {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.scan-score {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.findings {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.findings li + li {
  margin-top: 0.65rem;
}

.finding-detail {
  display: block;
  color: var(--muted);
}

.locked-line {
  margin-top: 0.9rem;
  font-weight: 650;
}

.scan-card .button-secondary,
.thanks .button-secondary {
  width: 100%;
  margin-top: 0.85rem;
}

#scan-unlock:disabled {
  cursor: not-allowed;
}

.section {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.points,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.point-num {
  margin-bottom: 0.55rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}

.step {
  border-top: 3px solid var(--green);
  padding-top: 0.9rem;
}

.step-kicker {
  margin-bottom: 0.4rem;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.narrow {
  max-width: 40rem;
}

.note {
  max-width: 40rem;
  padding-left: 1rem;
  border-left: 4px solid var(--green);
}

.note h2 {
  margin-bottom: 0.75rem;
}

#pay-note {
  margin-top: 1rem;
  font-weight: 650;
}

#pay-note a {
  font-weight: 700;
}

.signup-box {
  padding: 1.2rem 1.15rem 1.15rem;
  box-shadow: none;
}

.signup-box h2 {
  margin-bottom: 0;
}

.signup-box form,
.signup-box .thanks {
  margin-top: 0.9rem;
}

.signup-box form > p {
  color: var(--muted);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.9rem 0;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-0.15rem) rotate(45deg);
}

details[open] summary::after {
  transform: translateY(0.15rem) rotate(225deg);
}

.faq details p {
  margin: 0 0 1rem;
  max-width: 38rem;
}

.noscript,
.callout {
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
}

.noscript {
  margin-bottom: 1.25rem;
}

.page {
  padding: 2rem 0 3rem;
}

.prose {
  max-width: 40rem;
}

.prose h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.prose h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  line-height: 1.6;
}

.prose ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose a {
  text-underline-offset: 0.15em;
}

.callout {
  margin: 1rem 0 1.25rem;
}

.back-link {
  margin: 0 0 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  align-items: flex-start;
  padding: 1.5rem 0 2.25rem;
}

.footer-brand {
  font-weight: 700;
}

.footer-note {
  flex: 1 1 16rem;
  max-width: 28rem;
}

[id] {
  scroll-margin-top: 1rem;
}

@media (min-width: 40rem) {
  .scan-card {
    padding: 1.4rem;
  }

  .button-secondary {
    width: auto;
  }

  .signup-box {
    padding: 1.45rem 1.5rem 1.35rem;
  }
}

.nowrap {
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .section {
    padding: 4.25rem 0;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand nav"
      "note nav";
    align-items: center;
  }

  .footer-brand { grid-area: brand; }
  .footer-note { grid-area: note; }
  .footer-nav { grid-area: nav; }
}

@media (min-width: 56rem) {
  .hero {
    padding: 4rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    gap: 3.5rem;
  }

  .points,
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: var(--ink);
    --input-border: var(--ink);
  }

  .button-primary {
    border-color: var(--ink);
  }
}

@media (forced-colors: active) {
  .button-primary,
  .button-secondary,
  .scan-card,
  .signup-box,
  .thanks {
    border: 1px solid ButtonText;
  }
}

@media print {
  body { background: #fff; }
  .scan-card { box-shadow: none; }
  a { text-decoration: underline; }
}
