/* Avant Concepts — Quiet Capital
   Source of truth: brands/avant-concepts/SHAPE-quiet-capital.md */

:root {
  --ink: #14140f;
  --ink-soft: #3a3a32;
  --paper: #f4f1ea;
  --paper-2: #ece7dc;
  --line: #d8d2c4;
  --accent: #6b5b3e;
  --accent-ink: #4a3f2c;
  --muted: #8a857a;

  --fs-display: clamp(2.6rem, 6vw, 5.25rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-lead: clamp(1.125rem, 1.6vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  --measure: 40rem;
  --max: 68.75rem;

  --space-section: clamp(4rem, 9vw, 8rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}

a:hover {
  color: var(--accent-ink);
  text-decoration-thickness: 2px;
}

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Layout ------------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark .mark {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}

.nav-link {
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
}

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

.hero {
  padding-block: clamp(4.5rem, 12vw, 9rem) var(--space-section);
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.hero .lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 1.75rem 0 2.5rem;
  line-height: 1.55;
}

.hero .rule {
  max-width: 8rem;
}

/* Section ----------------------------------------------------------------- */

.section {
  padding-block: var(--space-section);
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Focus columns ----------------------------------------------------------- */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.5rem;
}

.focus-item {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.focus-item .label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.focus-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.focus-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* Contact ----------------------------------------------------------------- */

.contact-line {
  font-size: var(--fs-lead);
  margin: 0;
}

.contact-meta {
  color: var(--muted);
  font-size: var(--fs-small);
  margin-top: 1.5rem;
  max-width: var(--measure);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  color: var(--muted);
  font-size: var(--fs-small);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-legal {
  color: var(--muted);
}

/* Legal pages ------------------------------------------------------------- */

.legal {
  padding-block: clamp(3.5rem, 8vw, 6rem) var(--space-section);
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--muted);
  font-size: var(--fs-small);
  margin-bottom: 3rem;
}

.legal h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.85rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  max-width: var(--measure);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-block;
  margin-top: 3.5rem;
  font-size: var(--fs-small);
}

/* Motion ------------------------------------------------------------------ */

.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.11s; }
.fade-up:nth-child(3) { animation-delay: 0.17s; }
.fade-up:nth-child(4) { animation-delay: 0.23s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 720px) {
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .site-footer .wrap {
    flex-direction: column;
  }
}
