/* Makowski Tax — component CSS, without a utility framework.
   Brand tokens → document defaults → reusable components → page sections.
   This stylesheet is shared by desktop and mobile and can be enqueued in WP. */
:root {
  --navy: #000033;
  --gold: #e0b480;
  --gold-soft: #f7e6d2;
  --teal: #0f766e;
  --paper: #f8f6f2;
  --white: #fff;
  --text: #475569;
  --muted: #596779;
  --border: #e5e1d8;
  --border-strong: #c8c2b4;
  --font: 'Montserrat', Arial, sans-serif;
  --content-width: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-space: clamp(56px, 7vw, 96px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--navy); background: var(--white); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
body, h1, h2, h3, p, figure, ul { margin-block-start: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(38px, 4.4vw, 58px); letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: clamp(28px, 3.1vw, 40px); letter-spacing: -.03em; }
h3 { margin-bottom: 14px; font-size: 20px; letter-spacing: -.015em; }
p { margin-bottom: 20px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { color: var(--navy); background: var(--gold); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.site-footer :focus-visible { outline-color: var(--gold); }
#main:focus { outline: none; }
.container { width: min(100%, calc(var(--content-width) + var(--gutter) * 2)); padding-inline: var(--gutter); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section--paper { background: var(--paper); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; padding: 12px 20px; background: var(--navy); color: white; z-index: 100; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.prototype-notice { padding: 7px 20px; color: var(--text); background: var(--paper); font-size: 12px; text-align: center; border-bottom: 1px solid var(--border); }
.prototype-notice span { padding-inline: 8px; }

/* Navigation: one DOM tree, expanded by default when JavaScript is absent. */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 96px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 184px; }
.primary-navigation { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.navigation-list { display: flex; align-items: center; gap: 25px; list-style: none; padding: 0; margin: 0; }
.navigation-list a { display: block; padding-block: 12px; text-decoration: none; font-size: 16px; font-weight: 500; }
.navigation-list a:hover { color: var(--teal); text-decoration: underline; }
.menu-toggle { display: none; }

/* Shared buttons and card interactions. No nested links or JS click handlers. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius); font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; text-align: center; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.button--primary { background: var(--navy); color: var(--white); }
.button--outline { border-color: var(--navy); background: transparent; color: var(--navy); }
.button-group { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--teal); text-decoration: underline; }
.eyebrow { margin-bottom: 12px; color: var(--teal); font-size: 11px; line-height: 1.6; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-heading > p { max-width: 360px; margin-bottom: 0; color: var(--text); font-size: 14px; }
.section-heading .text-link { flex-shrink: 0; }
.section-end { margin-top: 24px; text-align: right; }
.problem-grid, .advisory-grid, .publication-grid, .recording-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.problem-card, .advisory-card, .project-card, .publication-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); transition: border-color .18s ease, background-color .18s ease; }
.card-link { text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--teal); outline-offset: 4px; }
.card-action { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 12px; line-height: 1.6; font-weight: 600; }
.card-action .icon { width: 18px; height: 18px; flex-basis: 18px; }
.card-overline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; color: var(--teal); font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.card-overline .icon { width: 20px; height: 20px; }
.editorial-note { max-width: 800px; margin-top: -12px; margin-bottom: 26px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.editorial-placeholder { color: var(--muted); border-left: 2px solid var(--gold); padding-left: 16px; }

/* Hero */
.hero { padding-block: 64px 80px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 7vw, 100px); }
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 590px; }
.hero-description { max-width: 525px; margin-bottom: 28px; color: var(--text); font-size: 17px; line-height: 1.85; }
.hero .button-group { align-items: stretch; }
.hero .button { padding-inline: 18px; font-size: 12px; }
.expertise-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 38px 0 0; padding: 26px 0 0; border-top: 1px solid var(--border-strong); list-style: none; }
.expertise-notes strong, .expertise-notes span { display: block; }
.expertise-notes strong { font-size: 13px; font-weight: 500; }
.expertise-notes span { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.hero-portrait { margin: 0; width: 100%; max-width: 490px; justify-self: end; background: var(--white); }
.hero-portrait > img { width: 100%; height: auto; aspect-ratio: 4 / 4.65; object-fit: cover; object-position: 56% center; }
.hero-portrait figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 18px; border-bottom: 3px solid var(--teal); }
.hero-portrait figcaption strong, .hero-portrait figcaption span span { display: block; }
.hero-portrait figcaption strong { font-size: 12px; font-weight: 600; }
.hero-portrait figcaption span span { color: var(--muted); font-size: 11px; }
.portrait-caption-accent { color: var(--teal); text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: .1em; }

/* Problem and advisory cards keep the two brief sections visually distinct. */
.problem-card { padding: 28px; background: var(--white); }
.problem-card h3 { font-size: 18px; line-height: 1.45; }
.problem-card > p { color: var(--text); font-size: 14px; line-height: 1.8; }
.advisory-card { padding: 28px; background: var(--paper); border-top: 2px solid var(--teal); }
.advisory-card:nth-child(even) { border-top-color: var(--navy); }
.advisory-card .eyebrow { font-size: 10px; }
.advisory-card h3 { font-size: 21px; line-height: 1.35; }
.advisory-card > p:not(.eyebrow) { font-size: 14px; line-height: 1.8; color: var(--text); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.project-card { padding: 36px; background: var(--white); }
.project-card h3 { font-size: 28px; }
.project-card .card-overline { margin-bottom: 28px; }
.project-card p { max-width: 430px; font-size: 15px; }

/* Content cards. Dates are taken from the archived source, never generated. */
.publication-card { padding: 26px; background: var(--paper); }
.publication-card h3 { font-size: 19px; line-height: 1.45; }
.publication-card > p { color: var(--text); font-size: 13px; line-height: 1.85; }
.content-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.content-meta > span { color: var(--teal); font-weight: 600; }
.recording-card { min-width: 0; background: var(--white); border: 1px solid var(--border); }
.recording-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; color: var(--gold); background: var(--navy); }
.recording-cover .icon { width: 34px; height: 34px; padding: 6px; border: 1px solid var(--gold); border-radius: 4px; }
.recording-cover-label { position: absolute; top: 16px; left: 18px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.recording-cover-index { position: absolute; right: 18px; bottom: 12px; color: var(--white); font-size: 12px; }
.recording-body { padding: 24px; }
.recording-body .content-meta { display: block; margin-bottom: 10px; color: var(--teal); }
.recording-body h3 { font-size: 19px; }
.recording-body p { margin-bottom: 0; color: var(--text); font-size: 13px; }

/* Only linked cards get an interactive surface; static panels stay unchanged.
   The same highlight works for pointer hover and keyboard navigation. */
:is(.problem-card, .advisory-card, .project-card, .publication-card, .recording-card):has(.card-link[href]) {
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
:is(.problem-card, .advisory-card, .project-card, .publication-card, .recording-card):has(.card-link[href]):is(:hover, :focus-within) {
  background-color: var(--gold-soft);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgb(0 0 51 / 10%);
}
:is(.problem-card, .advisory-card, .project-card, .publication-card, .recording-card):is(:hover, :focus-within) .card-link {
  text-decoration: underline;
  text-underline-offset: .18em;
}

/* Biography and contact: no invented quote and no non-functional form. */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-portrait { padding: 12px; border: 1px solid var(--border); }
.about-portrait img { width: 100%; aspect-ratio: 4/4.7; object-fit: cover; object-position: 51% center; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { color: var(--text); font-size: 15px; line-height: 1.9; }
.about-copy > p.lead { color: var(--navy); font-size: 20px; line-height: 1.6; }
.about-copy .button-group { margin-top: 28px; gap: 24px; }
.contact { background: var(--paper); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.contact-description { max-width: 540px; margin-block: 22px 28px; color: var(--text); }
.contact-details { min-width: 0; padding-left: 40px; border-left: 1px solid var(--border-strong); font-style: normal; }
.contact-method { display: flex; align-items: flex-start; gap: 18px; padding-block: 20px; text-decoration: none; }
.contact-method > .icon { margin-top: 5px; color: var(--teal); }
.contact-method > span { min-width: 0; }
.contact-method .eyebrow { display: block; margin-bottom: 6px; }
.contact-method strong { font-size: clamp(14px, 1.35vw, 18px); font-weight: 500; overflow-wrap: anywhere; }
.contact-method:hover strong { text-decoration: underline; }
.contact-source { max-width: 330px; margin-block: 18px 0; color: var(--muted); font-size: 12px; }

/* Footer */
.site-footer { padding-top: 56px; color: var(--paper); background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .8fr 1.25fr; gap: 44px; padding-bottom: 48px; }
.footer-brand .brand img { width: 180px; }
.footer-brand > p { margin-top: 18px; color: #d1d1df; font-size: 12px; line-height: 1.8; }
.footer-heading { margin-block: 8px 20px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a, .footer-address a { display: block; width: fit-content; padding-block: 5px; font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.footer-address { font-style: normal; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-social { display: inline-flex; gap: 20px; padding: 8px 12px; border: 1px solid #555578; border-radius: 4px; font-size: 12px; text-decoration: none; }
.footer-pending { margin-top: 18px; font-size: 11px; color: #c8c8dc; }
.footer-contact-link { display: inline-block; margin-top: 14px; padding-block: 8px; color: var(--gold); font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px; border-top: 1px solid #353556; color: #c8c8dc; font-size: 11px; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a { text-decoration: none; }

/* Honest route preview for destinations not designed yet (local server only). */
.route-preview { max-width: 860px; margin: 64px auto; padding: 32px var(--gutter); }
.route-preview h1 { font-size: clamp(30px, 5vw, 48px); overflow-wrap: anywhere; }
.route-preview .route-path { display: block; margin-block: 24px; padding: 16px; background: var(--paper); font-size: 13px; overflow-wrap: anywhere; }
.route-preview p { color: var(--text); }
.route-preview .button-group { margin-top: 32px; }

@media (max-width: 1150px) {
  .primary-navigation { gap: 24px; }
  .navigation-list { gap: 16px; }
  .navigation-list a { font-size: 15px; }
  .brand img { width: 160px; }
  .header-contact { padding-inline: 16px; font-size: 14px; }
  .hero-grid { gap: 40px; }
  .hero .button-group { flex-direction: column; align-items: flex-start; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 979px) {
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; min-height: 80px; gap: 0; }
  .primary-navigation { width: 100%; padding-block: 18px 24px; flex-direction: column; align-items: stretch; gap: 20px; border-top: 1px solid var(--border); }
  .navigation-list { flex-direction: column; align-items: stretch; gap: 0; }
  .navigation-list a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--border); }
  .header-contact { align-self: flex-start; font-size: 14px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--navy); background: var(--white); }
  .menu-toggle-label { font-size: 13px; font-weight: 600; }
  .menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 18px; height: 1px; background: currentColor; }
  .menu-toggle-lines { position: relative; }
  .menu-toggle-lines::before, .menu-toggle-lines::after { content: ''; position: absolute; left: 0; }
  .menu-toggle-lines::before { top: -5px; }
  .menu-toggle-lines::after { top: 5px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 0; transform: rotate(-45deg); }
  .problem-grid, .advisory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .section-heading > p { max-width: 600px; }
  .publication-grid, .recording-grid { gap: 16px; }
  .publication-card, .recording-body { padding: 20px; }
  .publication-card h3 { font-size: 17px; }
  .contact-grid { gap: 32px; }
  .contact-details { padding-left: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 48px; }
}
@media (max-width: 759px) {
  html { scroll-padding-top: 24px; }
  .prototype-notice { font-size: 10px; }
  .hero { padding-block: 36px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy h1 { max-width: 550px; font-size: clamp(36px, 8.6vw, 50px); }
  .hero-description { font-size: 16px; }
  .hero .button-group { flex-direction: row; align-items: stretch; }
  .expertise-notes { margin-top: 28px; padding-top: 22px; }
  .hero-portrait { max-width: 520px; justify-self: center; }
  .hero-portrait > img { aspect-ratio: 4/4.1; }
  .project-card { padding: 26px; }
  .publication-grid, .recording-grid { grid-template-columns: 1fr; gap: 24px; }
  .publication-card { padding: 26px; }
  .publication-card h3 { font-size: 21px; }
  .recording-card { display: grid; grid-template-columns: .85fr 1.15fr; }
  .recording-cover { height: 100%; aspect-ratio: auto; min-height: 190px; }
  .recording-cover-label { font-size: 8px; left: 12px; }
  .recording-body h3 { font-size: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { width: 100%; max-width: 520px; justify-self: center; }
  .about-portrait img { aspect-ratio: 4/3.4; object-position: 50% 36%; }
  .about-copy > p:not(.eyebrow) { font-size: 16px; }
  .about-copy > p.lead { font-size: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-details { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--border-strong); }
  .contact-method strong { font-size: 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 519px) {
  h1 { letter-spacing: -.035em; }
  .hero .button-group { flex-direction: column; }
  .hero .button { font-size: 13px; }
  .expertise-notes { gap: 10px; }
  .expertise-notes strong { font-size: 11px; }
  .expertise-notes span { font-size: 10px; }
  .problem-grid, .advisory-grid, .project-grid { grid-template-columns: 1fr; gap: 16px; }
  .problem-card, .advisory-card { padding: 24px; }
  .problem-card h3 { font-size: 20px; }
  .advisory-card h3 { font-size: 23px; }
  .problem-card > p, .advisory-card > p:not(.eyebrow) { font-size: 15px; }
  .card-action { padding-top: 12px; font-size: 13px; }
  .section-heading { margin-bottom: 28px; }
  .section-end { text-align: left; }
  .recording-card { display: block; }
  .recording-cover { min-height: 0; height: auto; aspect-ratio: 16/9; }
  .recording-cover-label { font-size: 10px; left: 18px; }
  .recording-body { padding: 24px; }
  .recording-body h3 { font-size: 21px; }
  .about-copy .button-group { gap: 14px; }
  .about-copy .button { width: 100%; }
  .footer-grid { gap: 30px 20px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1/-1; }
  .footer-address a { font-size: 13px; }
  .footer-links a { padding-block: 9px; font-size: 13px; }
  .footer-bottom nav { gap: 12px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Client refinement, 7 October: gold logo on the white header, no coloured tile.
   Decorative SVG images stay in normal flow, inside their text column. */
.site-header { border-bottom-color: var(--gold); }
.site-header .brand {
  align-self: stretch;
  min-height: 96px;
  padding: 12px 0;
  background: transparent;
}
.site-header .brand:focus-visible { outline-color: var(--teal); outline-offset: 2px; }
.site-header .brand img { width: 210px; }
.site-header .header-contact { font-size: 14px; }
.city-outline {
  display: block;
  width: min(100%, 480px);
  height: auto;
  aspect-ratio: 800 / 128;
  margin-top: 32px;
  opacity: .32;
  pointer-events: none;
}
@media (max-width: 1150px) {
  .site-header .brand img { width: 180px; }
}
@media (max-width: 979px) {
  .site-header .brand { min-height: 80px; padding: 12px 0; }
  .header-inner { gap: 0 20px; }
  .menu-toggle { border-color: var(--border-strong); }
}
@media (max-width: 379px) {
  .site-header .brand img { width: 145px; }
  .header-inner { gap: 0 12px; }
}

/* One gold interaction state across all button-like controls. */
.button, .menu-toggle, .footer-social {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.button:is(:hover, :focus-visible),
.menu-toggle:is(:hover, :focus-visible),
.site-footer .footer-social:is(:hover, :focus-visible) {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
