:root {
  --ink: #14171F;
  --sand: #EDE6D6;
  --sand-deep: #E2D8C2;
  --paper: #F7F2E7;
  --emerald: #1B2C69;
  --emerald-deep: #121D4B;
  --amber: #B8892B;
  --amber-deep: #7A5A12;
  --cream-text: #F4EFE4;
  --body-text: #3C382E;
  --muted: #6A6657;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--cream-text);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

.narrow { max-width: 720px; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(237, 230, 214, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sand-deep);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 960px;
  margin: 0 auto;
}

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark span { color: var(--emerald); }

nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-left: 26px;
  padding: 10px 0;
  display: inline-block;
}
nav a:hover { color: var(--emerald); }

/* ---------- Hero ---------- */
.hero {
  padding: 44px 0 80px;
  text-align: center;
}

.kicker {
  font-size: 14px;
  color: var(--emerald-deep);
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--emerald);
  border-radius: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 52px);
  max-width: 26ch;
  margin: 0 auto;
}

.hero p.lede {
  max-width: 54ch;
  font-size: 19px;
  color: var(--body-text);
  margin: 24px auto 0;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.btn-primary { background: var(--emerald); color: var(--cream-text); }
.btn-primary:hover { background: var(--emerald-deep); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream-text); }
.btn-wa { background: var(--ink); color: var(--cream-text); }
.btn-wa:hover { background: #2a2f3b; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head .count { font-size: 15px; color: var(--muted); font-weight: 500; }

/* ---------- Product list (home) ---------- */
.project {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--sand-deep);
}
.project:last-child { border-bottom: none; }

.project-index {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
  color: var(--muted);
  padding-top: 6px;
}

.project h3 { font-size: 24px; margin-bottom: 10px; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { color: var(--emerald); }
.project p { color: var(--body-text); max-width: 54ch; margin: 0; }

.status { justify-self: end; text-align: right; white-space: nowrap; }

.status-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.status-live { background: var(--emerald); color: var(--cream-text); }
.status-soon { background: var(--amber-deep); color: var(--cream-text); }
.status-dev { background: transparent; border: 1.5px solid var(--muted); color: var(--muted); }

.project-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 8px; }

.project-link {
  display: inline-block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--emerald-deep);
  text-decoration: none;
}
.project-link:hover { text-decoration: underline; }

/* ---------- Why / features ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  border-radius: 4px;
  padding: 24px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--body-text); font-size: 16px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 22px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Product page ---------- */
.page-hero { padding: 40px 0 56px; }
.page-hero .wrap { max-width: 820px; }
.page-hero h1 { font-size: clamp(32px, 4.8vw, 46px); max-width: 22ch; }
.page-hero .lede { font-size: 19px; color: var(--body-text); margin: 22px 0 0; max-width: 58ch; }
.page-hero .hero-actions { justify-content: flex-start; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--cream-text);
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; margin-bottom: 2px; }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before {
  content: "";
  position: absolute; left: 4px; top: 0.55em;
  width: 10px; height: 6px;
  border-left: 2.5px solid var(--emerald);
  border-bottom: 2.5px solid var(--emerald);
  transform: rotate(-45deg);
}

.note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--amber);
  background: var(--paper);
  font-size: 15px;
  color: var(--body-text);
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--sand-deep);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  min-height: 44px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--emerald); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 16px; color: var(--body-text); max-width: 60ch; }

/* ---------- Dark bands ---------- */
.about, .cta-band, .contact-band {
  background: var(--ink);
  color: var(--cream-text);
}

.about .section-head { border-bottom-color: rgba(244,239,228,0.25); }
.about .section-head h2 { color: var(--cream-text); }

.about-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}
.about-body p { color: rgba(244,239,228,0.88); max-width: 54ch; margin-top: 0; }

.about-fact {
  border-left: 2px solid var(--amber);
  padding-left: 18px;
  margin-bottom: 22px;
}
.about-fact .label { font-size: 13px; color: rgba(244,239,228,0.72); text-transform: uppercase; letter-spacing: 0.04em; }
.about-fact .value { font-family: 'Fraunces', Georgia, serif; font-size: 19px; margin-top: 4px; }

.cta-band { text-align: center; padding: 60px 0; }
.cta-band h2 { font-size: clamp(26px, 4vw, 34px); color: var(--cream-text); max-width: 24ch; margin: 0 auto; }
.cta-band p { color: rgba(244,239,228,0.85); max-width: 52ch; margin: 16px auto 0; }
.cta-band .hero-actions { margin-top: 28px; }
.cta-band .btn-ghost { border-color: var(--cream-text); color: var(--cream-text); }
.cta-band .btn-ghost:hover { background: var(--cream-text); color: var(--ink); }
.cta-band .btn-primary { background: var(--amber-deep); }
.cta-band .btn-primary:hover { background: #7c440c; }
.cta-band .btn-wa { background: var(--emerald); }
.cta-band .btn-wa:hover { background: var(--emerald-deep); }

/* ---------- Contact ---------- */
.contact-band { text-align: center; padding: 70px 0; }

.contact-photo {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--amber);
  margin: 0 auto 20px;
  display: block;
}

.contact-name { font-family: 'Fraunces', Georgia, serif; font-size: 22px; margin-bottom: 4px; }
.contact-role { font-size: 14px; color: rgba(244,239,228,0.75); margin-bottom: 30px; }

.contact-links { display: flex; justify-content: center; gap: 12px 36px; flex-wrap: wrap; }
.contact-links a {
  text-decoration: none;
  color: var(--cream-text);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(244,239,228,0.45);
  padding: 8px 0 4px;
}

.contact-divider { max-width: 480px; margin: 44px auto 0; border: none; border-top: 1px solid rgba(244,239,228,0.2); }

.contact-form { max-width: 480px; margin: 0 auto; text-align: left; }
.contact-form .form-row { margin-top: 22px; }
.contact-form label {
  display: block;
  font-size: 12.5px;
  color: rgba(244,239,228,0.78);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 3px;
  border: 1.5px solid rgba(244,239,228,0.35);
  background: rgba(244,239,228,0.06);
  color: var(--cream-text);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(244,239,228,0.55); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--amber); }
.contact-form textarea { resize: vertical; }
.contact-form button { margin-top: 24px; border: none; cursor: pointer; }
.hidden-field { position: absolute; left: -9999px; top: -9999px; }
.form-status { margin-top: 16px; font-size: 14px; min-height: 20px; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 20px; }
.post-card { background: var(--paper); border: 1px solid var(--sand-deep); border-radius: 4px; padding: 26px; }
.post-card h2, .post-card h3 { font-size: 24px; margin-bottom: 10px; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--emerald); }
.post-card p { margin: 0 0 12px; color: var(--body-text); }
.post-meta { font-size: 14px; color: var(--muted); margin: 0 0 14px; }

.article { padding: 40px 0 64px; }
.article h1 { font-size: clamp(30px, 4.6vw, 42px); margin-bottom: 14px; }
.article h2 { font-size: 26px; margin: 40px 0 12px; }
.article p, .article li { color: var(--body-text); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article a { color: var(--emerald-deep); font-weight: 500; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
.article th, .article td { border-bottom: 1px solid var(--sand-deep); padding: 10px 8px; text-align: left; }
.article th { font-weight: 600; }

/* ---------- Footer ---------- */
footer { background: var(--paper); border-top: 1px solid var(--sand-deep); padding: 44px 0 24px; font-size: 15px; color: var(--body-text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h2 { font-size: 16px; margin-bottom: 10px; font-family: 'Work Sans', system-ui, sans-serif; font-weight: 600; letter-spacing: 0; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li a { display: inline-block; padding: 6px 0; text-decoration: none; }
footer li a:hover { text-decoration: underline; }
footer p { margin: 0 0 8px; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--sand-deep); text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 12px 20px; }
  .wordmark { font-size: 20px; }
  nav { white-space: nowrap; }
  nav a { margin-left: 9px; font-size: 13px; }
  .hero { padding: 40px 0 56px; }
  .wrap { padding: 0 20px; }
  .project { grid-template-columns: 1fr; gap: 10px; }
  .project-index { display: none; }
  .status { justify-self: start; text-align: left; order: -1; }
  .about-body { grid-template-columns: 1fr; gap: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark img { height: 40px; width: 40px; object-fit: contain; }
.wordmark .wm { font-weight: inherit; }
