/* GallowGlass AI — static rebuild
   Design tokens extracted from the live site's rendered HTML/CSS
   (inline --background-color / --nav-link-color / --font-primary custom
   properties captured 2026-08-13). See docs/plans/2026-08-12-migration-scope.md. */

:root {
  --ink: #0d141a;
  --ink-soft: #4a5560;
  --ink-faint: #78838c;
  --paper: #ffffff;
  --paper-alt: #f4f8f6;
  --line: #e1e6e3;
  --accent: #3e6b5e;
  --accent-dark: #2f5548;
  --accent-soft: #bed9cf;
  --accent-soft-2: #e5f0eb;
  --focus: #265ab2;

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img { height: 60px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--accent);
  color: #fff;
  padding: 76px 0 88px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
  text-wrap: balance;
}
.hero p {
  font-size: 18px;
  color: var(--accent-soft-2);
  max-width: 52ch;
  margin: 0;
}
.hero-media {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.page-hero {
  background: var(--accent);
  color: #fff;
  padding: 64px 0;
}
.page-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin: 0 0 12px;
  font-weight: 700;
}
.page-hero p {
  color: var(--accent-soft-2);
  font-size: 18px;
  max-width: 60ch;
  margin: 0;
}

/* ---------- Sections ---------- */

section.block { padding: 72px 0; }
section.block.alt { background: var(--paper-alt); }

.section-head { max-width: 68ch; margin: 0 0 40px; }
.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 0 0 12px;
  font-weight: 700;
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 17px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

/* card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-size: 19px; font-weight: 600; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card-body ul { margin: 4px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.card-body li { margin-bottom: 6px; }

/* three-step rail (Design / Develop / Deploy) */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* quote */
.quote {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 28px;
  margin: 0;
  max-width: 68ch;
}
.quote p { font-size: 20px; font-style: italic; margin: 0 0 12px; color: var(--ink); }
.quote cite { font-style: normal; color: var(--ink-soft); font-size: 15px; }

/* two-col media/text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: 12px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split.reverse .split-media { order: 2; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f0f0; }

/* contact form */
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 480px;
}
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #b8c0cc;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* data table (Boswell corpus, etc.) */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data-table th, table.data-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data-table thead th {
  background: var(--paper-alt);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
table.data-table tbody tr:last-child td { border-bottom: none; }

/* code block */
pre.code {
  background: var(--ink);
  color: #eaf3ee;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
p code, li code { background: var(--paper-alt); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }

/* blog list */
.post-list { display: grid; gap: 20px; }
.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.post-card img { border-radius: 8px; aspect-ratio: 16/10; object-fit: cover; }
.post-card .meta { color: var(--ink-faint); font-size: 13px; margin: 0 0 6px; }
.post-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.post-card .status {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  background: var(--accent-soft-2);
  padding: 3px 10px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; }
}

/* blog post body */
.post-header { max-width: 74ch; margin: 0 auto 44px; text-align: left; }
.post-header .meta { color: var(--ink-faint); font-size: 14px; margin: 0 0 14px; }
.post-header h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 0 0 8px; }
.post-body { max-width: 74ch; margin: 0 auto; }
.post-body h2 { font-size: 22px; margin: 40px 0 14px; }
.post-body p { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 18px; }
.post-body ul, .post-body ol { color: var(--ink-soft); font-size: 16.5px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--ink); }
.post-body .kicker {
  font-weight: 600;
  color: var(--ink);
}

/* footer */
.site-footer {
  background: var(--ink);
  color: #cbd3ce;
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #2a343d;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin: 0; color: #97a3ab; font-size: 14.5px; max-width: 34ch; }
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #97a3ab;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: #cbd3ce; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13.5px;
  color: #7c8790;
}
.footer-bottom .tagline { color: #97a3ab; }

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .footer-top { grid-template-columns: 1fr; }
  .post-header { text-align: left; }
}
