/*
 * Blueprint theme
 *
 * A graphite work surface, crisp construction lines, and one blueprint-blue
 * accent. Every rule is rooted in the active theme so this layer cannot alter
 * Ledger, Porch, or an unthemed document.
 */

:root[data-theme="blueprint"] {
  --color-page: #eef1f5;
  --color-page-deep: #e7eef8;
  --color-surface: #ffffff;
  --color-heading: #171e28;
  --color-text: #37414f;
  --color-muted: #5b6675;
  --color-border: #ccd4de;
  --color-rule: #a4b2c3;
  --color-accent: #1a56b0;
  --color-accent-hover: #14448c;
  --color-accent-soft: #e7eef8;
  --color-on-accent: #ffffff;
  --color-band: #1a56b0;
  --color-band-text: #e4ebf7;
  --color-band-heading: #ffffff;
  --color-focus: #1a56b0;
  --color-selection: #d6e3f4;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-label: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --weight-body: 400;
  --weight-strong: 700;
  --weight-heading: 800;
  --line-body: 1.65;
  --line-heading: 1.15;

  --layout-max: 66rem;
  --layout-narrow: 46rem;
  --text-measure: 42rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-space: clamp(3.5rem, 7vw, 5rem);
  --hero-space-top: clamp(3.5rem, 8vw, 5.5rem);
  --hero-space-bottom: clamp(4rem, 8vw, 6rem);
  --radius-small: 0.1875rem;
  --radius-medium: 0.1875rem;
  --radius-large: 0.1875rem;
  --radius-button: 0.1875rem;
  --surface-shadow: none;

  --tip-widget-accent: #1a56b0;

  scroll-padding-top: 4.5rem;
}

:root[data-theme="blueprint"] body {
  background: var(--color-page);
  color: var(--color-text);
}

:root[data-theme="blueprint"] :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline-width: 2px;
  outline-color: var(--color-focus);
  outline-offset: 3px;
}

/* Header */
:root[data-theme="blueprint"] .site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-color: var(--color-border);
  background: var(--color-page);
}

:root[data-theme="blueprint"] .site-head .header-main {
  gap: 0.35rem 1.5rem;
  padding-block: 0.85rem;
}

:root[data-theme="blueprint"] .presence-shell {
  background-image: linear-gradient(to right, rgb(26 86 176 / 7%) 1px, transparent 1px);
  background-size: 1.5rem 100%;
}

:root[data-theme="blueprint"] .presence-list {
  border-radius: var(--radius-small);
}

:root[data-theme="blueprint"] .fishing-card {
  position: relative;
  box-shadow: 0 0 0 1px rgb(26 86 176 / 4%);
}

:root[data-theme="blueprint"] .fishing-card::after {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 1px solid rgb(255 255 255 / 72%);
  border-right: 1px solid rgb(255 255 255 / 72%);
  content: "";
  pointer-events: none;
}

:root[data-theme="blueprint"] .wordmark {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

:root[data-theme="blueprint"] .site-nav {
  gap: 0.25rem 1.15rem;
}

:root[data-theme="blueprint"] .site-nav a {
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.07em;
}

:root[data-theme="blueprint"] .site-nav a:hover,
:root[data-theme="blueprint"] .site-nav a[aria-current] {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Hero */
:root[data-theme="blueprint"] .hero-inner {
  display: flex;
  flex-direction: column;
}

:root[data-theme="blueprint"] .eyebrow {
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 400;
}

:root[data-theme="blueprint"] .hero h1 {
  max-width: 24ch;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

:root[data-theme="blueprint"] .hero-emphasis {
  color: inherit;
}

:root[data-theme="blueprint"] .hero-copy {
  max-width: 42rem;
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

:root[data-theme="blueprint"] .hero .button-row {
  order: 2;
  margin-top: 0;
}

:root[data-theme="blueprint"] .hero-measure {
  position: relative;
  order: 1;
  width: min(30rem, 100%);
  height: 1rem;
  margin-block: 2rem;
  border-inline: 1px solid #9fb0c4;
  color: #9fb0c4;
}

:root[data-theme="blueprint"] .hero-measure::before {
  position: absolute;
  top: calc(50% - 0.5px);
  right: 0.7rem;
  left: 0.7rem;
  border-top: 1px solid currentColor;
  content: "";
}

:root[data-theme="blueprint"] .hero-measure span::before,
:root[data-theme="blueprint"] .hero-measure span::after {
  position: absolute;
  top: calc(50% - 0.25rem);
  width: 0;
  height: 0;
  border-block: 0.25rem solid transparent;
  content: "";
}

:root[data-theme="blueprint"] .hero-measure span::before {
  left: 0;
  border-left: 0.7rem solid currentColor;
}

:root[data-theme="blueprint"] .hero-measure span::after {
  right: 0;
  border-right: 0.7rem solid currentColor;
}

/* Buttons */
:root[data-theme="blueprint"] .button {
  min-height: 2.75rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
}

:root[data-theme="blueprint"] .button-secondary {
  border-color: var(--color-heading);
  color: var(--color-heading);
}

:root[data-theme="blueprint"] .button-secondary:hover {
  border-color: var(--color-heading);
  background: var(--color-surface);
  color: var(--color-heading);
}

/* Full-width construction rules and section headings */
:root[data-theme="blueprint"] .section {
  border-top: 1px solid var(--color-border);
}

:root[data-theme="blueprint"] .section > .wrap {
  border-top: 0;
}

:root[data-theme="blueprint"] .section h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

:root[data-theme="blueprint"] .section h2::after {
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.65rem;
  background: var(--color-accent);
  content: "";
}

:root[data-theme="blueprint"] .section-lead {
  max-width: 42rem;
  margin-top: 1.1rem;
}

/* How it works */
:root[data-theme="blueprint"] .steps {
  display: grid;
  gap: 1px;
  margin-top: 2.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-border);
  counter-reset: blueprint-step;
}

:root[data-theme="blueprint"] .steps li {
  display: block;
  padding: 1.5rem;
  border: 0;
  background: var(--color-surface);
  counter-increment: blueprint-step;
}

:root[data-theme="blueprint"] .steps li:last-child {
  border: 0;
}

:root[data-theme="blueprint"] .step-number {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

:root[data-theme="blueprint"] .step-number::before {
  content: counter(blueprint-step, decimal-leading-zero);
  font-size: 0.8rem;
}

:root[data-theme="blueprint"] .step-number::after {
  content: none;
}

:root[data-theme="blueprint"] .steps p {
  font-size: 0.95rem;
}

:root[data-theme="blueprint"] .steps strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.25;
}

/* Pricing */
:root[data-theme="blueprint"] .price-options,
:root[data-theme="blueprint"] .price-upgrades {
  display: grid;
  gap: 1.25rem;
  border: 0;
}

:root[data-theme="blueprint"] .price-options {
  margin-top: 2.25rem;
}

:root[data-theme="blueprint"] .price-upgrades {
  margin-top: 1.25rem;
}

:root[data-theme="blueprint"] .price-block {
  padding: 1.5rem;
}

:root[data-theme="blueprint"] .price-option,
:root[data-theme="blueprint"] .price-options .price-block:first-child {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  background: var(--color-surface);
}

:root[data-theme="blueprint"] .price-option {
  padding: 1.75rem;
}

:root[data-theme="blueprint"] .price-upgrade,
:root[data-theme="blueprint"] .price-upgrades .price-block:first-child {
  border: 1px dashed var(--color-rule);
  background: transparent;
}

:root[data-theme="blueprint"] .price-heading {
  display: block;
}

:root[data-theme="blueprint"] .price-heading::before {
  display: none;
}

:root[data-theme="blueprint"] .price-heading > div,
:root[data-theme="blueprint"] .price-heading > .price {
  min-width: 0;
}

:root[data-theme="blueprint"] .price-heading > .price {
  margin-block: 0.5rem 0.9rem;
  text-align: left;
}

:root[data-theme="blueprint"] .price-kind {
  margin-bottom: 0.6rem;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

:root[data-theme="blueprint"] .price-upgrade .price-kind {
  color: var(--color-muted);
}

:root[data-theme="blueprint"] .price-heading h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

:root[data-theme="blueprint"] .price {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

:root[data-theme="blueprint"] .price-upgrade .price {
  margin-block: 0.4rem 0.7rem;
  font-size: 1.35rem;
}

:root[data-theme="blueprint"] .price-unit {
  display: inline;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

:root[data-theme="blueprint"] .price-block > p {
  max-width: none;
  margin-top: 0;
  font-size: 0.95rem;
}

:root[data-theme="blueprint"] .geo-price {
  text-align: left;
}

:root[data-theme="blueprint"] .trust-block {
  max-width: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1rem;
}

:root[data-theme="blueprint"] .value-comparison {
  border: 1px solid var(--color-rule);
  border-top: 0.3rem solid var(--color-accent);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

:root[data-theme="blueprint"] .value-comparison h3,
:root[data-theme="blueprint"] .comparison-item dt {
  font-family: var(--font-heading);
}

:root[data-theme="blueprint"] .comparison-item {
  border-color: var(--color-rule);
}

:root[data-theme="blueprint"] .comparison-item dd strong {
  color: var(--color-accent);
  font-family: var(--font-mono);
}

:root[data-theme="blueprint"] .trust-block > p:first-child {
  max-width: 44rem;
}

:root[data-theme="blueprint"] .trust-block .microcopy {
  max-width: 44rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #dde3ea;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

/* Editing, client, and FAQ sections */
:root[data-theme="blueprint"] .section-editor .narrow > p:not(.ai-cost) {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

:root[data-theme="blueprint"] .ai-cost {
  padding: 0.75rem 0.9rem;
  border: 1px solid #b7c9e2;
  border-radius: var(--radius-small);
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

:root[data-theme="blueprint"] .section-clients .wrap.narrow {
  --layout-max: 66rem;
}

:root[data-theme="blueprint"] .client-list {
  display: grid;
  gap: 1px;
  margin-top: 2.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

:root[data-theme="blueprint"] .client-list li,
:root[data-theme="blueprint"] .client-list li:last-child {
  padding: 1.35rem 1.5rem;
  border: 0;
  background: var(--color-surface);
  font-size: 0.97rem;
}

:root[data-theme="blueprint"] .faq-list {
  margin-top: 1.5rem;
}

:root[data-theme="blueprint"] .faq-item {
  padding-block: 1.4rem;
}

:root[data-theme="blueprint"] .faq-item dt {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 750;
}

:root[data-theme="blueprint"] .faq-item dd {
  font-size: 0.97rem;
}

/* Tip and contact */
:root[data-theme="blueprint"] .tip-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
  background: var(--color-page);
}

:root[data-theme="blueprint"] .contact-band {
  background-color: var(--color-band);
  background-image:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 7%) 0, rgb(255 255 255 / 7%) 1px, transparent 1px, transparent 2.75rem),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 7%) 0, rgb(255 255 255 / 7%) 1px, transparent 1px, transparent 2.75rem);
}

:root[data-theme="blueprint"] .contact-band .wrap.narrow {
  --layout-max: 66rem;
}

:root[data-theme="blueprint"] .contact-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

:root[data-theme="blueprint"] .contact-band p {
  max-width: 38rem;
  margin-top: 0.8rem;
  color: var(--color-band-text);
}

:root[data-theme="blueprint"] .contact-band .button-light {
  margin-top: 0.6rem;
  color: var(--color-accent);
}

:root[data-theme="blueprint"] .contact-band .button-light:hover {
  border-color: #e4ebf7;
  background: #e4ebf7;
  color: var(--color-accent-hover);
}

:root[data-theme="blueprint"] .contact-band :where(a, button):focus-visible {
  outline-color: #ffffff;
}

/* Footer and utility surfaces */
:root[data-theme="blueprint"] .site-foot {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--color-border);
}

:root[data-theme="blueprint"] .site-foot .wrap {
  padding-top: 0;
  border-top: 0;
  font-family: var(--font-mono);
}

:root[data-theme="blueprint"] .site-foot p {
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

@media (min-width: 48em) {
  :root[data-theme="blueprint"] .steps,
  :root[data-theme="blueprint"] .price-options,
  :root[data-theme="blueprint"] .price-upgrades {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :root[data-theme="blueprint"] .site-foot .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.55rem 1.5rem;
  }

  :root[data-theme="blueprint"] .site-foot .foot-links {
    margin-top: 0;
  }
}

@media (max-width: 40em) {
  :root[data-theme="blueprint"] .site-nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="blueprint"] {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  :root[data-theme="blueprint"] .hero-measure,
  :root[data-theme="blueprint"] .price-option {
    forced-color-adjust: auto;
  }
}
