/* Perfect Accounting & Tax Services — dark editorial theme */
:root {
  --bg: #0b0b0b;
  --bg-2: #111111;
  --bg-3: #171717;
  --line: #2a2a2a;
  --line-2: #1f1f1f;
  --fg: #e8e3d8;
  --fg-2: #b8b3a8;
  --fg-3: #78736a;
  --accent: #e8e3d8;
  --accent-ink: #0b0b0b;
  --warn: #d97757;
  --ok: #9fb98a;
  --radius: 2px;
  --pad: 96px;
  --maxw: 1360px;
  --serif: 'Fraunces', 'Tiempos Headline', 'Canela', Georgia, serif;
  --sans: 'Inter Tight', 'Söhne', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Accent variants (cycled via Tweaks) */
:root[data-accent="bone"]   { --accent: #e8e3d8; --accent-ink: #0b0b0b; }
:root[data-accent="gold"]   { --accent: #c9a449; --accent-ink: #0b0b0b; }
:root[data-accent="olive"]  { --accent: #b8c17a; --accent-ink: #0b0b0b; }
:root[data-accent="amber"]  { --accent: #d97757; --accent-ink: #0b0b0b; }
:root[data-accent="sky"]    { --accent: #9ec7d6; --accent-ink: #0b0b0b; }

:root[data-density="compact"] { --pad: 64px; }
:root[data-density="spacious"] { --pad: 128px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px; background: var(--fg-3);
}

.divider {
  height: 1px; background: var(--line); width: 100%;
}

.section {
  padding: var(--pad) 0;
  border-top: 1px solid var(--line-2);
}

.hairline { border: 1px solid var(--line); }

/* Placeholder imagery — monospace-labelled stripes */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(232,227,216,0.06) 0 1px,
      transparent 1px 12px),
    var(--bg-3);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
  color: var(--fg-2);
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 30% 20%, rgba(232,227,216,0.04), transparent 60%);
}
.ph .ph-label {
  position: relative;
  margin: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: rgba(11,11,11,0.7);
  backdrop-filter: blur(2px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: -0.005em;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--fg); }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-arrow svg { transition: transform .2s ease; }
.btn-arrow:hover svg { transform: translate(2px, -2px); }

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: rgba(232,227,216,0.02);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Display type */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-2);
}
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.2vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 640px;
  letter-spacing: -0.005em;
}
.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Grid helpers */
.row { display: grid; gap: 40px; }
.row-2 { grid-template-columns: repeat(2, 1fr); }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-4 { grid-template-columns: repeat(4, 1fr); }
.row-12 { grid-template-columns: repeat(12, 1fr); }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }

@media (max-width: 900px) {
  .row-2, .row-3, .row-4 { grid-template-columns: 1fr; }
  .row-12 { grid-template-columns: 1fr; }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 1; }
  :root { --pad: 72px; }
  .container { padding: 0 24px; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Noise texture */
.noise::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: overlay;
}
