/* Cog-Fun US — shared styles */

:root {
  --ink: #1d2a2b;
  --muted: #56605f;
  --brand: #285e5a;
  --brand-deep: #1f4a47;
  --accent: #a9d6bf;
  --accent-soft: #e1f0e8;
  --wash: #e8f0ed;
  --paper: #f9f8f4;
  --surface: #ffffff;
  --line: #e5e2d8;
  --line-soft: #efeee6;
  --maxw: 66rem;
  --readw: 40rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1.1em; max-width: var(--readw); }

a { color: var(--brand); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--brand-deep); color: #fff; padding: 0.6rem 1rem;
}
.skip:focus { left: 0; z-index: 20; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--brand-deep);
  background: rgba(31, 74, 71, 0.97);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem 1.6rem; padding-top: 0.7rem; padding-bottom: 1.1rem;
}
.brand {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem; font-weight: 600; color: #fff;
  text-decoration: none;
}
.brand-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand span { color: var(--accent); }
.header-aota { display: block; width: 11rem; height: 3.6rem; object-fit: contain; }
.header-logo { display: block; line-height: 0; }
.header-logo img { display: block; width: 15rem; height: 5.3rem; object-fit: contain; object-position: left center; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.nav a {
  color: #dce9e5; text-decoration: none; font-size: 0.98rem;
  padding: 0.15rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }

/* Sections */
main { padding: 3.2rem 0 1rem; }
.section { padding: 2.4rem 0; border-top: 1px solid var(--line-soft); }
.section:first-of-type { border-top: none; padding-top: 0; }

.hero {
  margin-top: 0.4rem;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.3rem, 4vw, 3rem) clamp(2rem, 4vw, 3.1rem);
  border-left: 5px solid var(--accent);
  background: var(--wash);
}
.hero-copy { min-width: 0; }
.eyebrow, .note-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow { margin-bottom: 1.2rem; }
.hero h1 { max-width: 16ch; font-size: clamp(2.5rem, 1.8rem + 3.4vw, 4.4rem); }
.lead { font-size: 1.22rem; color: var(--muted); max-width: var(--readw); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.7rem; }
.text-link { font-weight: 500; text-underline-offset: 5px; }
.text-link span { display: inline-block; margin-left: 0.25rem; transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(3px); }
.hero-note {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--brand-deep);
  color: #f7f5ed;
  border-radius: 2px;
  padding: 1.4rem;
  min-height: 17rem;
  box-shadow: 10px 10px 0 var(--accent-soft);
}
.hero-note .note-label { color: var(--accent); margin: 0 0 1rem; }
.hero-note ul { list-style: none; padding: 0; margin: 0; }
.hero-note li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; border-top: 1px solid rgba(255,255,255,0.2); padding: 0.75rem 0 0.15rem; font-size: 0.96rem; line-height: 1.35; }
.hero-note li + li { margin-top: 0.45rem; }
.hero-note li span { color: var(--accent); font-size: 0.78rem; font-weight: 600; padding-top: 0.08rem; }

/* Pathways (home) */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; }
.path { border-top: 3px solid var(--brand); padding-top: 1rem; }
.path h3 { color: var(--brand-deep); margin-bottom: 0.3rem; }
.path p { color: var(--muted); }
.path .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; margin-top: 0.2rem; }
.path .links a { font-weight: 500; }

/* Partner logos */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
  max-width: 54rem;
}
.partner-logos img {
  display: block;
  width: 100%;
  height: 7rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Notice block (course status, coming soon) */
.notice {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 4px 4px 0;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.4rem;
  max-width: var(--readw);
}
.notice p { margin-bottom: 0.4rem; }
.notice p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  color: var(--brand-deep); background: #e7efec;
  padding: 0.15rem 0.6rem; border-radius: 999px; margin-bottom: 0.7rem;
}

/* FAQ */
.qa { max-width: var(--readw); }
.qa .item { padding: 1.2rem 0; border-top: 1px solid var(--line-soft); }
.qa .item:first-child { border-top: none; }
.qa h3 { margin-bottom: 0.35em; }
.qa p { color: var(--muted); margin-bottom: 0; }
.subhead { color: var(--muted); font-size: 0.95rem; margin: 2rem 0 0.2rem; }

/* References */
.refs { max-width: var(--readw); margin: 0; padding: 0; list-style: none; }
.refs li {
  padding: 0.95rem 0; border-top: 1px solid var(--line-soft);
  font-size: 0.98rem; line-height: 1.5;
}
.refs li:first-child { border-top: none; }
.refs .authors { color: var(--ink); }
.refs .title { color: var(--brand-deep); font-style: italic; }
.refs .venue { color: var(--muted); }
.refs .doi { display: inline-block; margin-top: 0.2rem; font-size: 0.92rem; }
.refs-secondary li { font-size: 0.92rem; color: var(--muted); }

/* Form */
.form { max-width: var(--readw); }
.field { margin-bottom: 1.3rem; }
.field > label { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(40,94,90,0.15); }
fieldset { border: 1px solid var(--line); border-radius: 4px; padding: 0.9rem 1rem 1.1rem; margin: 0 0 1.3rem; }
legend { font-weight: 500; padding: 0 0.4rem; }
.radio { display: flex; align-items: center; gap: 0.55rem; margin: 0.5rem 0; font-weight: 400; }
.radio input { width: 1.05rem; height: 1.05rem; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; }

.btn {
  display: inline-block; font: inherit; font-weight: 500; cursor: pointer;
  background: var(--brand); color: #fff; border: 1px solid var(--brand-deep);
  padding: 0.7rem 1.4rem; border-radius: 4px; text-decoration: none;
  box-shadow: 4px 4px 0 rgba(54, 117, 88, 0.28);
}
.btn:hover { background: var(--brand-deep); color: #fff; }

/* Footer */
.site-footer {
  margin-top: 3rem; border-top: 1px solid var(--line);
  background: var(--paper); color: var(--muted); font-size: 0.92rem;
}
.site-footer .wrap { padding-top: 1.6rem; padding-bottom: 2rem; }
.site-footer p { max-width: 46rem; margin: 0 0 0.5rem; }
.site-footer .foot-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin-bottom: 0.7rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero { display: block; padding: 1.8rem 1.1rem 1.8rem 1.2rem; }
  .hero h1 { max-width: 14ch; }
  .hero-note { margin: 2.3rem 0 0.5rem; min-height: auto; box-shadow: 6px 6px 0 var(--accent-soft); }
  .paths { grid-template-columns: 1fr; gap: 1.6rem; }
  .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-row { align-items: flex-start; }
  .header-aota { width: 8rem; height: 2.8rem; }
  .header-logo img { width: 12rem; height: 4.3rem; }
  main { padding-top: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
