/* Alumnitor site styles. One stylesheet for every page. */

:root {
  --paper: #f5f7f9;
  --white: #ffffff;
  --ink: #0b2545;
  --text: #1f2d3d;
  --muted: #4c5b6d;
  --blue: #0b6ba8;
  --rule: #d5dce4;
  --field: #8d9bad;
  --marigold: #f2b705;
  --target: #fff5cc;
  --board-text: #e8eff7;
  --board-rule: rgba(255, 255, 255, 0.16);

  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 3px; z-index: 50;
}
.skip:focus { top: 12px; color: #fff; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.25rem, 4.8vw, 3.6rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.25rem); line-height: 1.18; font-weight: 600; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 1.15rem; color: var(--text); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 28px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.nav { display: flex; gap: 6px 26px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--marigold); }

/* Buttons */
.btn {
  display: inline-block;
  font: 600 0.95rem/1.2 var(--sans);
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #14396b; color: #fff; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.link-quiet { font-weight: 600; color: var(--blue); text-underline-offset: 3px; }
.btn-row { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; margin-top: 28px; }

/* Hero */
.hero { padding: clamp(44px, 7vw, 88px) 0 clamp(52px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 52ch; }

.board { background: var(--ink); color: var(--board-text); border-radius: 4px; padding: 26px 28px 14px; }
.board h2 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.board .note { color: #b9c8da; font-size: 0.9rem; margin-bottom: 14px; }
.board ul { list-style: none; margin: 0; padding: 0; }
.board li a {
  display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); gap: 14px;
  padding: 10px 0; border-top: 1px solid var(--board-rule);
  text-decoration: none; color: var(--board-text); font-size: 0.97rem; line-height: 1.35;
}
.board li a b { color: var(--marigold); font-weight: 600; }
.board li a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.board li a:focus-visible { outline-color: var(--marigold); }

/* Sections */
section { padding: clamp(52px, 7vw, 92px) 0; }
.band { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.08rem; }
[id] { scroll-margin-top: 92px; }

/* Product groups */
.group { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 8px 40px; padding: 26px 0 30px; border-top: 2px solid var(--ink); }
.group dl { margin: 0; }
.module { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4px 28px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.module:last-child { border-bottom: 0; }
.module dt { font-weight: 600; color: var(--ink); }
.module dd { margin: 0; color: var(--text); }
.module:target { background: var(--target); box-shadow: -12px 0 0 var(--target), 12px 0 0 var(--target); }
.group h3 { padding-top: 14px; }

/* CampusKul */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.points { margin: 0 0 1.2em; padding-left: 1.2em; max-width: 56ch; }
.points li { margin-bottom: 0.7em; padding-left: 0.2em; }
.points li::marker { color: var(--marigold); }
.points b { color: var(--ink); }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 8px 16px; padding: 20px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--blue); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

/* Programs and about */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.pair h3 { margin-bottom: 8px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; font-weight: 500; color: var(--ink); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.93rem; font-weight: 600; color: var(--ink); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  width: 100%; padding: 11px 12px;
  background: var(--white); border: 1px solid var(--field); border-radius: 3px;
}
input, select { line-height: 1.4; }
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b2545' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.msg { display: none; padding: 12px 14px; border-radius: 3px; margin-top: 20px; border: 1px solid; font-size: 0.97rem; max-width: none; }
.msg.ok { display: block; background: #e8f5ec; border-color: #7fb892; color: #14452a; }
.msg.err { display: block; background: #fdeceb; border-color: #d98b86; color: #7a1d17; }
.details { margin: 0; }
.details div { padding: 14px 0; border-top: 1px solid var(--rule); }
.details div:last-child { border-bottom: 1px solid var(--rule); }
.details dt { font-size: 0.9rem; color: var(--muted); margin-bottom: 2px; }
.details dd { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.details a { color: var(--ink); text-underline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--white); padding: 40px 0 28px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer p { color: var(--muted); max-width: 40ch; }
.legal-line { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; }

/* Policy pages */
.policy { padding: clamp(36px, 6vw, 72px) 0; }
.policy .wrap { max-width: 800px; }
.policy h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.policy h2 { font-size: 1.2rem; margin: 2em 0 0.5em; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: 0.4em; }
.back { display: inline-block; margin-bottom: 20px; font-size: 0.95rem; }

/* Narrow screens */
@media (max-width: 900px) {
  .hero-grid, .split, .two-col, .contact-grid, .pair, .foot-grid { grid-template-columns: 1fr; }
  .group { grid-template-columns: 1fr; }
  .module { grid-template-columns: 1fr; }
  .split figure { order: -1; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .board { padding: 22px 18px 10px; }
  .board li a { grid-template-columns: 6.6rem minmax(0, 1fr); }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

.callout { margin-top: 1.5em; padding: 14px 18px; background: var(--white); border-left: 4px solid var(--marigold); }

@media (max-width: 560px) { .site-header { position: static; } }
