/* Design seed: Editorial-Atlas-7F3Q — rail + drawer, paper/ink, wide rhythm, sharp geometry */

:root {
  --paper: #f7f4ee;
  --paper-2: #fffefb;
  --wash: #ebe6dc;
  --ink: #1f1d1b;
  --muted: #5c5850;
  --rule: #d4cec3;
  --accent: #b84a32;
  --accent-soft: #c65d47;
  --cool: #2f4a62;
  --radius: 2px;
  --radius-sm: 2px;
  --max: 68rem;
  --rail-w: 11.25rem;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --shadow-sm: 0 1px 0 rgba(31, 29, 27, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

body.nav-draw-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cool);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100000;
}

.skip-link:focus {
  left: 8px;
}

/* ——— Rail (home desktop) ——— */
.site-rail {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  background: var(--paper-2);
  border-right: 1px solid var(--rule);
  z-index: 800;
}

.site-rail .rail-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.site-rail .rail-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-rail nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-rail nav a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-rail nav a:hover {
  color: var(--ink);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.rail-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rail-foot a {
  color: var(--cool);
}

@media (min-width: 960px) {
  .page-home .site-rail {
    display: flex;
  }

  .page-home .main-with-rail {
    margin-left: var(--rail-w);
  }
}

/* ——— Masthead (mobile home + all inner pages) ——— */
.site-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 900;
}

.page-home .site-masthead {
  display: flex;
}

@media (min-width: 960px) {
  .page-home .site-masthead {
    display: none;
  }
}

.masthead-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.masthead-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.masthead-cta {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
}

.masthead-cta:hover {
  text-decoration: none;
  color: var(--ink);
}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  height: 2px;
  background: var(--ink);
}

.nav-toggle::before {
  top: 0.95rem;
}

.nav-toggle::after {
  top: 1.35rem;
}

.nav-toggle span {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  top: 1.15rem;
  height: 2px;
  background: var(--ink);
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--paper);
  padding: 4.5rem 1.5rem 2rem;
  overflow: auto;
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer-inner {
  max-width: 22rem;
}

.nav-drawer-inner a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--ink);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
}

.nav-drawer-inner a:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-drawer-meta {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  border-radius: var(--radius);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* ——— Home: ledger ——— */
.ledger {
  padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.ledger-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 860px) {
  .ledger-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr);
    gap: 3rem;
  }
}

.ledger-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.ledger h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}

.ledger-lede {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.ledger-aside {
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 36ch;
}

.ledger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.ledger-figure {
  margin: 0;
}

.ledger-figure img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}

.ledger-caption {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 32ch;
}

/* ——— Field notes (local first) ——— */
.field-notes {
  padding: clamp(3rem, 7vw, 5.75rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--wash);
}

.field-notes h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin: 0 0 0.35rem;
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.field-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .field-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}

.field-prose {
  max-width: 40ch;
}

.field-prose p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.map-embed {
  border: 1px solid var(--rule);
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius);
  filter: grayscale(0.2) contrast(0.98);
}

.address-block {
  font-style: normal;
  margin: 1.25rem 0 0;
  line-height: 1.5;
}

.address-block a {
  font-weight: 500;
}

/* ——— Insertion points ——— */
.insertion {
  padding: clamp(3rem, 7vw, 5.75rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.insertion-head {
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

.insertion-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.8vw, 2.05rem);
}

.insertion-head p {
  margin: 0;
  color: var(--muted);
}

.insertion-columns {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 720px) {
  .insertion-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.insertion-columns article h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.insertion-columns article p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.price-note {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  margin: 0;
}

/* ——— Week to week (narrative + bg) ——— */
.week-band {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1rem, 4vw, 2.5rem);
  background-color: #2a2826;
  background-image: linear-gradient(105deg, rgba(31, 29, 27, 0.92) 0%, rgba(31, 29, 27, 0.75) 45%, rgba(47, 74, 98, 0.55) 100%),
    url("../images/austin-skyline-team.jpg");
  background-size: cover;
  background-position: center;
  color: #ece8e1;
}

.week-band h2 {
  color: #fff;
  position: relative;
  z-index: 1;
  max-width: 14ch;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 1.5rem;
}

.week-columns {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .week-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.week-columns div p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.week-columns div p:last-of-type {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(236, 232, 225, 0.82);
}

.week-foot {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(236, 232, 225, 0.75);
  max-width: 48ch;
}

.week-foot a {
  color: #c9d4e0;
}

/* ——— Plain English (FAQ restyle) ——— */
.plain-english {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.plain-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .plain-grid {
    grid-template-columns: 0.38fr 0.62fr;
    gap: 3rem;
  }
}

.plain-intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
}

.plain-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 28ch;
}

.qa-row {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}

.qa-row:first-of-type {
  border-top: 1px solid var(--rule);
}

.qa-row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.qa-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 52ch;
}

/* ——— Line open ——— */
.line-open {
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--cool);
  color: #e8eef3;
  text-align: center;
}

.line-open h2 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}

.line-open p {
  margin: 0 auto 1.25rem;
  max-width: 44ch;
  opacity: 0.9;
  font-size: 1rem;
}

.line-open-chan {
  font-size: 0.95rem;
  margin: 0;
}

.line-open-chan a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.line-open-chan a:hover {
  text-decoration: none;
  border-bottom-color: #fff;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-soft);
}

.btn-primary:hover {
  background: var(--accent-soft);
  text-decoration: none;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover {
  border-color: var(--ink);
  text-decoration: none;
  color: var(--ink);
}

/* ——— Legacy section utilities (inner pages) ——— */
.section {
  padding: clamp(2.75rem, 5vw, 4.5rem) 1.25rem;
}

.section-dark {
  background: var(--ink);
  color: #e5e2dc;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark .muted {
  color: #a8a49c;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

.section-head {
  max-width: 44ch;
  margin-bottom: 1.75rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid-cards.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  height: 100%;
  box-shadow: none;
}

.card h3 {
  margin-top: 0;
}

.price-tag {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--rule);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--rule);
}

.faq-item h3 {
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
}

.local-strip {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .local-strip {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

ul.check {
  padding-left: 1.15rem;
}

/* Footer */
.footer {
  background: var(--ink);
  color: #b8b3ab;
  padding: 2.75rem 1.25rem;
  font-size: 0.92rem;
  border-top: 4px solid var(--accent);
}

.footer a {
  color: #e3ddd4;
}

.footer a:hover {
  color: #fff;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.legal-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

/* Cookie */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11000;
  background: var(--paper-2);
  color: var(--ink);
  padding: 1rem 1.25rem;
  border-top: 2px solid var(--rule);
  box-shadow: 0 -4px 24px rgba(31, 29, 27, 0.08);
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text {
  margin: 0;
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-actions .btn-ghost {
  border-color: var(--rule);
}

/* Inner page shells */
.page-hero {
  padding: 2.5rem 1.25rem 1.35rem;
  background: var(--wash);
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
}

.layout-legal-prose .prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.layout-legal-prose .prose h2 {
  margin-top: 2rem;
}

.layout-terms {
  display: grid;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

@media (min-width: 900px) {
  .layout-terms {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.toc {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  padding: 1rem;
  background: var(--paper-2);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  font-size: 0.88rem;
}

.toc a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink);
}

.layout-cookie-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.cookie-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cookie-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.layout-about {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.about-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 860px) {
  .about-split {
    grid-template-columns: 1fr 1fr;
  }
}

.timeline {
  border-left: 2px solid var(--accent);
  padding-left: 1.15rem;
  margin: 0;
}

.timeline-item {
  margin-bottom: 1.35rem;
}

.timeline-item h3 {
  margin: 0 0 0.25rem;
}

.layout-contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .layout-contact {
    grid-template-columns: 1fr 1fr;
  }
}

form .field {
  margin-bottom: 1rem;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper-2);
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

.layout-disclaimer {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.5rem;
  text-align: center;
}

.layout-dl {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.dl-grid dt {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 1.15rem;
}

.dl-grid dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.layout-pricing {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.pricing-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .pricing-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: none;
  background: var(--paper-2);
}

.layout-integrations .feature-row {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
  align-items: center;
}

@media (min-width: 800px) {
  .layout-integrations .feature-row {
    grid-template-columns: 1fr 1fr;
  }
}

.layout-integrations .feature-row.reverse {
  direction: rtl;
}

.layout-integrations .feature-row.reverse > * {
  direction: ltr;
}

.logo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.4rem 0.7rem;
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
}

.layout-industries .zigzag {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 800px) {
  .layout-industries .zigzag-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
  }

  .layout-industries .zigzag-item:nth-child(even) .zigzag-media {
    order: 2;
  }
}

.layout-security .sec-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .layout-security .sec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .layout-security .sec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sec-tile {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.breadcrumbs a {
  color: var(--muted);
}
