/* Kurig Group website styles */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #12161C;
  --muted: #3F4954;
  --line: #E3E7EA;
  --line-strong: #C9D0D6;
  --dash: #A9B3BC;
  --soft: #F2F5F6;
  --accent: #0B6E78;
  --accent-dark: #074A51;
  --accent-on-dark: #6FD3DC;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #FFFFFF; line-height: 1.5; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
[id] { scroll-margin-top: 96px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.label { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; min-height: 44px; color: var(--ink); }
.logo { height: 40px; width: 159px; display: block; }
.logo-wave { stroke: var(--accent); }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 28px; font-size: 15px; }
.main-nav li { position: relative; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; }
.main-nav > ul > li > a[aria-current="page"] { border-bottom-color: var(--accent); }
.main-nav > ul > li > a:hover { color: var(--accent); }
.has-sub { display: flex; align-items: center; }
.sub-toggle { width: 24px; height: 44px; padding: 0; margin-left: 2px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.sub-toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -12px; min-width: 230px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(18, 22, 28, 0.10); display: none; }
.sub a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; }
.sub a:hover { background: var(--soft); color: var(--ink); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }

.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: #FFFFFF; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
  .main-nav > ul > li { border-top: 1px solid var(--line); }
  .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .sub-toggle { width: 44px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .sub { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
}

/* Page sections */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 96px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; max-width: 880px; }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 760px; }
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head-inner { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; max-width: 900px; }
.page-head .lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 820px; }
.wave { display: block; width: 100%; height: 72px; }
.wave path { stroke: var(--accent); }

.section { padding-top: 88px; padding-bottom: 88px; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #FFFFFF; }
.section-dark .eyebrow, .section-dark a { color: var(--accent-on-dark); }
.section-dark .muted { color: var(--line-strong); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.section-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.015em; }
.sub-title { font-size: 32px; line-height: 1.2; }
.row-between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 8px; font-weight: 500; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn:hover { background: var(--soft); color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }
.btn-light { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink) !important; }
.btn-light:hover { background: var(--soft); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.card-wide { flex-basis: 320px; padding: 32px; }
.card .num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.card h3 { font-size: 21px; }
.card-wide h2 { font-size: 26px; line-height: 1.2; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.card-wide p { font-size: 17px; line-height: 1.65; }
.card-soft { background: var(--soft); }
.card-dashed { border-style: dashed; border-color: var(--dash); }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 24px 28px; background: var(--soft); border-radius: 12px; }
.callout p { flex: 1 1 420px; font-size: 16px; line-height: 1.6; }
.band { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding: 36px 32px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.band > div:first-child { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.band > div:last-child { flex: 2 1 520px; display: flex; flex-direction: column; gap: 12px; }
.band h2 { font-size: 26px; line-height: 1.2; }
.band p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.band p.strong { color: var(--ink); }
.band svg path { stroke: var(--accent); }
.project { flex: 1 1 440px; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 12px; background: var(--ink); color: #FFFFFF; }
.project .eyebrow { color: var(--accent-on-dark); font-size: 13px; }
.project h3 { font-size: 28px; }
.project p { color: var(--line-strong); line-height: 1.6; }
.project ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.project a { color: var(--accent-on-dark); font-weight: 500; }

/* Lists and timelines */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.list > li, .list > div { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.list .date { flex: 0 0 120px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.list .text { flex: 1 1 480px; font-size: 17px; line-height: 1.5; }
.timeline { display: flex; flex-direction: column; }
.timeline .row { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline .row:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { flex: 0 0 120px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.timeline .what { flex: 1 1 320px; font-size: 16px; line-height: 1.5; }
.bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; }

/* Team */
.person { display: flex; flex-wrap: wrap; gap: 56px; }
.person-aside { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.person-main { flex: 2 1 520px; display: flex; flex-direction: column; gap: 36px; }
.portrait { width: 100%; height: auto; border-radius: 12px; background: var(--line); }
.portrait-placeholder { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; }
.portrait-placeholder svg { width: 55%; color: var(--dash); }
.person-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; }
.person-role { font-size: 18px; font-weight: 500; color: var(--accent); }
.person-bio { font-size: 18px; line-height: 1.6; color: var(--muted); }
.two-col { display: flex; flex-wrap: wrap; gap: 32px; }
.two-col > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.member { flex: 1 1 220px; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.member .name { font-size: 18px; font-weight: 600; }
.join-card { flex: 1 1 220px; max-width: 320px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px; border-radius: 12px; background: var(--ink); color: #FFFFFF !important; text-decoration: none; min-height: 200px; }
.join-card .eyebrow { color: var(--accent-on-dark); font-size: 13px; }
.join-card strong { font-size: 22px; line-height: 1.25; }
.join-card span:last-child { color: var(--line-strong); font-size: 15px; }
.join-card:hover { background: #1F2630; }

/* Publications */
.year-group { display: flex; flex-wrap: wrap; gap: 12px 48px; }
.year-group h3 { flex: 0 0 100px; font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--accent); }
.pubs { list-style: none; margin: 0; padding: 0; flex: 1 1 600px; border-top: 1px solid var(--line); }
.pubs li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.pub-title { font-size: 17px; font-weight: 600; line-height: 1.4; }
.pub-title a { color: var(--ink); text-decoration: none; }
.pub-title a:hover { color: var(--accent); text-decoration: underline; }
.pub-meta { font-size: 15px; color: var(--muted); }
.pub-meta strong { color: var(--ink); }

/* Links page */
.link-section { display: flex; flex-wrap: wrap; gap: 16px 48px; padding-top: 48px; }
.link-section h2 { flex: 1 1 240px; font-size: 32px; line-height: 1.2; }
.link-list { list-style: none; margin: 0; padding: 0; flex: 3 1 600px; border-top: 1px solid var(--line); }
.link-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.link-list a { font-size: 17px; font-weight: 500; }
.link-list span { font-size: 15px; color: var(--muted); }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-grid > div { flex: 1 1 340px; display: flex; flex-direction: column; gap: 32px; }
.contact-block { display: flex; flex-direction: column; gap: 8px; font-size: 18px; line-height: 1.6; }

/* Legal pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 24px; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 20px; }
.draft-note { padding: 16px 20px; border-radius: 10px; border: 1px dashed var(--accent); background: #EEF7F8; font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; font-size: 15px; line-height: 1.6; }
.footer-cols > * { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.footer-cols nav a { color: var(--muted); text-decoration: none; }
.footer-cols nav a:hover { color: var(--accent); }
.footer-title { font-weight: 600; margin-bottom: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 640px) {
  .hero-inner { padding-top: 56px; }
  .page-head-inner { padding-top: 48px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero .lead { font-size: 18px; }
}
