/* ===================================================================
   INK & HUE — Design tokens
   Palette: ink navy / aged parchment / sealing-wax red / ochre / sage
   Type: Fraunces (display) + Caveat (handwritten accent) + Inter (body)
=================================================================== */

:root {
  --ink:        #1c2541;   /* deep indigo navy — headings, primary text */
  --ink-soft:   #3a4568;   /* softened ink for secondary headings */
  --paper:      #efe7d4;   /* aged parchment — page background */
  --paper-light:#faf6ec;   /* card background */
  --paper-deep: #e3d8bd;   /* borders, dividers on paper */
  --vermillion: #a13d2c;   /* sealing-wax red — primary accent / CTA */
  --vermillion-dark:#822f21;
  --ochre:      #c08a28;   /* gold ochre — secondary accent */
  --sage:       #5f7355;   /* sage green — tertiary accent, calm/growth */
  --muted:      #6b6353;   /* warm gray-brown for body copy */
  --line:       #c9bc9c;   /* margin rule lines */

  --font-display: 'Fraunces', Georgia, serif;
  --font-hand:    'Caveat', cursive;
  --font-body:    'Inter', -apple-system, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.4em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--vermillion); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--vermillion); outline-offset: 3px; }

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

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--vermillion);
  display: inline-block;
  margin-bottom: 0.3em;
  transform: rotate(-1deg);
}

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

/* ---------------- Header / Nav ---------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 231, 212, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--paper-deep);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo span.hue { font-family: var(--font-hand); color: var(--vermillion); font-size: 1.7rem; }
nav.links {
  display: flex;
  gap: 30px;
  align-items: center;
}
nav.links a {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}
nav.links a:hover { text-decoration: none; color: var(--vermillion); }
nav.links a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--vermillion);
}
.nav-cta {
  background: var(--vermillion);
  color: var(--paper-light) !important;
  padding: 9px 18px;
  border-radius: 3px;
  text-transform: none !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--vermillion-dark); text-decoration: none !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 820px) {
  nav.links { position: fixed; top: 66px; left: 0; right: 0; background: var(--paper-light);
    flex-direction: column; align-items: flex-start; padding: 20px 28px; gap: 18px;
    border-bottom: 1px solid var(--paper-deep); transform: translateY(-130%); transition: transform 0.25s ease; }
  nav.links.open { transform: translateY(0); }
  .menu-toggle { display: block; }
}

/* ---------------- Marginalia layout (signature device) ----------------
   Mirrors how a graphologist annotates a handwriting sample: a thin
   rule down the page with small coloured marks + notes in the margin. */
.annotated {
  display: grid;
  grid-template-columns: 90px 1px 1fr;
  gap: 0 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.annotated .margin-rule { background: var(--line); width: 1px; }
.margin-note {
  padding-top: 6px;
  text-align: right;
}
.margin-note .dot {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block; margin-bottom: 6px;
}
.margin-note .dot.red { background: var(--vermillion); }
.margin-note .dot.gold { background: var(--ochre); }
.margin-note .dot.sage { background: var(--sage); }
.margin-note small {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.2;
}
@media (max-width: 780px) {
  .annotated { grid-template-columns: 1fr; }
  .annotated .margin-rule { display: none; }
  .margin-note { text-align: left; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 em { font-style: italic; color: var(--vermillion); font-family: var(--font-display); }

.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
  transition: all 0.15s ease;
}
.btn-primary { background: var(--vermillion); border-color: var(--vermillion); color: var(--paper-light); }
.btn-primary:hover { background: var(--vermillion-dark); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper-light); text-decoration: none; }

/* signature ink-stroke SVG */
.stroke-wrap { display: flex; justify-content: center; align-items: center; }
.ink-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.6s ease forwards 0.3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------- Sections ---------------- */
section { padding: 64px 0; }
section.tinted { background: var(--paper-light); border-top: 1px solid var(--paper-deep); border-bottom: 1px solid var(--paper-deep); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-light);
  border: 1px solid var(--paper-deep);
  border-radius: 4px;
  padding: 30px;
}
.card .tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

/* ---------------- Pricing / service cards ---------------- */
.svc {
  background: var(--paper-light);
  border: 1px solid var(--paper-deep);
  border-radius: 4px;
  padding: 32px;
  position: relative;
}
.svc h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.svc .price { font-family: var(--font-hand); font-size: 1.5rem; color: var(--vermillion); white-space: nowrap; }
.svc ul { padding-left: 20px; margin: 14px 0; color: var(--muted); }
.svc ul li { margin-bottom: 6px; }
.svc .mode { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--paper); border: 1px solid var(--paper-deep); padding: 3px 9px; border-radius: 20px; color: var(--ink-soft); margin-right: 8px; }

.divider-label {
  display: flex; align-items: center; gap: 16px;
  margin: 56px 0 28px;
  color: var(--ink-soft);
  font-family: var(--font-hand);
  font-size: 1.6rem;
}
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------- Timeline (history page) ---------------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--paper-deep); }
.tl-item { margin-bottom: 42px; position: relative; }
.tl-item::before {
  content: "";
  position: absolute; left: -35px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--vermillion); border: 3px solid var(--paper);
}
.tl-year { font-family: var(--font-hand); font-size: 1.4rem; color: var(--vermillion); }

/* ---------------- Colour psychology swatches ---------------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; }
.swatch { border-radius: 4px; overflow: hidden; border: 1px solid var(--paper-deep); }
.swatch .fill { height: 90px; }
.swatch .label { background: var(--paper-light); padding: 12px 14px; }
.swatch .label strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.swatch .label span { font-size: 0.85rem; color: var(--muted); }

/* ---------------- Testimonial / fanpage ---------------- */
.quote-card {
  background: var(--paper-light);
  border-left: 3px solid var(--vermillion);
  padding: 24px 26px;
  border-radius: 0 4px 4px 0;
}
.quote-card p.msg { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }
.quote-card .who { font-size: 0.88rem; color: var(--muted); font-weight: 600; }

.social-strip { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--paper-deep); background: var(--paper-light);
  padding: 10px 18px; border-radius: 30px; color: var(--ink); font-weight: 600; font-size: 0.92rem;
}
.social-pill:hover { border-color: var(--vermillion); color: var(--vermillion); text-decoration: none; }

/* ---------------- Forms ---------------- */
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 0.98rem;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-light); color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* ---------------- Footer ---------------- */
footer.site {
  background: var(--ink);
  color: var(--paper);
  padding: 54px 0 28px;
  margin-top: 40px;
}
footer.site a { color: var(--paper); opacity: 0.85; }
footer.site a:hover { opacity: 1; }
footer.site .social-pill {
  color: var(--vermillion);
  opacity: 1;
  font-weight: 700;
  border-color: var(--vermillion);
  background: var(--paper-light);
  transition: all 0.15s ease;
}
footer.site .social-pill:hover {
  color: var(--paper-light);
  background: var(--vermillion);
  border-color: var(--vermillion);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--paper); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.93rem; }
.footer-bottom { border-top: 1px solid rgba(239,231,212,0.15); padding-top: 20px; font-size: 0.85rem; opacity: 0.7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------- Page header (inner pages) ---------------- */
.page-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--paper-deep);
}

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------------- Notice / positioning box ---------------- */
.notice {
  background: var(--paper-light);
  border-left: 3px solid var(--sage);
  border-radius: 0 4px 4px 0;
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.notice strong { color: var(--ink); }

/* ---------------- Hero badges ---------------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.badge {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
  border: 1px solid var(--paper-deep); background: var(--paper-light);
  padding: 6px 13px; border-radius: 20px; color: var(--ink-soft);
}

/* ---------------- Numbered process steps (single-row grid — never repeated as fragments) ---------------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }
.step-box { padding-top: 6px; }
.step-box .num {
  font-family: var(--font-hand); font-size: 1.3rem; color: var(--vermillion);
  margin-bottom: 6px; display: block;
}
.step-box h4 { margin-bottom: 6px; }
.step-box p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------------- Blog / knowledge cards ---------------- */
.blog-card .cat {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700;
  color: var(--vermillion); display: block; margin-bottom: 10px;
}

/* ---------------- Legal / plain content pages ---------------- */
.legal h3 { margin-top: 28px; }
.legal .card p:last-child { margin-bottom: 0; }
