/* ===========================================================
   Tobias Könning — Systemic Coaching
   Design system tokens & base styles
   =========================================================== */

:root {
  /* Primary palette — Ocean Depth */
  --color-deep-ocean: #0B3B4D;
  --color-ocean-mid: #12657A;
  --color-turquoise: #1C9FAE;
  --color-seafoam: #9CD6D0;
  --color-tide: #D7ECEA;
  --color-sky: #F3F8F7;

  /* Grounding palette */
  --color-driftwood: #6E5A48;
  --color-sand: #E8DFD2;
  --color-stone: #7F8A8B;
  --color-charcoal: #1F2A2C;

  /* Accents */
  --color-sunglow: #F4C15C;
  --color-coral: #E87E6A;

  /* Borders */
  --border-hair: rgba(11, 59, 77, 0.08);
  --border-soft: rgba(11, 59, 77, 0.16);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --section-pad: 128px;
  --container: 1200px;
  --reading: 680px;
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-sky);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--color-turquoise); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 200ms ease; }
a:hover { color: var(--color-ocean-mid); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--color-turquoise);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Typography scale */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-deep-ocean);
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-deep-ocean);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; font-weight: 500; }

p { margin: 0 0 1.1em; }
.body-lg { font-size: 20px; line-height: 1.6; }
.meta { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--color-stone); letter-spacing: 0.02em; }
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ocean-mid);
  margin: 0 0 16px;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}
.reading { max-width: var(--reading); margin-inline: auto; }

section { padding-block: var(--section-pad); }
.section-sky { background: var(--color-sky); }
.section-tide { background: var(--color-tide); }
.section-sand { background: var(--color-sand); }
.section-deep { background: var(--color-deep-ocean); color: var(--color-sky); }
.section-deep h1, .section-deep h2, .section-deep h3 { color: var(--color-sky); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  padding: 16px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-turquoise);
  color: var(--color-sky);
  border-color: var(--color-turquoise);
}
.btn-primary:hover {
  background: var(--color-ocean-mid);
  border-color: var(--color-ocean-mid);
  color: var(--color-sky);
}
.btn-secondary {
  background: transparent;
  color: var(--color-deep-ocean);
  border: 1px solid var(--color-deep-ocean);
}
.btn-secondary:hover {
  background: var(--color-deep-ocean);
  color: var(--color-sky);
}
.section-deep .btn-secondary {
  color: var(--color-sky);
  border-color: var(--color-sky);
}
.section-deep .btn-secondary:hover {
  background: var(--color-sky);
  color: var(--color-deep-ocean);
}

/* Inline text link (distinct from plain <a>) */
.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-turquoise);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 200ms ease, gap 200ms ease;
}
.link-inline:hover { color: var(--color-ocean-mid); gap: 12px; }
.link-inline svg { width: 14px; height: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 248, 247, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, padding 200ms ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border-hair);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-deep-ocean);
}
.brand .mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand .wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand .subline {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-top: 3px;
}
.nav {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav a {
  color: var(--color-deep-ocean);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.nav a:hover, .nav a.active {
  color: var(--color-turquoise);
  border-bottom-color: var(--color-turquoise);
}
.header-cta {
  padding: 10px 20px;
  font-size: 15px;
}
@media (min-width: 960px) {
  .nav { display: flex; }
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  color: var(--color-deep-ocean);
}
@media (min-width: 960px) {
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 8px 24px 24px;
  background: rgba(243, 248, 247, 0.98);
  border-bottom: 1px solid var(--border-hair);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--color-deep-ocean);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border-hair);
}
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* Wave divider */
.wave-divider {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 16px;
  color: var(--color-turquoise);
  margin: 32px auto;
}
.wave-divider.left { margin-inline: 0; }

/* Blockquote */
blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--color-deep-ocean);
  margin: 32px 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--color-turquoise);
  text-wrap: balance;
}
blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-stone);
  letter-spacing: 0.02em;
}

/* Card */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  padding: 32px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.card:hover {
  border-color: rgba(28, 159, 174, 0.35);
}
.card h3 { margin-bottom: 8px; }
.card .card-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--color-ocean-mid);
  margin-bottom: 16px;
}

/* Grid utilities */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* Footer */
.site-footer {
  background: var(--color-deep-ocean);
  color: var(--color-sky);
  padding: 80px 0 40px;
}
.site-footer a { color: var(--color-seafoam); text-decoration: none; }
.site-footer a:hover { color: var(--color-sky); }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .site-footer .cols { grid-template-columns: 1.3fr 1fr 1fr; gap: 64px; }
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-seafoam);
  margin: 0 0 20px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; font-size: 15px; }
.footer-brand .mark-footer { width: 44px; height: 44px; color: var(--color-seafoam); margin-bottom: 20px; }
.footer-brand .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--color-sky);
  margin: 0 0 12px;
}
.footer-brand p {
  font-size: 15px;
  color: var(--color-seafoam);
  max-width: 340px;
  line-height: 1.55;
}
.footer-meta {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(156, 214, 208, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--color-seafoam);
  opacity: 0.8;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* Image treatments */
.img-tinted {
  filter: saturate(0.88);
  border-radius: 8px;
  overflow: hidden;
}
.portrait-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-tide);
  aspect-ratio: 3/4;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  mix-blend-mode: multiply;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(215, 236, 234, 0.35) 100%);
  pointer-events: none;
}

/* Form */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-deep-ocean);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-field .hint { font-weight: 400; color: var(--color-stone); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(11, 59, 77, 0.2);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-charcoal);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 4px rgba(28, 159, 174, 0.15);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--color-deep-ocean);
  color: var(--color-sky);
  padding: 10px 14px;
  border-radius: 4px;
  z-index: 100;
  text-decoration: none;
  font-size: 14px;
}
.skip-link:focus { left: 12px; }
