/* v3: based on the earlier Wix design.
   Colours and fonts are set once in :root. Change them there. */

/* Preview-only helper: uses GFS Baskerville where installed, minus its oversized hyphen. Harmless elsewhere. */
@font-face { font-family: "PreviewSerif"; src: local("GFS Baskerville"); unicode-range: U+0000-002C, U+002E-FFFF; }

/* Optional custom fonts: put the files in assets/fonts with these names.
   Without them, Macs show Hoefler Text / Avenir, which are close. */
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/NunitoSans.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #1d1f1f;
  --ink-soft: #3d4140;
  --white: #ffffff;
  --rose: #9a5b4b;       /* section headings */
  --sage: #adb3ac;       /* grey-green sections */
  --dark: #232829;       /* footer */
  --on-dark: #d9dcdb;

  --serif: "EB Garamond", "Hoefler Text", Garamond, "PreviewSerif", "Liberation Serif", Baskerville, Georgia, serif;
  --sans: "Nunito Sans", Avenir, "Avenir Next", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 6vw, 96px);
  --wrap: 1280px;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 250;
  font-size: 1rem;          /* Wix: 16px Avenir Light */
  line-height: 1.85;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; }
p { margin: 0 0 1.2em; }

/* Wordmark: letters separated by thin vertical rules */
.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);   /* Wix: 36px */
  letter-spacing: 0.02em;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.wordmark .bar {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  background: currentColor;
  margin: 0 0.32em;
  vertical-align: -0.18em;
}

/* Outlined buttons, as in the Wix design */
.btn {
  display: inline-block;
  border: 1.5px solid currentColor;
  padding: 0.9em 2.6em;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background-color .2s, color .2s;
}
.btn.light { color: var(--white); }
.btn.light:hover { background: var(--white); color: var(--ink); }
.btn.dark { color: var(--ink); font-weight: 500; font-size: 1.1rem; padding: 1.4em 3.4em; }
.btn.dark:hover { background: var(--ink); color: var(--white); }

/* Hero */

.hero {
  position: relative;
  color: var(--white);
  background: #5c5f62 url("img/hero.jpg") center 40% / cover no-repeat;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,34,36,.30) 0%, rgba(30,34,36,.12) 45%, rgba(30,34,36,.30) 100%);
}
.hero > * { position: relative; }

.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 40px; padding-top: 34px; padding-bottom: 20px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 40px; font-size: 1.25rem; }
.site-nav a { text-decoration: none; color: inherit; padding: 2px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 32px clamp(32px, 8vw, 140px);
  padding-top: clamp(48px, 8vw, 120px);
  padding-bottom: clamp(64px, 10vw, 140px);
}
.hero h1 { font-size: clamp(2.8rem, 5vw, 4.125rem); line-height: 1.25; }   /* Wix: 66px */
.hero .intro { font-size: clamp(1.1rem, 1.5vw, 1.3125rem); line-height: 1.75;   /* Wix: 21px */ max-width: 30rem; }
.hero .intro p { margin-bottom: 1.6em; }

/* Two-column sections (Advisory, Investments) */

.duo { padding: clamp(80px, 11vw, 170px) 0; }
.duo .wrap {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px clamp(40px, 9vw, 160px);
  align-items: start;
}
.duo h2 { font-size: clamp(2.8rem, 5vw, 4.125rem); color: var(--rose); margin-bottom: 0.45em; }
.duo .text p { max-width: 24rem; }
.duo .text .btn { margin-top: 1.2em; }

.big-list { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.big-list li {
  counter-increment: item;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.15;
  padding: 0.55em 0;
}
.big-list.numbered li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  vertical-align: 1.4em;
  margin-right: 0.6em;
}
.big-list.dashes li { border-top: 1px solid #d9dad8; }
.big-list.dashes li:first-child { border-top: 0; padding-top: 0.1em; }

/* Inset grey box */

.inset { padding: 0 clamp(16px, 2.7vw, 52px); }
.inset .box {
  background: var(--sage);
  padding: clamp(56px, 7vw, 110px) 0;
}
.inset .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px clamp(40px, 8vw, 140px);
}
.inset h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }

/* Full-width grey section with photo collage */

.clients { background: var(--sage); padding: clamp(80px, 10vw, 150px) 0; }
.clients .wrap {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 48px clamp(40px, 8vw, 140px);
  align-items: start;
}
.clients h2 { font-size: clamp(3rem, 5.5vw, 4.6rem); margin-bottom: 0.6em; }
.collage {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(12px, 1.8vw, 26px);
  aspect-ratio: 1.45 / 1;
}
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .tall { grid-row: 1 / 3; }

/* Footer */

.site-footer { background: var(--dark); color: var(--on-dark); padding: clamp(80px, 10vw, 150px) 0 clamp(48px, 6vw, 80px); }
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px clamp(40px, 8vw, 140px);
}
.site-footer .tagline { font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 3.9rem); line-height: 1.12; color: var(--white); margin-bottom: 1.4em; }
.site-footer .wordmark { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.6em 2.2em; align-self: end; font-size: 1.15rem; }
.contact-grid dt { color: var(--on-dark); }
.contact-grid dd { margin: 0; color: var(--white); }
.contact-grid a { color: var(--white); }
.legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 0.98rem; border-top: 1px solid #3a4041; padding-top: 28px; margin-top: 24px; }
.legal a { margin-left: 28px; }
.legal a:first-child { margin-left: 0; }

/* Small screens */

@media (max-width: 860px) {
  .hero-body, .duo .wrap, .inset .wrap, .clients .wrap, .site-footer .wrap { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .site-nav { gap: 4px 24px; font-size: 1.05rem; }
  .hero::before { background: rgba(30,34,36,.45); }
  .inset { padding: 0; }
}

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

/* Contact line at the end of the grey box */
.inset .cta-line { font-weight: 500; margin-top: 1.8em; }
.inset .cta-line a { text-underline-offset: 4px; }
html { scroll-behavior: smooth; }

/* Investment criteria list */
.criteria { margin: 0; }
.criteria > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 4px 20px; padding: 14px 0; border-top: 1px solid rgba(29,31,31,.22); }
.criteria > div:first-child { border-top: 0; padding-top: 0; }
.criteria dt { font-weight: 500; }
.criteria dd { margin: 0; }
.clients .cta-line { font-weight: 500; margin-top: 1.8em; }
.clients .cta-line a { text-underline-offset: 4px; }
.clients .collage { align-self: center; }
@media (max-width: 520px) { .criteria > div { grid-template-columns: 1fr; } }
#criteria .wrap { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 860px) { #criteria .wrap { grid-template-columns: 1fr; } }

#criteria .criteria { font-size: 1.125rem; }
#criteria .criteria > div { padding: 18px 0; }

/* Numbered lists: number in its own column, so wrapped lines line up with the text */
.big-list.numbered li { display: grid; grid-template-columns: 2.2rem 1fr; align-items: baseline; font-size: clamp(1.7rem, 2.9vw, 2.6rem); }
.big-list.numbered li::before { vertical-align: 0; margin-right: 0; align-self: start; padding-top: 0.15em; }

/* About page */
.hero.compact { min-height: 0; }
.hero.compact .hero-body { padding-top: clamp(40px, 6vw, 90px); padding-bottom: clamp(56px, 8vw, 110px); }
.person .wrap { grid-template-columns: minmax(0, 0.8fr) 1.2fr; align-items: start; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait.placeholder { background: #e4e6e3; color: var(--ink-soft); display: grid; place-items: center; font-size: 0.95rem; }
.person h2 { color: var(--ink); }
.person .text p { max-width: 34rem; }
.role { font-weight: 500; color: var(--rose); margin: -0.4em 0 1.4em; letter-spacing: 0.02em; }
.advisor h3 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: 0.35em; }
.links a { text-underline-offset: 4px; }
.duo .cta-line { font-weight: 500; font-size: 1.15rem; margin-top: 0.6em; }
.duo .cta-line a { text-underline-offset: 4px; }
@media (max-width: 860px) {
  .person .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}
.hero-body { width: 100%; }

/* Hero: headline and intro text start at the same height */
.hero-body { align-items: start; align-content: center; }
.hero h1 { margin-top: -0.12em; }

/* About: second person directly below the first, separated by a thin line */
.person + .person { padding-top: 0; }
.person + .person .wrap { position: relative; padding-top: clamp(64px, 9vw, 130px); }
.person + .person .wrap::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid #d9dad8; }

/* About: smaller portrait, text column closer */
.person .wrap { grid-template-columns: 300px minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); }
@media (max-width: 860px) { .person .wrap { grid-template-columns: 1fr; } .portrait { max-width: 260px; } }

/* About: photo top lines up with the top of the name's letters (desktop only) */
@media (min-width: 861px) { .person .portrait { margin-top: 0.55rem; } }

/* About: entry without photo keeps its text aligned with the entry above */
@media (min-width: 861px) { .person.no-photo .text { grid-column: 2; } }

/* Phones: keep the four menu items on one line */
@media (max-width: 520px) { .site-nav { gap: 4px 16px; font-size: 0.98rem; flex-wrap: nowrap; } }
.site-nav a { white-space: nowrap; }
@media (max-width: 400px) { .site-nav { gap: 4px 12px; font-size: 0.9rem; } }

/* Phones: larger tap areas for small links (email, LinkedIn, Imprint, Privacy) */
@media (max-width: 860px) {
  .cta-line a, .links a, .site-footer a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .legal a { margin-left: 24px; }
}

/* Imprint and Privacy pages */
.legal-page .wrap { grid-template-columns: 300px minmax(0, 1fr); }
.legal-text { max-width: 44rem; }
.legal-text h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--ink); margin: 1.8em 0 0.5em; }
.legal-text h2:first-of-type { margin-top: 0; }
.legal-text a { text-underline-offset: 3px; }
.legal-text .small { font-size: 0.9rem; color: var(--ink-soft); margin-top: 2em; }
@media (max-width: 860px) { .legal-page .wrap { grid-template-columns: 1fr; } .legal-page .wrap > div:first-child { display: none; } }
