/* Learn or Lose — site styles
   Layout concept: one long editorial page. Light paper ground, stone bands for rhythm,
   text held to a left-weighted column with open space on the right, fine rules and
   restrained gold markers. Serif carries the thinking, sans carries the reading. */

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* CI palette */
  --ink: #18181D;
  --paper: #FAF9F4;
  --gold: #C9B037;
  --slate: #64707A;
  --stone: #D9D4C8;
  /* derived */
  --slate-deep: #4E5861;           /* blue-grey for small labels on stone (AA) */
  --rule: rgba(24, 24, 29, 0.14);
  --rule-strong: rgba(24, 24, 29, 0.28);
  --footer-text: #D9D4C8;

  /* type */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-label: 0.6875rem;                          /* 11px */
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-body-lg: 1.0625rem;
  --fs-serif-sm: 1.125rem;
  --fs-serif-md: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-serif-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-display: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);

  --lh-body: 1.7;
  --lh-tight: 1.18;
  --track-label: 0.22em;

  /* spacing */
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --stack-xs: 0.5rem;
  --stack-s: 1rem;
  --stack-m: 1.5rem;
  --stack-l: clamp(2rem, 1.5rem + 2vw, 3rem);
  --stack-xl: clamp(3rem, 2rem + 4vw, 5rem);

  /* measures */
  --wrap: 76rem;
  --measure: 38rem;
  --measure-wide: 46rem;

  /* rules */
  --rule-w: 1px;
  --gold-w: 2px;
  --marker: 2.5rem;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  font-size: var(--fs-small);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

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

.section { padding-block: var(--section-y); }
.section--stone { background: var(--stone); }
.section--tight-top { padding-top: 0; }

.flow > * + * { margin-top: var(--stack-s); }
.flow-m > * + * { margin-top: var(--stack-m); }

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

/* ---------- Type primitives ---------- */

.label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--slate);
}
.section--stone .label { color: var(--slate-deep); }

/* section label with gold rule beneath */
.section-label {
  display: block;
  margin-bottom: var(--stack-l);
}
.section-label::after {
  content: "";
  display: block;
  width: var(--marker);
  height: var(--gold-w);
  background: var(--gold);
  margin-top: 0.85rem;
}

.headline {
  font-family: var(--serif);
  font-size: var(--fs-serif-lg);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  text-wrap: balance;
  max-width: 24ch;
}
.headline--wide { max-width: 30ch; }

.serif-intro {
  font-family: var(--serif);
  font-size: var(--fs-serif-md);
  font-weight: 400;
  line-height: 1.45;
  text-wrap: balance;
  max-width: 30ch;
}

.subhead {
  font-family: var(--serif);
  font-size: var(--fs-serif-md);
  font-weight: 600;
  line-height: 1.3;
}

.body { font-size: var(--fs-body-lg); line-height: var(--lh-body); }
.body p + p { margin-top: 1.1em; }

.small-note { font-size: var(--fs-small); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.85rem 1.6rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  border: 0;
  transition: background-color 160ms ease, color 160ms ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.cta-row { margin-top: var(--stack-l); }

/* ---------- Ruled lists ---------- */

.ruled-list { border-top: var(--rule-w) solid var(--rule); }
.ruled-list > li {
  position: relative;
  padding: 0.95rem 0 0.95rem calc(var(--marker) * 0.6 + 0.9rem);
  border-bottom: var(--rule-w) solid var(--rule);
  font-family: var(--serif);
  font-size: var(--fs-serif-sm);
  line-height: 1.5;
}
.ruled-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.95rem + 0.75em);
  width: calc(var(--marker) * 0.4);
  height: var(--gold-w);
  background: var(--gold);
}

/* plain ruled sequence, no markers (the five questions) */
.question-list { border-top: var(--rule-w) solid var(--rule-strong); }
.question-list > li {
  padding: 1rem 0;
  border-bottom: var(--rule-w) solid var(--rule-strong);
  font-family: var(--serif);
  font-size: var(--fs-serif-md);
  line-height: 1.35;
}

/* ---------- Quotes ---------- */

.pull-quote {
  border-left: var(--gold-w) solid var(--gold);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-serif-md);
  line-height: 1.5;
  max-width: var(--measure-wide);
}

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

.site-header { padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: block; flex: none; }
.brand img { width: clamp(6.5rem, 5.5rem + 3vw, 8.5rem); height: auto; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem clamp(1.25rem, 2.5vw, 2.5rem);
}
.nav a,
.nav .lang {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
  line-height: 1.4;
}
.nav a:hover { color: var(--ink); }
.nav .lang { display: inline-flex; gap: 0.4em; }
.nav .lang [aria-current] { color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 47.99rem) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.5rem 0;
    background: none;
    border: 0;
    font-family: var(--sans);
    font-size: var(--fs-label);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle__bars {
    position: relative;
    width: 1.25rem;
    height: 9px;
    border-top: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
  }
  .js .site-header .wrap { flex-wrap: wrap; }
  .js .nav {
    flex-basis: 100%;
    display: none;
  }
  .js .nav.is-open { display: block; }
  .js .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: var(--rule-w) solid var(--rule);
    margin-top: 0.5rem;
  }
  .js .nav li {
    width: 100%;
    border-bottom: var(--rule-w) solid var(--rule);
  }
  .js .nav a,
  .js .nav .lang { display: flex; padding-block: 0.95rem; }
  .js .nav .lang a { padding-block: 0; }
  .no-js .nav ul { gap: 0.5rem 1.25rem; }
}

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

.hero { padding-top: clamp(2rem, 1rem + 4vw, 5rem); padding-bottom: clamp(1rem, 2vw, 2rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.hero__text { min-width: 0; }
.hero .label { margin-bottom: var(--stack-l); }

.hero h1 {
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -0.012em;
  font-weight: 700;
  max-width: 13ch;
}
.hero h1 span { display: block; }
.hero h1 .turn { font-weight: 400; font-style: italic; margin-top: 0.06em; }

.hero__rule {
  width: var(--marker);
  height: var(--gold-w);
  background: var(--gold);
  border: 0;
  margin: var(--stack-l) 0;
}
.hero__copy { max-width: 31rem; }

.hero__portrait {
  margin-top: clamp(3rem, 2rem + 4vw, 6.5rem);
  min-width: 0;
}
.hero__portrait img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--stone);
}

@media (max-width: 47.99rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero__portrait {
    order: -1;
    margin: 0 0 var(--stack-l);
    /* portrait stays large and offset right, not centred */
    width: 82%;
    margin-left: auto;
  }
  .hero__portrait img { aspect-ratio: 4 / 5; object-position: 50% 28%; }
}

/* ---------- Who this is for ---------- */

.who hgroup { margin-bottom: var(--stack-l); }
.who .serif-intro { max-width: 34ch; }
.who .serif-intro + .serif-intro { margin-top: var(--stack-s); }
.who__lead { color: var(--ink); margin-bottom: var(--stack-s); font-size: var(--fs-small); }
.who .ruled-list { max-width: var(--measure-wide); }
.who__closing { margin-top: var(--stack-l); max-width: var(--measure-wide); }

/* ---------- The Lens ---------- */

.lens .headline { margin-bottom: var(--stack-l); }
.lens .body { max-width: var(--measure); }
.lens .pull-quote { margin-top: var(--stack-xl); }

/* ---------- Working together ---------- */

.working .headline { margin-bottom: var(--stack-m); }
.working__lead { max-width: var(--measure-wide); }

.offers {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 3.5vw, 3.5rem);
  row-gap: var(--stack-l);
  margin-top: var(--stack-xl);
}
.offer {
  border-top: var(--gold-w) solid var(--gold);
  padding-top: 1.25rem;
  min-width: 0;
}
.offer h3 {
  font-family: var(--serif);
  font-size: var(--fs-serif-sm);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}
.offer p { font-size: 0.9375rem; line-height: 1.7; }
.offer p + p { margin-top: 1.1em; }

.changes { margin-top: var(--stack-xl); max-width: var(--measure-wide); }
.changes h3 { margin-bottom: var(--stack-xs); }
.changes > p { margin-bottom: var(--stack-m); }

@media (max-width: 59.99rem) {
  .offers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .offer--lead { grid-column: 1 / -1; }
  .offer--lead p { max-width: var(--measure); }
}
@media (max-width: 37.49rem) {
  .offers { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- One example / In their words ---------- */

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

.testimonials .intro { margin-bottom: var(--stack-l); max-width: var(--measure-wide); }
.testimonial-list {
  display: grid;
  gap: var(--stack-l);
  max-width: var(--measure-wide);
}
.testimonial {
  border-left: var(--gold-w) solid var(--gold);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}
.testimonial blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-serif-sm);
  line-height: 1.6;
}
.testimonial figcaption { margin-top: 0.85rem; }

/* ---------- How I look at it ---------- */

.lookat .headline { margin-bottom: var(--stack-l); }
.lookat .body { max-width: var(--measure); }
.lookat .question-list { margin-block: var(--stack-l); max-width: var(--measure-wide); }
.lookat .pull-quote { margin-block: var(--stack-xl); }

/* ---------- About ---------- */

.about__figure { margin-bottom: var(--stack-xl); max-width: 62rem; }
.about__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 30% 40%;
  background: var(--stone);
}
.about .headline { margin-bottom: var(--stack-l); }
.about .body { max-width: var(--measure); }

.why { margin-top: var(--stack-xl); max-width: var(--measure); }
.why h3 { font-size: var(--fs-serif-sm); margin-bottom: var(--stack-s); }

@media (max-width: 47.99rem) {
  .about__figure {
    /* run the photograph to the screen edges on phones */
    margin-inline: calc(var(--gutter) * -1);
    max-width: none;
  }
  .about__figure img { aspect-ratio: 4 / 3; object-position: 28% 40%; }
}

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

.contact .headline { margin-bottom: var(--stack-l); }
.contact .body { max-width: var(--measure); }
.contact__question {
  margin-block: var(--stack-l);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-serif-md);
  line-height: 1.45;
  max-width: 36ch;
  text-wrap: balance;
}
.contact__closing { max-width: var(--measure); }

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

.site-footer {
  background: var(--ink);
  color: var(--footer-text);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}
.site-footer .brand img { width: 6.5rem; margin-bottom: 0.75rem; }
.site-footer .label,
.site-footer a { color: var(--footer-text); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--paper); }

/* ---------- Simple pages (DE placeholder, legal) ---------- */

.placeholder-page { min-height: 50vh; }

/* German: long compounds in narrow columns */
html[lang="de"] .body p,
html[lang="de"] .offer p,
html[lang="de"] .ruled-list li,
html[lang="de"] .small-note { -webkit-hyphens: auto; hyphens: auto; }
html[lang="de"] .hero h1 { max-width: 16ch; }

.site-footer a[href^="mailto:"] { text-transform: none; letter-spacing: 0.06em; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(2rem, 1rem + 4vw, 5rem) var(--section-y); }
.legal__switch { display: flex; gap: 1.5rem; margin-bottom: var(--stack-l); }
.legal__switch a { text-decoration: none; }
.legal__switch a:hover { color: var(--ink); }
.legal article { max-width: var(--measure); }
.legal article + article {
  margin-top: var(--stack-xl);
  padding-top: var(--stack-xl);
  border-top: var(--rule-w) solid var(--rule);
}
.legal h1 {
  font-family: var(--serif);
  font-size: var(--fs-serif-lg);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin-bottom: var(--stack-m);
}
.legal h1::after {
  content: "";
  display: block;
  width: var(--marker);
  height: var(--gold-w);
  background: var(--gold);
  margin-top: 1rem;
}
.legal h2 {
  font-family: var(--serif);
  font-size: var(--fs-serif-sm);
  font-weight: 600;
  line-height: 1.35;
  margin: 2.25rem 0 0.6rem;
}
.legal p, .legal li { font-size: var(--fs-body); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 0.9em; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.25em; }
.legal a { text-decoration: underline; }
.legal p.legal__switch { font-size: var(--fs-label); }
.legal .legal__switch a { text-decoration: none; }
.legal .legal__switch a:hover { text-decoration: underline; }
