/* Fonts are served from this site (SIL Open Font License, fonts/OFL-*.txt), so no page
   contacts Google or any other service. Latin and Latin Extended subsets. */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/hanken-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/hanken-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Wagnosis public site. Colors and type follow the game's "Warm Clinic" theme
   (vetsim-frontend/src/theme.css), so the site and the game look like one thing. */

:root {
  --text: #2E2620;
  --text-soft: #716454;
  --navy: #12294A;
  --bg: #F7F0E5;
  --card: #FFFDF9;
  --border: #EADFCD;
  --accent: #B85A37;
  --accent-hover: #A24D2E;
  --accent-soft: #FBEDE6;
  --radius: 13px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(70,50,30,0.05), 0 6px 18px rgba(90,60,30,0.07);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(120% 90% at 80% -10%, #FBEDE2 0%, #F7F0E5 45%, #F3EAD9 100%) fixed;
  background-color: var(--bg);
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* Menu bar. One rounded bar, centered on the page: the logo on the left, the page
   links centered, Play now on the right, everything centered on the bar's height. */
.site-header {
  max-width: 1160px;
  margin: 22px auto 0;
  padding: 0 16px;
  position: relative;
}
.menu-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  /* the logo picture starts 6px in from its edge, so Play now sits 32px from the right,
     the same as the dog from the left */
  padding: 10px 29px 10px 26px;
}
/* The bar's 16px gap after the logo plus the picture's transparent right edge would
   push the links toward Play now; this cancels it so they sit centered between. */
.site-header .brand { display: block; flex-shrink: 0; margin-right: -20px; }
.site-header img { display: block; width: 148px; height: auto; }

/* Links in a row on a wide screen, a "Menu" button on a narrow one */
.top-links { flex: 1; display: flex; align-items: center; gap: 2px; }
.top-links > a:first-child { margin-left: auto; }
.top-links .button-small { margin-left: auto; }
.top-links a:not(.button) {
  color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 17px;
  text-decoration: none; padding: 9px 11px; border-radius: 999px; line-height: 1; white-space: nowrap;
}
.top-links a:not(.button):hover { background: var(--accent-soft); color: var(--accent); }
.top-links a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.top-links .button-small {
  font-family: var(--font-display); font-size: 18px; line-height: 1;
  padding: 12px 22px; box-shadow: none;
}
/* "More": the pages that are not in the bar, in a small list under it */
.top-more { position: relative; }
.top-more summary {
  list-style: none; cursor: pointer; color: var(--navy); font-family: var(--font-display); font-weight: 700;
  font-size: 17px; line-height: 1; padding: 9px 11px; border-radius: 999px; white-space: nowrap;
}
.top-more summary::-webkit-details-marker { display: none; }
.top-more summary::after { content: " \25BE"; font-size: 14px; }
.top-more summary:hover, .top-more[open] summary, .top-more:has([aria-current]) summary { background: var(--accent-soft); color: var(--accent); }
.top-more nav {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 14px); z-index: 10;
  display: grid; gap: 2px; min-width: 240px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(70,50,30,0.16); padding: 10px;
}
.top-more nav a {
  color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 17px;
  text-decoration: none; padding: 10px 12px; border-radius: var(--radius); white-space: nowrap;
}
.top-more nav a:hover, .top-more nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.top-menu { display: none; }
.top-menu summary {
  list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--navy);
  border-radius: 999px; padding: 10px 16px; font-size: 18px; line-height: 1;
}
.top-menu summary:hover { background: var(--accent-soft); }
.top-menu summary::-webkit-details-marker { display: none; }
.top-menu summary::after { content: " \2630"; }
.top-menu[open] summary::after { content: " \2715"; }
.top-menu nav {
  position: absolute; right: 16px; top: calc(100% + 8px); z-index: 10;
  display: grid; gap: 2px; min-width: 250px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(70,50,30,0.16); padding: 10px;
}
.top-menu nav a:not(.button) {
  color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 18px;
  text-decoration: none; padding: 10px 12px; border-radius: var(--radius);
}
.top-menu nav a:not(.button):hover, .top-menu nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.top-menu nav .button { margin-top: 8px; text-align: center; font-family: var(--font-display); font-size: 18px; padding: 12px 20px; }
@media (max-width: 1080px) {
  .top-links { display: none; }
  .top-menu { display: block; margin-left: auto; }
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

h1, h2 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(34px, 7vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 4.5vw, 30px); font-weight: 700; margin-bottom: 18px; }

.lede {
  font-size: clamp(19px, 3.2vw, 22px);
  line-height: 1.45;
  color: var(--text);
  margin: 18px 0 28px;
  max-width: 40ch;
}

.cta { margin: 0 0 8px; }
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.button:hover, .button:focus-visible { background: var(--accent-hover); color: #fff; }
.button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.cta-note { color: var(--text-soft); font-size: 15px; margin: 12px 0 0; }

section { margin-top: 56px; }

.roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .roles { grid-template-columns: 1fr 1fr; }
}
.role {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
}
.role p { margin: 0; }
.role strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 21px;
  margin-bottom: 6px;
}

.note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.note p { margin: 0; }
.note p + p { margin-top: 12px; }

.closing { text-align: left; }

.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 15px;
}

/* "How our cases are built" */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px 12px 56px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.after-list { margin: 16px 0 0; font-weight: 600; }
section > p { margin: 0 0 14px; }
.more-link { font-weight: 700; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 8px;
}

/* "Our sources" */
.reveal summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.reveal summary::-webkit-details-marker { display: none; }
.reveal[open] summary { display: none; }
.reveal-note { font-weight: 600; }
.source-list h2 { margin-top: 36px; font-size: clamp(20px, 3.6vw, 24px); }
.source-list h2:first-child { margin-top: 8px; }
.sources {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.sources .meta { white-space: normal; }
.sources .meta a { font-size: 14px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #3E6448;
  background: #EAF1E7;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 4px;
}
.tag-quiet { color: var(--text-soft); background: transparent; padding: 0; font-weight: 600; }
.after-list-note { color: var(--text-soft); font-size: 15px; margin-top: 28px; }

/* Home */
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .points { grid-template-columns: repeat(3, 1fr); }
}
.points li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.patients p { margin: 0; }
.patient { display: flex; align-items: center; gap: 16px; }
.patient img { width: 96px; height: 96px; flex-shrink: 0; object-fit: contain; }
.home-note { font-size: 18px; }

/* About: Marc's story */
.story { margin-bottom: 32px; }
.story .signature { font-weight: 700; margin-top: 20px; }
.story .signature-role { display: block; font-weight: 400; color: var(--text-soft); margin-left: 1.15em; }

/* Team: one card per person */
.person .avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  margin-bottom: 16px;
}
.roles.team { margin-top: 28px; }
.person .avatar { width: 120px; height: 120px; }
.person img.avatar { display: block; object-fit: cover; }
/* Team: every card the same size (fr rows in an auto-height grid share the tallest
   height), the open seat centered under the two, pictures and names centered. */
.roles.team { grid-template-rows: 1fr 1fr auto 1fr; }
.team-more { margin: 16px 0 0; text-align: center; font-size: clamp(19px, 3.2vw, 22px); line-height: 1.45; color: var(--text); }
@media (min-width: 640px) {
  .roles.team { grid-template-rows: 1fr auto 1fr; }
  .team-more, .open-seat { grid-column: 1 / -1; }
  .open-seat { justify-self: center; width: calc((100% - 16px) / 2); box-sizing: border-box; }
}
.roles.team .person .avatar { margin-left: auto; margin-right: auto; }
.roles.team .person strong { text-align: center; }
.open-seat p { text-align: center; }
.open-seat .open-seat-link { margin-top: 14px; }
.open-seat .open-seat-link a { font-weight: 700; color: var(--accent); }
.person .avatar-open {
  background: transparent; border: 2px dashed var(--border); color: var(--text-soft);
  font-family: var(--font-sans); font-weight: 600; font-size: 14px; text-align: center; line-height: 1.3;
  padding: 0 18px;
}

/* Research */
.plain-list { padding-left: 20px; margin: 0; }
.plain-list li + li { margin-top: 10px; }
.refs { font-size: 15px; color: var(--text-soft); }

/* Developer's log */
.log-entry { margin-top: 40px; }
.log-entry h2 { margin-bottom: 12px; }

/* The pilot in numbers */
.as-of { color: var(--text-soft); font-size: 15px; margin-top: -8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .stats.four { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 4px;
}
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--navy); line-height: 1; }
.stat-label { color: var(--text-soft); font-size: 15px; }
.stats-note { margin-top: 12px; }

/* Footer: links to every page, contact, disclaimer, © */
.site-footer { margin-top: 64px; }
.site-footer p { margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-small { font-size: 13px; }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq-item p { margin: 10px 0 2px; }

/* Home: the game on a laptop and a phone */
.shots { margin: 36px 0 8px; }
.shots-frame { position: relative; padding-right: 9%; }
.shots img { display: block; height: auto; }
.shot-desktop { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(70,50,30,0.18); }
.shot-phone { position: absolute; right: 0; bottom: -6%; width: 22%; border-radius: 22px; border: 5px solid #2E2620; box-shadow: 0 12px 32px rgba(40,30,20,0.28); }
.shots figcaption { margin-top: 30px; text-align: center; color: var(--text-soft); font-size: 17px; }
.cta-below { text-align: center; margin-top: 22px; }
.cta-below .button { padding-left: 54px; padding-right: 54px; }
