/* Andy Kairos Web Services
   Mobile-first. One stylesheet. No framework. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --paper: #f3eee6;
  --paper-2: #fffcf7;
  --sand: #e7ddcf;
  --ink: #1c1915;
  --ink-soft: #3f3832;
  --muted: #5c534a;
  --line: #ddd2c3;
  --sea: #1a463f;
  --sea-2: #245e54;
  --sea-deep: #102e2a;
  --clay: #8a3b22;
  --clay-dark: #6f2e19;
  --cream: #f7f1e6;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 18px 40px rgba(40, 28, 16, 0.08);
  --header: 4.5rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 480px at 0% -8%, rgba(138, 59, 34, 0.09), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(26, 70, 63, 0.1), transparent 50%);
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
.price-amount,
.price-index dd,
.footer-brand,
.mark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2rem, 5vw + 0.6rem, 4.15rem);
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.45rem);
  margin-bottom: 0.7rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

p,
li {
  overflow-wrap: break-word;
}

a {
  color: var(--sea-2);
}

a:hover {
  color: var(--clay-dark);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: white;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 3.25rem 0;
}

.section-head {
  margin-bottom: 1.35rem;
  max-width: 42rem;
}

.lede,
.prose {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.75rem;
  background: var(--sea);
  color: var(--cream);
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-service {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-weight: 600;
}

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

.menu[open] .when-closed,
.menu:not([open]) .when-open {
  display: none;
}

.nav-links {
  display: none;
}

.menu[open] .nav-links {
  display: grid;
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  min-width: 15rem;
  padding: 0.45rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 40;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--sand);
  color: var(--ink);
}

.nav-links .btn {
  margin-top: 0.25rem;
}

.hero {
  padding: 2.4rem 0 1rem;
}

.hero-grid {
  display: grid;
  gap: 1.4rem;
}

.own-card {
  background: var(--sea);
  color: var(--cream);
  border-radius: 20px;
  padding: 1.2rem 1.2rem 1.05rem;
  box-shadow: var(--shadow);
}

.own-card .eyebrow {
  color: #e7cbb8;
}

.own-card h2 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.own-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.own-list li {
  position: relative;
  padding-left: 1rem;
  margin: 0.75rem 0 0;
}

.own-list li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #e0b08f;
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary,
.btn-primary:visited,
.btn-primary:hover {
  background: var(--clay-dark);
  color: #fffaf6;
}

.btn-primary:hover {
  background: #582413;
}

.btn-secondary,
.btn-secondary:visited {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 25, 21, 0.28);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(255, 252, 247, 0.65);
}

.btn-light,
.btn-light:visited,
.btn-light:hover {
  background: var(--cream);
  color: var(--sea-deep);
}

.btn-ghost,
.btn-ghost:visited {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 241, 230, 0.45);
}

.btn-ghost:hover {
  background: rgba(247, 241, 230, 0.1);
  color: #fff;
}

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

.cards {
  display: grid;
  gap: 0.85rem;
}

.card,
.case-study,
.step,
.aside-card,
.form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 1.2rem;
}

.cards.three .card,
.cards.work .card {
  display: flex;
  flex-direction: column;
}

.cards.three .card .card-links,
.cards.work .card .card-links {
  margin-top: auto;
  padding-top: 0.85rem;
}

.card h3 a,
.case-study h2 a,
.case-study h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover,
.case-study h2 a:hover {
  text-decoration: underline;
}

.card p:last-child,
.step p:last-child {
  margin-bottom: 0;
}

.meta {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin: 0.2rem 0 0.35rem;
}

.price-amount {
  font-size: clamp(2.3rem, 4vw, 3rem);
  color: var(--sea-deep);
}

.price-note {
  color: var(--muted);
  font-weight: 600;
}

.nonprofit {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
}

.nonprofit strong {
  color: var(--ink);
}

.clean-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.clean-list li + li {
  margin-top: 0.35rem;
}

.card-links,
.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.process {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.step {
  margin: 0;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--clay);
}

.cta-band {
  background: var(--sea-deep);
  color: var(--cream);
  border-radius: 24px;
  padding: 1.6rem 1.2rem 1.5rem;
}

.cta-band .eyebrow {
  color: #e7cbb8;
}

.cta-band h2 {
  max-width: 18ch;
}

.cta-band p {
  max-width: 38rem;
  color: #efe6da;
}

.site-footer {
  background: var(--sea-deep);
  color: #e7e0d4;
  padding: 2.8rem 0 1.6rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 1.7rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.footer-label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e7cbb8;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.site-footer a,
.site-footer a:visited {
  color: var(--cream);
}

.site-footer a:hover {
  color: #fff;
}

.footer-base {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 241, 230, 0.16);
  color: #d9d0c3;
  font-size: 0.95rem;
}

.footer-base p {
  margin: 0;
}

.price-index {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
}

.price-index div {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem 1rem;
}

.price-index dt {
  font-weight: 700;
}

.price-index dd {
  margin: 0.3rem 0 0;
  font-size: 1.85rem;
  color: var(--sea-deep);
}

.price-index dd span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.package,
.case-study {
  scroll-margin-top: 5.5rem;
}

.package + .package {
  margin-top: 0.9rem;
}

.note {
  background: #f6e7d4;
  border: 1px solid #e4ccae;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  margin: 1rem 0 0;
}

.case-study + .case-study {
  margin-top: 0.9rem;
}

.case-study {
  border-top: 4px solid var(--sea);
}

.case-study.alt {
  border-top-color: var(--clay);
}

.domain {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.92rem;
}

.case-quote {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--clay);
  background: var(--sand);
  border-radius: 0 12px 12px 0;
}

.case-quote p {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
}

.case-quote footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.case-results {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--sand);
  border-radius: 12px;
}

.contact-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.form-card {
  padding: 1.15rem;
}

.fields {
  display: grid;
  gap: 0.95rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: white;
  border: 1px solid #cfc3b2;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  min-height: 48px;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.aside-kicker {
  margin: 1rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea-2);
}

code {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.92em;
}

.cta-follow {
  margin-top: 1.25rem;
}

.notice {
  background: #f6e7d4;
  border: 1px solid #e4ccae;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.form-status {
  margin: 0.9rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

.form-status[data-state="success"] {
  background: #e5f0ea;
  border: 1px solid #b7d4c6;
}

.form-status[data-state="error"],
.form-status[data-state="demo"] {
  background: #f8e6df;
  border: 1px solid #e4b8a8;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-card {
  position: relative;
}

.aside-card p:last-child {
  margin-bottom: 0;
}

.prose-page h2 {
  margin-top: 1.8rem;
  font-size: 1.55rem;
}

.prose-page p,
.prose-page li {
  max-width: 42rem;
}

@media (min-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 3rem));
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .cards,
  .cards.two,
  .cards.three,
  .cards.work,
  .fields.two {
    grid-template-columns: 1fr 1fr;
  }

  .cards.three .card:last-child,
  .cards.audience .card:last-child {
    grid-column: 1 / -1;
  }

  .span-2 {
    grid-column: span 2;
  }

  .process {
    grid-template-columns: 1fr 1fr;
  }

  .price-index {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 880px) {
  .menu summary {
    display: none;
  }

  .nav-links,
  .menu[open] .nav-links {
    display: flex;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    align-items: center;
    gap: 0.15rem;
  }

  .nav-links .btn {
    margin-top: 0;
    margin-left: 0.4rem;
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.8fr;
    gap: 2.5rem;
    align-items: end;
  }

  .cards.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards.three .card:last-child {
    grid-column: auto;
  }

  .cards.work {
    grid-template-columns: 1fr 1fr;
  }

  .process {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1.45fr 0.75fr;
    gap: 1.25rem;
  }

  .cards.audience {
    grid-template-columns: repeat(6, 1fr);
  }

  .cards.audience .card:last-child {
    grid-column: span 3;
  }

  .cards.audience .card:nth-child(-n+3) {
    grid-column: span 2;
  }

  .cards.audience .card:nth-child(4) {
    grid-column: span 3;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 0.8fr 0.7fr;
  }

  .cta-band {
    padding: 2.2rem 2rem;
  }
}

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

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

@media print {
  .site-header,
  .cta-row,
  .btn,
  .skip {
    display: none !important;
  }

  body {
    background: white;
  }

  .own-card,
  .cta-band,
  .site-footer {
    color: black;
    background: white;
  }

  a {
    text-decoration: underline;
  }
}
