/* Gordon AI Services — site styles v1.0
 * Local-only static preview for gordonaiservices.com
 * Built 2026-07-15. No analytics, no external CSS, no CDN.
 * Design tokens borrowed from gais-website-preview-v0.1.html (approved).
 */

:root {
  --ink: #1b2230;
  --ink-soft: #3a4456;
  --ink-mute: #5a6678;
  --paper: #fbfaf7;
  --paper-2: #f3efe7;
  --line: #e3ddd0;
  --line-soft: #ece6da;
  --accent: #7a4a2b;
  --accent-soft: #f0e4d4;
  --accent-deep: #5e3721;
  --good: #2f5d4a;
  --warn: #8a5a1a;
  --warn-soft: #fbf1dd;
  --danger: #8a2b1a;
  --card: #ffffff;
  --shadow: 0 1px 0 rgba(27, 34, 48, 0.04), 0 8px 24px -16px rgba(27, 34, 48, 0.18);
  --radius: 10px;
  --radius-lg: 14px;
  --maxw: 1080px;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 1.4em; }
h3 { font-size: 1.15rem; margin-top: 1em; }
p  { margin: 0 0 1em; color: var(--ink-soft); max-width: 64ch; }
ul, ol { margin: 0 0 1em; padding-left: 20px; color: var(--ink-soft); }
li { margin: 4px 0; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2rem 0; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
pre {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
}

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  position: static; width: auto; height: auto;
  display: inline-block; margin: 8px 24px;
  background: var(--ink); color: #f6efe1;
  padding: 6px 10px; border-radius: 6px;
}

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Top notice (only shown on local preview files; hidden on production via build step) */
.preview-banner {
  background: var(--ink);
  color: #f6efe1;
  border-bottom: 1px solid #000;
  font-size: 13px;
}
.preview-banner .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  padding: 10px 24px;
}
.preview-banner .pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}
.preview-banner .meta { color: #cdc4b0; }
.preview-banner .meta b { color: #f6efe1; font-weight: 600; }

/* Header / nav */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .mark {
  width: 144px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.brand .mark img,
.brand .mark svg {
  width: 100%;
  height: auto;
  display: block;
}
.brand .name { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.brand .tag  { font-size: 12px; color: var(--ink-mute); letter-spacing: .02em; }

nav.primary ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 2px 4px;
}
nav.primary a {
  display: inline-block;
  padding: 7px 11px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-2);
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 30px;
  box-shadow: var(--shadow);
  margin: 28px 0 16px;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.hero .lede { font-size: 1.05rem; color: var(--ink); max-width: 62ch; }
.hero .strap {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent-deep);
  margin: 8px 0 0;
}
.chips {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin: 14px 0 4px;
}
.chip {
  display: inline-block;
  font-size: 12px; font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: .01em;
}

/* Sections */
section { padding: 28px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 80px; }
section:first-of-type { border-top: 0; }
section .kicker {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}

/* Cards / grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 18px 0 8px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.card .num {
  display: inline-block;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  font-weight: 600; font-size: 13px;
  line-height: 26px; text-align: center;
  margin-bottom: 10px;
}
.card .role {
  font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; margin-bottom: 10px;
}
.card h3 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 4px; }
.card p  { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.card .row { margin-top: 10px; font-size: 13.5px; }
.card .row b { color: var(--ink); font-weight: 600; display: block;
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.card .does    { color: var(--good); }
.card .doesnot { color: var(--warn); }

.workflow {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}
.workflow h2 { margin-top: 0; }
.pillrow {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 6px 0 14px;
}
.pillrow span {
  font-size: 12px; background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px;
  color: var(--ink-soft);
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin: 6px 0 10px;
}
.columns .col {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px 14px 10px;
}
.columns .col h4 {
  margin: 0 0 6px;
  font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink);
}
.columns .col p { margin: 0 0 8px; font-size: 14px; }
.columns .col.approve { border-left: 3px solid var(--good); }
.columns .col.refuses { border-left: 3px solid var(--warn); }

/* Buttons / CTAs */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.cta {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink); color: #f6efe1;
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--ink);
}
.cta:hover { background: #2a3447; color: #fff; }
.cta.secondary {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.cta.secondary:hover { background: var(--paper-2); }

/* FAQ */
details.faq {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  margin: 8px 0;
  box-shadow: var(--shadow);
}
details.faq[open] { background: #fffdf7; }
details.faq summary {
  cursor: pointer; list-style: none;
  padding: 14px 16px;
  font-weight: 600; color: var(--ink);
  position: relative; padding-right: 42px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 20px; line-height: 1;
}
details.faq[open] summary::after { content: "−"; }
details.faq .answer { padding: 0 16px 14px; color: var(--ink-soft); }

/* Tables */
table.lang {
  width: 100%; border-collapse: collapse;
  margin: 8px 0 4px; font-size: 14px;
}
table.lang th, table.lang td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.lang th {
  background: var(--paper-2); color: var(--ink);
  font-weight: 600; font-size: 13px; letter-spacing: .02em;
}
table.lang td.avoid { color: var(--warn); }
table.lang td.safer { color: var(--good); }

/* Footer */
footer.site {
  margin-top: 48px;
  background: var(--ink); color: #e9e1cd;
  border-top: 1px solid #000;
}
footer.site .wrap { padding: 28px 24px; }
footer.site h4 {
  font-family: var(--serif); color: #f6efe1;
  font-size: 14px; margin: 0 0 8px;
}
footer.site p { font-size: 13px; color: #bdb6a4; margin: 0 0 10px; max-width: 70ch; }
footer.site a { color: #f0e4d4; }
footer.site a:hover { color: #fff; }
footer.site ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 13px; color: #cdc4b0;
}
footer.site li { margin: 3px 0; }
footer.site .grid-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 6px;
}
footer.site .rule {
  border-top: 1px solid #3a4253;
  margin-top: 18px; padding-top: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 12px; color: #8f8a7a;
}

/* Breadcrumb */
.crumbs {
  font-size: 13px; color: var(--ink-mute);
  margin: 18px 0 6px;
}
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { padding: 0 6px; color: var(--line); }

/* Local area pill */
.area-pills {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin: 16px 0 4px;
}
.area-pills a {
  font-size: 12px; padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper-2);
  text-decoration: none;
}
.area-pills a:hover { color: var(--ink); border-color: var(--accent); }

/* Forms (only for site:search/email, kept simple and accessible) */
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}
.contact-card label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact-card .row { margin: 10px 0; }
.contact-card .hint { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }
.contact-card .row input,
.contact-card .row textarea {
  width: 100%; max-width: 540px;
  font: inherit; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}
.contact-card .row textarea { min-height: 110px; resize: vertical; }

/* Article layout */
article.prose { max-width: 70ch; }
article.prose p { font-size: 1.02rem; }
article.prose h2 { font-size: 1.5rem; }

/* Two-column responsive */
@media (max-width: 760px) {
  nav.primary { width: 100%; display: none; }
  nav.primary.open { display: block; }
  nav.primary ul { flex-direction: column; gap: 2px; }
  .brand .mark { width: 110px; }
  nav.primary a { display: block; padding: 10px 12px; border-radius: 8px; }
  .menu-toggle { display: inline-block; }
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 1.65rem; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; }
  .grid, .grid-foot { grid-template-columns: 1fr; }
  section { padding: 20px 0; }
}

@media (max-width: 480px) {
  .preview-banner .wrap { padding: 8px 16px; }
  header.site .wrap { padding: 12px 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  nav.primary, .cta-row, .preview-banner { break-inside: avoid; }
  .card, .workflow, details.faq { break-inside: avoid; }
  body { background: #fff; color: #000; }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
