/* =========================================================================
   Cardwright — eye-friendly dark theme, warm parchment-on-ink
   ========================================================================= */

:root {
  --ink:        #0F0D0B;   /* page background — warm near-black */
  --ink-2:      #16130F;   /* alt section background */
  --ink-3:      #1E1A14;   /* cards, inputs */
  --rule:       #2A241B;   /* dividers, borders */
  --parchment:  #D9CFB8;   /* body text */
  --parchment-2:#B7AC93;   /* muted body text */
  --parchment-3:#897F69;   /* secondary muted */
  --amber:      #E8A33D;   /* accent */
  --amber-soft: #C98920;   /* darker amber for hovers */
  --teal:       #4F8C82;   /* secondary accent for placeholders */
  --rose:       #C77C5A;   /* tertiary placeholder accent */

  --maxw: 720px;
  --radius: 10px;
  --radius-lg: 14px;

  --font-serif: "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-soft); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

p { margin: 0 0 1em; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 56px 0; border-top: 1px solid var(--rule); }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--ink-2); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 13, 11, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--parchment);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: var(--amber); }
.brand-mark { color: var(--amber); font-size: 18px; transform: translateY(-1px); }
.site-nav { display: none; }
.site-nav a {
  margin-left: 22px;
  color: var(--parchment-2);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--amber); text-decoration: none; }

@media (min-width: 640px) {
  .site-nav { display: flex; }
}

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--parchment);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.18;
  margin: 0 0 0.5em;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}

.section-title {
  font-size: 30px;
  margin-bottom: 18px;
}
@media (min-width: 640px) {
  .section-title { font-size: 34px; }
}

.lede {
  color: var(--parchment-2);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 64px;
}
@media (min-width: 640px) {
  .hero { padding: 110px 0 90px; }
}

.hero-title {
  font-size: 38px;
  line-height: 1.12;
  margin: 0 0 18px;
}
@media (min-width: 640px) {
  .hero-title { font-size: 52px; }
}

.hero-sub {
  font-size: 18px;
  color: var(--parchment-2);
  margin: 0 0 32px;
  max-width: 600px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-foot {
  font-size: 13px;
  color: var(--parchment-3);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-soft);
  border-color: var(--amber-soft);
  color: var(--ink);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--parchment);
  border-color: var(--rule);
}
.btn-secondary:hover {
  background: var(--ink-3);
  color: var(--amber);
  border-color: var(--amber);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--rule);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  text-decoration: none;
}
.btn-block {
  display: block;
  width: 100%;
}

/* ---------- problem ---------- */
.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.problem-list li {
  padding: 18px 20px;
  background: var(--ink-3);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.problem-list strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--parchment);
  display: block;
  margin-bottom: 4px;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 22px 22px 22px 78px;
  background: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.steps h3 {
  font-size: 19px;
  margin: 0 0 6px;
}
.steps p { margin: 0; color: var(--parchment-2); font-size: 15.5px; }
.step-num {
  position: absolute;
  left: 20px;
  top: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  background: rgba(232, 163, 61, 0.06);
}

/* ---------- pricing ---------- */
.tiers {
  display: grid;
  gap: 18px;
  margin: 8px 0 24px;
}
@media (min-width: 860px) {
  .tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.tier {
  position: relative;
  background: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.tier h3 {
  font-size: 22px;
  margin: 0 0 8px;
}
.tier .price { margin: 0 0 14px; }
.price-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--parchment);
}
.price-unit {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--parchment-3);
  margin-left: 4px;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 22px;
  display: grid;
  gap: 8px;
  flex-grow: 1;
}
.tier ul li {
  font-size: 15px;
  color: var(--parchment-2);
  padding-left: 22px;
  position: relative;
}
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.tier-featured {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(232,163,61,0.06), rgba(232,163,61,0.0));
}
.tier-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
}
.tier-foot {
  font-size: 14px;
  color: var(--parchment-3);
  margin: 0;
  text-align: left;
}

/* ---------- portfolio gallery ---------- */
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.card-art {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  cursor: default;
  transition: transform 200ms ease, border-color 200ms ease;
}
.card-art:hover,
.card-art:focus { transform: translateY(-2px); border-color: var(--amber); outline: none; }

/* Real portfolio images cover the figure */
.card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Warm gradient placeholders — fallback if image fails to load */
.card-art-1 { background: linear-gradient(155deg, #3a261a 0%, #7b4a22 45%, #e8a33d 100%); }
.card-art-2 { background: linear-gradient(155deg, #14282a 0%, #2c5b58 50%, #6fb0a4 100%); }
.card-art-3 { background: linear-gradient(155deg, #2a1a18 0%, #6b332a 50%, #c77c5a 100%); }
.card-art-4 { background: linear-gradient(155deg, #1c2418 0%, #3e5a35 50%, #b3c47a 100%); }
.card-art-5 { background: linear-gradient(155deg, #1a1a26 0%, #383962 50%, #8d8fc2 100%); }
.card-art-6 { background: linear-gradient(155deg, #2b1a0e 0%, #6b431d 45%, #d9cfb8 100%); }

.art-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 13, 11, 0.78);
  color: var(--parchment);
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.art-tip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(15,13,11,0.92));
  color: var(--parchment-2);
  font-size: 12.5px;
  padding: 28px 12px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.card-art:hover .art-tip,
.card-art:focus .art-tip,
.card-art:focus-within .art-tip { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .art-tip { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 4px 18px;
}
.faq-list details[open] { border-color: var(--amber); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--parchment);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--amber);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p {
  margin: 0 0 14px;
  color: var(--parchment-2);
  font-size: 15.5px;
}

/* ---------- about ---------- */
.about-copy {
  font-size: 17.5px;
  color: var(--parchment-2);
  margin: 0;
  max-width: 620px;
}

/* ---------- form ---------- */
.pilot-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 14px;
  color: var(--parchment-2);
  font-weight: 500;
}
.field .hint {
  color: var(--parchment-3);
  font-weight: 400;
  font-size: 13px;
}
.field input,
.field textarea {
  background: var(--ink-3);
  color: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  width: 100%;
  transition: border-color 160ms ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--parchment-3); }
.field input:focus,
.field textarea:focus { border-color: var(--amber); outline: none; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

.form-foot {
  font-size: 13px;
  color: var(--parchment-3);
  margin: 6px 0 0;
  text-align: center;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  background: var(--ink);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--parchment-3);
}
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner a { color: var(--parchment-2); }
.footer-inner a:hover { color: var(--amber); }

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- provenance page ---------- */
.prose {
  padding: 56px 0 64px;
}
.prose h1 {
  font-size: 34px;
  margin-bottom: 6px;
}
.prose .eyebrow { margin-bottom: 18px; }
.prose p { color: var(--parchment-2); font-size: 17px; margin-bottom: 1em; }
.prose .back {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
}
