/* PhysioTL – stylesheet
   Self-contained: system fonts, no external requests. */

:root {
  --brand-950: #11302c;
  --brand-900: #1b4540;
  --brand-800: #235a53;
  --brand-700: #2b6e65;
  --brand-600: #3a8a7e;
  --brand-200: #cbe3de;
  --brand-100: #e6f2ef;
  --tint: #f4f9f8;
  --accent-light: #ffb184;
  --accent: #b44514;
  --accent-dark: #8f3509;
  --ink: #1b2b28;
  --muted: #4c605c;
  --line: #d5e4e0;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 48, 44, 0.06), 0 8px 24px rgba(17, 48, 44, 0.07);
  --shadow-hover: 0 2px 4px rgba(17, 48, 44, 0.08), 0 14px 32px rgba(17, 48, 44, 0.13);
  --max: 1120px;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body { margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--brand-900); margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); overflow-wrap: break-word; }
h3 { font-size: 1.25rem; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1.1em; }
a { color: var(--brand-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-950); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--brand-900); color: #fff; padding: 0.8em 1.2em; border-radius: 0 0 10px 0; text-decoration: none; font-weight: 600; }
.skip-link:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
section { padding-block: clamp(2.2rem, 6vw, 4rem); }
.eyebrow { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--brand-700); margin-bottom: 0.7rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--brand-900); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.03em; }
.brand-sub { font-size: 0.8rem; color: var(--muted); }

.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.85rem; font: inherit; font-size: 0.95rem; color: var(--brand-900); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; content: ""; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 0.5rem 1.25rem 1rem; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.65rem 0.25rem; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav a:hover { color: var(--brand-700); }
.site-nav a[aria-current="page"] { color: var(--brand-700); font-weight: 700; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .site-nav > ul { display: flex; align-items: center; gap: 0.15rem; }
  .site-nav a { border: 0; padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.98rem; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--brand-100); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background 150ms ease, transform 150ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Leaf band / heroes ---------- */
.leaf-band { height: clamp(7.5rem, 16vw, 14.5rem); background: #fff center / cover no-repeat; border-bottom: 1px solid var(--line); }
.intro { padding-block: clamp(2.2rem, 6vw, 4rem) 0; }
.intro h1 { margin-bottom: 0.3rem; font-size: clamp(2.4rem, 6.5vw, 4.2rem); }
.intro .tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.8vw, 1.7rem); color: var(--accent); margin: 0 0 1rem; max-width: 46rem; line-height: 1.35; }

.page-hero { background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); color: #fff; padding-block: clamp(2rem, 6vw, 3.6rem); }
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; font-size: clamp(1.9rem, 4.6vw, 2.8rem); overflow-wrap: break-word; }
.page-hero .lead { color: rgba(255, 255, 255, 0.92); margin: 0; max-width: 44rem; font-size: 1.2rem; line-height: 1.55; }
.crumbs { font-size: 0.9rem; margin-bottom: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--accent-light); }

/* ---------- Start page cards ---------- */
.topic-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .topic-grid { grid-template-columns: 1fr 1fr; } .card-wide { grid-column: 1 / -1; } }
@media (min-width: 62rem) { .topic-grid { grid-template-columns: repeat(3, 1fr); } .card-wide { grid-column: span 2; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow); transition: box-shadow 150ms ease, transform 150ms ease; }
.card:hover, .card:focus-within { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.5rem; }
.card h3 a { color: var(--brand-900); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }   /* whole card clickable */
.card p { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 0.6rem; font-weight: 600; color: var(--brand-700); }
.card .js-mail a { position: relative; z-index: 2; }
.card-note { font-size: 0.95rem; margin: 0.8rem 0 0.4rem; }

/* ---------- Content pages ---------- */
/* reading columns stay aligned with the left edge of the page title (same offset as .wrap) */
.prose, .prose-wide { max-width: 46rem; margin-left: calc((100% - min(100% - 2.5rem, var(--max))) / 2); margin-right: auto; }
.about .prose { margin-left: 0; }
.prose.has-photo, .prose-wide { max-width: 62rem; }
.prose h2, .prose-wide h2 { margin-top: 2.6rem; padding-top: 1.3rem; border-top: 2px solid var(--brand-200); color: var(--brand-800); scroll-margin-top: 6rem; }
.prose > h2:first-child, .prose-wide > .lead-text + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.prose-wide > .lead-text + h2 { margin-top: 2.2rem; }
.prose ul:not(.checklist), .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.3rem; }
.lead-text { font-size: 1.25rem; line-height: 1.6; color: var(--muted); }
.footnote { margin-top: 2rem; font-size: 0.92rem; color: var(--muted); }
.clear { clear: both; }

.photo { margin: 0 0 1.2rem; }
@media (max-width: 39.99rem) { .photo-hide-small { display: none; } }
.photo img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
@media (min-width: 40rem) {
  .photo-right { float: right; width: min(42%, 20rem); margin: 0.3rem 0 1.2rem 2rem; }
  .photo-large { width: min(40%, 22rem); }
  .photo-left { float: left; width: min(36%, 17rem); margin: 0.3rem 2rem 1.2rem 0; }
}
.prose::after, .prose-wide::after { content: ""; display: block; clear: both; }

.checklist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.checklist li { position: relative; padding: 0.3rem 0 0.3rem 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.65rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.5' fill='none' stroke='%232b6e65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.checklist.cross li::before { background: #fbe9e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23b44514' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/80% no-repeat; }

.reports { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.reports li { background: var(--tint); border: 1px solid var(--brand-200); border-left: 4px solid var(--accent); border-radius: 14px; padding: 1.2rem 1.4rem; }
.reports h3 { margin-bottom: 0.5rem; }
.reports p { margin-bottom: 0.5rem; }
.reports p:last-child { margin-bottom: 0; }

.callout { background: var(--brand-100); border: 1px solid var(--brand-200); border-left: 5px solid var(--brand-700); border-radius: 12px; padding: 1.1rem 1.4rem 0.1rem; margin: 0 0 1.2rem; }


/* about */
.about { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .about { grid-template-columns: 19rem minmax(0, 1fr); gap: 3.5rem; } .jump { position: sticky; top: 6rem; } }
.portrait { margin: 0 0 1.4rem; max-width: 19rem; }
.portrait img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.jump { background: var(--tint); border: 1px solid var(--brand-200); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.95rem; }
.jump h2 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.jump ul { list-style: none; margin: 0; padding: 0; }
.jump a { display: block; padding: 0.3rem 0; text-decoration: none; }
.about .prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.biblio { padding-left: 1.4rem; }
.biblio li { padding-left: 0.3rem; margin-bottom: 0.8rem; overflow-wrap: anywhere; }

/* imprint */
.contact-list { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: 0.1rem; }
.contact-list .label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--brand-700); }
.contact-list .value { font-size: 1.25rem; font-family: var(--font-serif); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: rgba(255, 255, 255, 0.88); padding-block: 3rem 2.4rem; font-size: 0.97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-light); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.site-footer h2 { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.15rem 0; }
.site-footer p { margin: 0; }

@media (max-width: 30rem) { .brand-name { font-size: 1.1rem; } .brand img { width: 38px; height: 38px; } }
@media print {
  .site-header, .site-footer, .nav-toggle, .skip-link, .leaf-band { display: none; }
  .page-hero { background: none; color: #000; padding: 1rem 0; }
  .page-hero h1, .page-hero .lead, .crumbs, .crumbs a { color: #000; }
}
