/* Yarranabbe — independent advisory. v13.
   DARK, deep-navy-blue theme. Light text, Source Serif display, restrained and
   structured — the register of an elite European advisory firm. No cream, no
   yellow, no gold. Self-contained — no images, nothing local; only Google Fonts. */

:root {
  --bg:        #0e1c34;   /* deep navy blue */
  --bg-2:      #142440;   /* raised panel */
  --bg-3:      #1a2e50;   /* card / hover */
  --ink:       #eef1f7;   /* headings */
  --ink-soft:  #c3ccdb;   /* body */
  --muted:     #8492aa;
  --line:      rgba(238,241,247,0.12);
  --line-2:    rgba(238,241,247,0.24);
  --accent:    #9bb6e6;   /* soft steel blue */
  --accent-2:  #c6d4ee;
  --max:       1140px;
  --gut:       clamp(1.25rem, 5vw, 3.25rem);
  --serif:     "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--alt { background: var(--bg-2); }
.rule-top { border-top: 1px solid var(--line); }
.measure { max-width: 60ch; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(14,28,52,0.82); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.brand { text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 1.6rem; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: clamp(1.4rem,2.6vw,2.6rem); }
.nav a { font-family: var(--sans); font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none; color: var(--muted); position: relative; padding-block: 0.5rem; transition: color 0.2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0.15rem; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent-2); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 0; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; }
.menu-btn span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.35s ease, width 0.35s ease; }
.menu-btn span:last-child { width: 17px; }

/* ---------- hero (left-aligned, with gravitas) ---------- */
.hero { padding-block: clamp(4.5rem, 12vw, 9rem) clamp(3rem, 7vw, 5.5rem); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: 1.05; letter-spacing: -0.015em; max-width: 17ch; color: var(--ink); }
.display em { font-style: italic; color: var(--accent-2); }
.hero-foot { margin-top: clamp(2.2rem,5vw,3.4rem); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,0.8fr); gap: clamp(1.5rem,4vw,3rem); align-items: end; }
.lead { font-size: clamp(1.15rem,1.9vw,1.4rem); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center; }
.hero--sub { padding-block: clamp(4rem,9vw,7rem) clamp(2.5rem,5vw,3.5rem); }
.hero--sub .lead { margin-top: 1.5rem; max-width: 56ch; }
.hero--sub .display { max-width: 20ch; }

/* ---------- buttons (sharp, restrained) ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--sans); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.13em; text-decoration: none; cursor: pointer; padding: 0.95rem 1.7rem; border: 1px solid var(--line-2); background: none; color: var(--ink); transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease; }
.btn:hover { border-color: var(--ink); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--bg); }
.btn--line { border: 0; border-bottom: 1px solid var(--line-2); padding: 0.6rem 0; color: var(--accent-2); }
.btn--line:hover { border-color: var(--accent-2); }

/* ---------- section heads ---------- */
.head { margin-bottom: clamp(2.6rem,5vw,4rem); max-width: 32ch; }
.head h2 { font-size: clamp(2rem,4vw,3.1rem); letter-spacing: -0.015em; }
.head p { margin-top: 1rem; color: var(--muted); }

/* ---------- statement ---------- */
.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem,3.8vw,2.9rem); line-height: 1.28; letter-spacing: -0.01em; color: var(--ink); max-width: 24ch; }
.statement--wide { max-width: 34ch; }

/* ---------- prose ---------- */
.prose { max-width: 680px; }
.prose > * + * { margin-top: 1.5rem; }
.prose h2 { font-size: clamp(1.7rem,3vw,2.2rem); margin-top: 2.6rem; }
.prose p { color: var(--ink-soft); font-size: 1.12rem; }

/* ---------- practice rows (flat, hairline) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.3fr) auto; gap: clamp(1.2rem,3vw,2.5rem); align-items: baseline; padding-block: clamp(1.8rem,3.6vw,2.6rem); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background 0.25s ease, padding-inline 0.3s ease; }
.row:hover { background: var(--bg-2); padding-inline: clamp(0.5rem,1.5vw,1.25rem); }
.row h3 { font-size: clamp(1.4rem,2.6vw,1.9rem); }
.row p { color: var(--muted); }
.row .go { color: var(--muted); font-size: 1.2rem; transition: transform 0.25s ease, color 0.25s ease; }
.row:hover .go { transform: translateX(4px); color: var(--accent-2); }

/* ---------- expertise blocks ---------- */
.block { padding-block: clamp(3rem,6vw,5rem); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,0.7fr) minmax(0,1.3fr); gap: clamp(1.5rem,4vw,3.5rem); }
.block:first-of-type { border-top: 0; }
.block h2 { font-size: clamp(1.8rem,3.2vw,2.5rem); }
.block-body > * + * { margin-top: 1.3rem; }
.block-body p { color: var(--ink-soft); }
.block-list { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.block-list li { padding-block: 0.75rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 0.98rem; display: flex; gap: 1rem; align-items: baseline; }
.block-list li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 0.65rem; background: var(--accent); }

/* ---------- steps ---------- */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 4.5rem minmax(0,0.42fr) minmax(0,1fr); gap: clamp(1.4rem,4vw,3.5rem); padding-block: clamp(2.2rem,4.5vw,3.2rem); border-bottom: 1px solid var(--line); align-items: baseline; }
.step-n { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem,3.8vw,2.8rem); color: var(--accent); line-height: 1; }
.step h3 { font-size: clamp(1.4rem,2.5vw,1.9rem); }
.step p { color: var(--ink-soft); max-width: 56ch; }

/* ---------- principles / panels ---------- */
.panels { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.panel { background: var(--bg-2); padding: clamp(1.9rem,3.4vw,2.7rem); }
.panel h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.panel p { color: var(--muted); font-size: 0.98rem; }

/* ---------- perspectives ---------- */
.journal { border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: minmax(0,0.4fr) minmax(0,1fr); gap: clamp(1.2rem,4vw,3.5rem); padding-block: clamp(2.1rem,4.5vw,3rem); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background 0.25s ease, padding-inline 0.3s ease; }
.entry:hover { background: var(--bg-2); padding-inline: clamp(0.5rem,1.5vw,1.25rem); }
.entry-meta { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
.entry-meta .cat { display: block; color: var(--accent); margin-bottom: 0.35rem; }
.entry h3 { font-size: clamp(1.4rem,2.6vw,1.95rem); max-width: 28ch; }
.entry p { margin-top: 0.6rem; color: var(--muted); max-width: 60ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); gap: clamp(2rem,5vw,4rem); }
.detail + .detail { margin-top: 2rem; }
.detail .k { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 0.5rem; }
.detail p { color: var(--ink-soft); }
.detail a { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.detail a:hover { border-color: var(--accent-2); }
.form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.field input, .field textarea { font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); padding: 0.85rem 1rem; border-radius: 0; transition: border-color 0.2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--bg-2); }
.cta h2 { font-size: clamp(2.1rem,4.4vw,3.3rem); max-width: 20ch; margin-bottom: 1.4rem; }
.cta p { color: var(--ink-soft); max-width: 48ch; margin-bottom: 2.2rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(3.5rem,7vw,5rem) 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1.7fr; gap: clamp(2.5rem,6vw,5rem); padding-bottom: clamp(2.5rem,5vw,3.5rem); border-bottom: 1px solid var(--line); }
.footer-brand .brand { font-size: 1.5rem; }
.footer-brand p { margin-top: 1rem; color: var(--muted); max-width: 32ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.footer-cols > div { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-k { font-family: var(--sans); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 0.4rem; }
.footer-cols a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-cols a:hover { color: var(--ink); }
.footer-cols .q { color: var(--muted); font-size: 0.92rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.2rem; font-size: 0.82rem; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; }
.notfound .code { font-family: var(--serif); font-size: clamp(4.5rem,13vw,9rem); font-weight: 300; line-height: 1; color: var(--accent); }
.notfound h1 { font-size: clamp(1.9rem,3.4vw,2.6rem); margin: 1rem 0 1.4rem; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .menu-btn { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.25rem var(--gut) 1.5rem; clip-path: inset(0 0 100% 0); transition: clip-path 0.4s ease; }
  .nav.open { clip-path: inset(0 0 0 0); }
  .nav a { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
  .nav a::after { display: none; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); width: 26px; }
  .hero-foot { grid-template-columns: 1fr; gap: 1.8rem; }
  .row { grid-template-columns: 1fr; gap: 0.5rem; }
  .row .go { display: none; }
  .block { grid-template-columns: 1fr; gap: 1.4rem; }
  .step { grid-template-columns: 3.5rem 1fr; }
  .step p { grid-column: 2; }
  .panels { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; gap: 0.7rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 540px) { .step { grid-template-columns: 1fr; } .step p { grid-column: 1; } }
