

/* ============================================================
   Design tokens
   From-scratch design system (2026-08-14), superseding the
   WordPress-matching pass from PR #10/#11. Shared base intended
   for reuse by hustomte.com with only the accent token swapped.
   ============================================================ */
:root {
  /* Color */
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-border: #e5e2dd;
  --color-accent: #1c4a4a;
  --color-accent-contrast: #ffffff;

  /* Type — base 18px, ratio 1.333 */
  --font-display: "Newsreader", Georgia, serif;
  --font-wordmark: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-small: 14px;
  --text-base: 18px;
  --text-h4: 20px;
  --text-h3: 24px;
  --text-h2: 32px;
  --text-h1: 43px;
  --text-display: 57px;

  /* Spacing — 8px base unit */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;
  --section-space: var(--space-12);

  /* Grid — breakpoints 640/1024/1280; 1280 reserved, not yet needed
     since content is already capped at --grid-max-width below it */
  --grid-max-width: 1200px;
  --gutter: var(--space-3);
}

@media (max-width: 640px) {
  :root {
    --section-space: var(--space-8);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
}

/* One scale for every heading level — no ad-hoc sizes */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

small, .text-small {
  font-size: var(--text-small);
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Grid
   ============================================================ */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand img {
  display: block;
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: var(--space-4);
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Current page marked by weight + underline, not color alone */
.site-nav a.is-current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 700;
  font-size: var(--text-small);
  letter-spacing: 0.04em;
}

.lang-toggle__btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font: inherit;
  color: var(--color-muted);
  text-decoration: none;
  cursor: pointer;
}

a.lang-toggle__btn:hover {
  color: var(--color-text);
}

.lang-toggle__btn[aria-pressed="true"],
.lang-toggle__btn[aria-current="true"] {
  color: var(--color-text);
  text-decoration: underline;
}

.lang-toggle__btn--disabled {
  color: var(--color-border);
  cursor: default;
}

.lang-toggle__sep {
  color: var(--color-border);
}

/* ============================================================
   Main
   ============================================================ */
main {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: var(--section-space) var(--gutter);
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.88;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-border);
  opacity: 1;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-bottom: var(--section-space);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--section-space);
}

.hero h1 {
  font-size: var(--text-display);
  max-width: 36ch;
}

.hero__body {
  font-size: 1.15rem;
  color: var(--color-muted);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ============================================================
   Intro
   ============================================================ */
.intro {
  margin-bottom: var(--section-space);
}

.intro__body {
  font-size: 1.15rem;
}

.intro__note {
  color: var(--color-muted);
  margin: 0;
}

/* ============================================================
   Why us — homepage value-proposition grid
   ============================================================ */
.why {
  margin-bottom: var(--section-space);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.why__item h4 {
  margin-bottom: var(--space-1);
}

.why__item p {
  color: var(--color-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Pricing — 12-col grid, 2 columns x 6 cols
   ============================================================ */
.pricing {
  margin-bottom: var(--section-space);
}

.pricing__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

.pricing-column {
  grid-column: span 6;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-4);
}

.pricing-column__icon {
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.pricing-column__icon .icon {
  display: block;
}

.pricing-column h3 {
  font-size: var(--text-h3);
}

.pricing-column__intro {
  color: var(--color-muted);
  font-size: var(--text-small);
}

.pricing-column__link {
  display: inline-block;
  margin-top: var(--space-3);
}

.pricing-item {
  padding-top: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.pricing-item:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.pricing-item__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.pricing-item__header h4 {
  margin: 0;
}

.pricing-item__price {
  font-weight: 700;
  white-space: nowrap;
}

.pricing-item__note {
  color: var(--color-muted);
  margin: var(--space-1) 0 0;
}

.pricing-item__body {
  color: var(--color-muted);
  font-size: var(--text-small);
  margin: var(--space-1) 0 0;
}

/* ============================================================
   Homepage prose
   ============================================================ */
.home-content h2 {
  margin-top: var(--space-6);
}

.home-content p a {
  color: var(--color-accent);
  font-weight: 500;
}

.home-content p a:hover {
  text-decoration: underline;
}

/* ============================================================
   Interior / article pages
   ============================================================ */
.article__body {
  margin-top: var(--space-3);
}

.article__body h2 {
  margin-top: var(--space-6);
}

.article__body h3 {
  margin-top: var(--space-4);
}

.article__body ul,
.article__body ol {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-4);
}

.article__body a {
  color: var(--color-accent);
  font-weight: 500;
}

.article__body a:hover {
  text-decoration: underline;
}

/* ============================================================
   Contact form (PRD-contact-funnel.md)
   ============================================================ */
.contact-form {
  max-width: 480px;
}

.contact-form__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-field label {
  font-weight: 500;
  font-size: var(--text-small);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  font: inherit;
  font-size: var(--text-small);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-2);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-field textarea {
  resize: vertical;
}

/* Honeypot — off-screen, not display:none, so bots that skip
   hidden fields still fill it (server relies on this) */
.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-form__submit {
  align-self: flex-start;
}

.contact-form__status {
  margin: 0;
  font-size: var(--text-small);
  min-height: 1.2em;
}

.contact-form__status--success {
  color: var(--color-accent);
  font-weight: 500;
}

.contact-form__status--error {
  color: #b3261e;
  font-weight: 500;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
}

.site-footer__inner {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-small);
}

.site-footer .brand {
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer .site-nav {
  gap: var(--space-3);
}

.site-footer .site-nav a {
  color: var(--color-muted);
  font-weight: 400;
  font-size: var(--text-small);
}

.site-footer .copyright {
  margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .pricing__inner {
    grid-template-columns: 1fr;
  }
  .pricing-column {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-wrap: wrap;
  }
  .brand {
    order: 1;
  }
  .lang-toggle {
    order: 2;
  }
  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-3);
  }
  .hero h1 {
    font-size: var(--text-h1);
    max-width: none;
  }
  .pricing-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
}
