/* Vellumcroft Accounting — demo site by Grok Sites
   Theme colors live in :root. Swap these variables to retheme the site. */

:root {
  --paper: #F6F1EA;
  --page: #FFFBF6;
  --stone: #EBE4D8;
  --ink: #1C1917;
  --ink-soft: #3A3530;
  --muted: #6B635C;
  --line: rgba(28, 25, 23, 0.12);
  --line-strong: rgba(28, 25, 23, 0.2);
  --burgundy: #6B242C;
  --burgundy-hover: #551C23;
  --wine: #8A3942;
  --gold: #A4844C;
  --gold-soft: #D4C4A0;
  --footer: #1C1917;
  --shadow: 0 18px 44px rgba(28, 25, 23, 0.1);
  --radius: 2px;
  --wrap: 70rem;
  --header-h: 4.4rem;
  --serif: "Newsreader", "Times New Roman", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy-hover); }
:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

h1, h2, h3, h4, .wordmark {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.18;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.15rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.45rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(calc(100% - 2.5rem), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 80;
  background: var(--burgundy);
  color: var(--page);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; color: var(--page); }

/* Demo bar */
.demo-bar {
  margin: 0;
  background: var(--ink);
  color: var(--gold-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.45rem 1rem;
}
.demo-bar a { color: var(--page); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand svg { display: block; }
.wordmark {
  display: flex;
  flex-direction: column;
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.wordmark small {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.28rem;
  font-weight: 500;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  background: var(--page);
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
}
.menu-btn .bars,
.menu-btn .bars::before,
.menu-btn .bars::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn .bars::before { top: -5px; }
.menu-btn .bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

#menu { display: flex; align-items: center; gap: 0.15rem 1.35rem; }
#menu a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
#menu a:hover,
#menu a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
#menu .nav-cta {
  margin-left: 0.4rem;
  background: var(--burgundy);
  color: var(--page) !important;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-bottom: 0;
  text-decoration: none;
}
#menu .nav-cta:hover { background: var(--burgundy-hover); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.2;
}
.btn.primary {
  background: var(--burgundy);
  color: var(--page);
}
.btn.primary:hover { background: var(--burgundy-hover); color: var(--page); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--page); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.eyebrow, .kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 0.7rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40rem;
}

.fine, .sample-note {
  font-size: 0.875rem;
  color: var(--muted);
}

.chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 0.18rem 0.45rem;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 0.35rem;
}
.chip-accent {
  border-color: color-mix(in srgb, var(--burgundy) 35%, var(--line));
  color: var(--burgundy);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--page); }
.section.ink {
  background: var(--ink);
  color: var(--gold-soft);
}
.section.ink h2, .section.ink h3 { color: var(--page); }
.section.ink .lead { color: var(--gold-soft); }
.section-head { max-width: 40rem; margin-bottom: 2.4rem; }
.section-head.wide { max-width: none; display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .section-head.wide {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    max-width: none;
  }
  .section-head.wide .lead { margin: 0; }
}

/* Hero */
.hero {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: min(78vh, 42rem);
  }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.2rem 0;
}
.hero-copy .wrap { width: min(calc(100% - 2.5rem), 38rem); margin-left: auto; margin-right: 0; padding-right: 2.5rem; }
@media (max-width: 899px) {
  .hero-copy .wrap { width: min(calc(100% - 2.5rem), var(--wrap)); margin-inline: auto; padding-right: 0; }
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--burgundy);
}
.hero-photo {
  min-height: 18rem;
  background: var(--stone);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 18rem;
}
@media (min-width: 900px) {
  .hero-photo img { min-height: 100%; position: absolute; inset: 0; }
  .hero-photo { position: relative; }
}

.rule {
  width: 3.2rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.4rem;
}

/* Pillars / service cards */
.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 700px) and (max-width: 899px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

.card, .pillar, .tier, .article, .person {
  background: var(--page);
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem 1.5rem;
}
.section.alt .card,
.section.alt .pillar,
.section.alt .tier,
.section.alt .article,
.section.alt .person { background: var(--paper); }

.pillar h3, .card h3 { font-size: 1.45rem; }
.pillar p, .card p { color: var(--ink-soft); }
.icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--burgundy);
  margin-bottom: 0.9rem;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
  .split.flip { grid-template-columns: 0.95fr 1.05fr; }
  .split.flip .split-copy { order: 2; }
}
.split-copy ul {
  margin: 1rem 0 1.1rem;
  padding: 0;
  list-style: none;
}
.split-copy li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.15rem;
  color: var(--ink-soft);
}
.split-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.5rem;
  height: 1px;
  background: var(--gold);
}
.split-photo img { width: 100%; height: auto; }
.frame {
  background: var(--stone);
  padding: 0;
  overflow: hidden;
}

/* Packages */
.tiers { align-items: stretch; }
.tier {
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.5rem 1.6rem;
  position: relative;
}
.tier.featured {
  border-color: var(--burgundy);
  box-shadow: var(--shadow);
}
.tier .price {
  font-family: var(--serif);
  font-size: 2.15rem;
  letter-spacing: -0.03em;
  margin: 0.3rem 0 0.15rem;
}
.tier .price span {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0;
}
.tier ul {
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}
.tier li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.15rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.tier li:last-child { border-bottom: 0; }
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.5rem;
  height: 1px;
  background: var(--gold);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare th {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare td:not(:first-child),
.compare th:not(:first-child) { text-align: center; }
.compare tbody th { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--page); }

/* Testimonials */
.quote {
  border-left: 2px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.4rem;
  max-width: 40rem;
}
.quote p {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}
.quote footer { color: var(--muted); font-size: 0.92rem; margin-top: 0.8rem; }

/* Resources */
.article { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.article img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article .pad { padding: 1.2rem 1.2rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.article .meta { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }

.deadlines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.deadlines li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.deadlines time {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--burgundy);
}
@media (max-width: 600px) {
  .deadlines li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Team */
.person { padding: 0; overflow: hidden; }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.person .pad { padding: 1.15rem 1.2rem 1.35rem; }
.person .role { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.55rem; }

/* Forms */
form { display: grid; gap: 0.95rem; }
.field-row { display: grid; gap: 0.95rem; }
@media (min-width: 700px) {
  .field-row.two { grid-template-columns: 1fr 1fr; }
}
label { display: grid; gap: 0.35rem; font-size: 0.92rem; font-weight: 500; }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--burgundy);
  outline-offset: 1px;
  border-color: var(--burgundy);
}
.form-msg {
  display: none;
  background: var(--stone);
  border-left: 2px solid var(--gold);
  padding: 0.9rem 1rem;
}
.form-msg.show { display: block; }
.form-card {
  background: var(--page);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

/* Calendar placeholder */
.calendar {
  background: var(--page);
  border: 1px solid var(--line);
  padding: 1.25rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
}
@media (max-width: 700px) {
  .cal-grid { grid-template-columns: 1fr 1fr; }
}
.cal-day {
  border: 1px solid var(--line);
  padding: 0.7rem 0.55rem 0.75rem;
  background: var(--paper);
}
.cal-day h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 0.55rem;
  color: var(--muted);
}
.slot {
  display: block;
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0.4rem 0.3rem;
  font: inherit;
  font-size: 0.85rem;
  background: var(--page);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
}
.slot:hover { border-color: var(--burgundy); color: var(--burgundy); }
.slot.is-selected {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--page);
}
.slot:disabled,
.slot[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  color: var(--muted);
}
#slot-chosen { margin-top: 0.9rem; font-size: 0.92rem; color: var(--ink-soft); }

/* Map placeholder */
.map {
  background: var(--stone);
  border: 1px solid var(--line);
  min-height: 16rem;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
}
.map svg { width: 100%; height: 16rem; display: block; }
.map-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  text-align: left;
}

/* Page intro */
.page-hero {
  padding: 3.4rem 0 2.6rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 18ch; }

/* Footer */
.site-footer {
  background: var(--footer);
  color: var(--gold-soft);
  padding: 3.2rem 0 1.6rem;
  margin-top: 0;
}
.site-footer a { color: var(--page); }
.site-footer h3 {
  color: var(--page);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 0.8rem;
}
.site-footer .wordmark, .site-footer .wordmark small { color: var(--page); }
.site-footer .wordmark small { color: var(--gold-soft); }
.foot-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(246, 241, 234, 0.12);
}
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: 1.4fr 0.8fr 1fr; }
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.35rem; }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
}

/* 404 */
.not-found { padding: 5rem 0 6rem; text-align: center; }
.not-found h1 { margin-inline: auto; }
.not-found .lead { margin-inline: auto; }
.not-found .btn-row { justify-content: center; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(0.7rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Mobile nav */
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  #menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1.1rem;
    gap: 0;
  }
  body.nav-open #menu { display: flex; }
  #menu a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  #menu .nav-cta {
    margin: 0.7rem 0 0;
    text-align: center;
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .section { padding: 3.2rem 0; }
  .hero-copy { padding: 2.4rem 0 2rem; }
}
