/* AACSB prep — AAU Business School. Mobile-first. */

:root {
  color-scheme: light;
  --fog: color-mix(in srgb, #211a52 4%, white);
  --paper: #ffffff;
  --ink: #211a52;
  --muted: #54616e;
  --line: color-mix(in srgb, #211a52 15%, white);
  --indigo: #211a52;
  --indigo-ink: #17123d;
  --indigo-soft: color-mix(in srgb, #594fbf 16%, white);
  --mono: Arial, sans-serif;
  --shadow: 0 12px 28px rgba(33, 26, 82, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; background: var(--fog); color: var(--ink);
  font: 400 16.5px/1.55 'Barlow', Arial, sans-serif;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }

.wrap {
  width: min(100%, 680px); margin: auto;
  padding: clamp(32px, 8vw, 72px) 20px calc(178px + env(safe-area-inset-bottom));
}

/* ---------- header ---------- */
header {
  position: relative; isolation: isolate; min-height: 234px;
  margin: -12px -20px 34px; padding: 34px 20px 44px; overflow: hidden;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
header::after {
  content: ''; position: absolute; z-index: -1; top: -34px; right: -60px; bottom: -34px;
  width: min(70%, 400px);
  background: url('/assets/aau-wave.png') top right / cover no-repeat;
  opacity: .38; pointer-events: none;
  -webkit-mask-image: linear-gradient(248deg, #000 14%, transparent 66%);
          mask-image: linear-gradient(248deg, #000 14%, transparent 66%);
}

.eyebrow {
  margin: 0 0 12px; font: 600 11px/1.4 var(--mono); color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
}
.wordmark {
  display: flex; align-items: center; width: max-content; gap: 10px;
  margin: 0 0 28px; color: var(--indigo); font: 700 13px/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.wordmark::before {
  content: 'AAU'; display: grid; place-items: center; width: 43px; height: 26px;
  border-right: 2px solid currentColor; letter-spacing: .04em;
}
h1 {
  margin: 0; max-width: 11ch; font-size: clamp(38px, 10vw, 54px); font-weight: 700;
  line-height: 1.02; letter-spacing: -.035em; text-wrap: balance;
}
h1 .underlined {
  color: var(--indigo); text-decoration: underline;
  text-decoration-thickness: 3px; text-underline-offset: 7px;
}
.lede { max-width: 48ch; margin: 18px 0 0; color: var(--muted); text-wrap: pretty; }

/* ---------- track list ---------- */
.section-label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 0 0 10px;
}
h2 {
  margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.order-note { color: var(--muted); font-size: 13px; }
.tracks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.track {
  display: grid; grid-template-columns: 29px minmax(0, 1fr) 48px; gap: 12px;
  align-items: center; padding: 14px 12px 14px 15px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.track.playing { border-color: var(--indigo); box-shadow: 0 0 0 2px var(--indigo-soft); }
.track.completed { background: color-mix(in srgb, var(--paper) 94%, var(--indigo-soft)); }
.track-no { align-self: start; padding-top: 3px; font: 500 12px/1.4 var(--mono); color: var(--muted); }
.track-copy { min-width: 0; }
.track-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.012em; }
.track-desc { margin: 4px 0 0; max-width: 52ch; color: var(--muted); font-size: 14px; line-height: 1.42; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip {
  display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: 2px; color: var(--muted);
  font: 600 10px/1.2 var(--mono); letter-spacing: .025em; white-space: nowrap;
}
.chip.rehearsal, .chip.resume { background: var(--indigo-soft); border-color: transparent; color: var(--indigo); }
.chip.done { background: transparent; color: var(--muted); }
.play {
  width: 48px; height: 48px; border: 0; border-radius: 2px; background: var(--indigo);
  color: #fff; display: grid; place-items: center; cursor: pointer;
}
.play:hover { background: var(--indigo-ink); }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play .pause-bars { display: none; width: 14px; height: 16px; border-inline: 4px solid currentColor; }
.track.playing .play .play-triangle { display: none; }
.track.playing .play .pause-bars { display: block; }

/* ---------- reading links ---------- */
.reading { margin-top: 38px; }
.reading ul { list-style: none; padding: 0; margin: 9px 0 0; border-block: 1px solid var(--line); }
.reading a {
  width: 100%; min-height: 56px; display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 10px 2px; color: var(--ink); text-decoration: none; font-weight: 500;
}
.reading li + li a { border-top: 1px solid var(--line); }
.reading .hint { color: var(--muted); font-size: 13px; font-weight: 400; text-align: right; }
.arrow { color: var(--indigo); font-size: 20px; }
footer { margin-top: 34px; max-width: 58ch; color: var(--muted); font-size: 13px; }
footer a { color: inherit; }

/* ---------- sticky player ---------- */
.player {
  position: fixed; z-index: 2; left: 0; right: 0; bottom: 0;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-top: 3px solid var(--indigo); box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.player-inner { width: min(100%, 680px); margin: auto; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
.player-status { min-height: 17px; margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.3; }
.now { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 12px; align-items: center; }
.now-copy { min-width: 0; }
.now-label { margin: 0 0 1px; color: var(--muted); font: 500 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.now-title { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 600; }
.control { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); cursor: pointer; font: 600 11px/1 var(--mono); }
.control:hover { color: var(--indigo); border-color: var(--indigo); }
.control:disabled { cursor: not-allowed; opacity: .42; color: var(--muted); border-color: var(--line); }
.control.main { border: 0; border-radius: 2px; background: var(--indigo); color: #fff; display: grid; place-items: center; }
.control.main svg { width: 18px; height: 18px; fill: currentColor; }
.transport { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.transport .control { width: 100%; min-height: 44px; height: 44px; }
.seek-wrap { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; margin-top: 10px; font: 500 10px/1 var(--mono); color: var(--muted); }
.seek { --pos: 0%; width: 100%; height: 32px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.seek::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(to right, var(--indigo) var(--pos), var(--line) var(--pos)); }
.seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border: 3px solid var(--paper); border-radius: 50%; background: var(--indigo); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.seek::-moz-range-track { height: 5px; border-radius: 99px; background: var(--line); }
.seek::-moz-range-progress { height: 5px; border-radius: 99px; background: var(--indigo); }
.seek::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--paper); border-radius: 50%; background: var(--indigo); }

@media (min-width: 600px) {
  .player-inner { display: grid; grid-template-columns: minmax(0, 1fr) 1.1fr; column-gap: 24px; align-items: center; }
  .transport { margin-top: 0; }
  .seek-wrap { grid-column: 1 / -1; }
  .player-status { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .wrap { padding-inline: 16px; }
  .track { grid-template-columns: 25px minmax(0, 1fr) 46px; gap: 9px; padding-inline: 11px; }
  .play { width: 46px; height: 46px; }
  .reading a { grid-template-columns: minmax(0, 1fr) auto; }
  .reading .hint { display: none; }
}

/* ---------- article pages (cheat sheet / questions / eval) ---------- */
.article { position: relative; width: min(100%, 680px); margin: auto; padding: clamp(28px, 7vw, 56px) 20px 96px; line-height: 1.62; }
.article::before {
  content: ''; position: absolute; z-index: -1; top: -10px; right: -30px;
  width: min(52%, 300px); height: 360px;
  background: url('/assets/aau-wave.png') top right / cover no-repeat;
  opacity: .14; pointer-events: none;
  -webkit-mask-image: linear-gradient(232deg, #000, transparent 70%);
          mask-image: linear-gradient(232deg, #000, transparent 70%);
}
.backlink { display: inline-block; margin-bottom: 22px; color: var(--indigo); font-size: 14px; font-weight: 500; text-decoration: none; }
.backlink:hover { text-decoration: underline; }
.article h1 { max-width: none; font-size: clamp(28px, 7vw, 40px); margin: 6px 0 4px; }
.article h2 {
  margin: 34px 0 10px; font: 600 19px/1.2 'Barlow', Arial, sans-serif;
  letter-spacing: -.015em; text-transform: none; color: var(--ink);
}
.article p { margin: 0 0 14px; }
.article .note { color: var(--muted); font-size: 14px; }
.article blockquote {
  margin: 18px 0; padding: 14px 16px; background: var(--indigo-soft);
  border-left: 3px solid var(--indigo); border-radius: 0 4px 4px 0; font-weight: 600;
}
.article ol, .article ul { padding-left: 20px; margin: 0 0 14px; }
.article li { margin-bottom: 9px; }
.article li p { margin: 3px 0 0; }
.article footer { margin-top: 40px; }

/* strategy matrix: stacked cards on phones, three columns on wider screens */
.matrix { display: grid; gap: 12px; margin: 6px 0 20px; }
.matrix-col { padding: 15px 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.matrix-head { margin: 0 0 9px; font: 600 15.5px/1.25 'Barlow', Arial, sans-serif; letter-spacing: -.01em; color: var(--indigo); }
.matrix-col ul { margin: 0; padding-left: 18px; }
.matrix-col li { margin-bottom: 5px; }
.matrix-col li:last-child { margin-bottom: 0; }
@media (min-width: 660px) { .matrix { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

/* definition list for faculty categories: term + description stacked */
.deflist { margin: 8px 0 16px; }
.deflist dt { margin-top: 15px; font-weight: 600; }
.deflist dt:first-of-type { margin-top: 0; }
.deflist dd { margin: 4px 0 0; color: var(--muted); }
.tag {
  display: inline-block; min-width: 30px; margin-right: 7px; padding: 1px 7px;
  border-radius: 3px; background: var(--indigo); color: #fff;
  font: 600 12px/1.6 var(--mono); text-align: center;
}

/* ---------- login gate ---------- */
.gate { position: relative; overflow: hidden; min-height: 100svh; display: grid; place-items: center; padding: 20px; }
.gate::before {
  content: ''; position: absolute; z-index: 0; right: -8%; bottom: -8%;
  width: min(80%, 500px); height: 72%;
  background: url('/assets/aau-wave.png') bottom right / cover no-repeat;
  opacity: .28; pointer-events: none;
  -webkit-mask-image: linear-gradient(302deg, #000, transparent 62%);
          mask-image: linear-gradient(302deg, #000, transparent 62%);
}
.gate-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 360px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; padding: 30px 28px; box-shadow: var(--shadow);
}
.gate-card .wordmark { margin-bottom: 22px; }
.gate-card h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; max-width: none; }
.gate-card p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.gate-card label {
  display: block; margin-bottom: 7px; font: 600 11px/1.4 var(--mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.gate-card input {
  width: 100%; padding: 12px; margin-bottom: 16px; border: 1.5px solid var(--line);
  border-radius: 4px; background: var(--fog); color: var(--ink);
  font: 500 20px/1 var(--mono); letter-spacing: .3em; text-align: center;
}
.gate-card input:focus { outline: none; border-color: var(--indigo); }
.gate-card button {
  width: 100%; min-height: 48px; border: 0; border-radius: 2px;
  background: var(--indigo); color: #fff; font-weight: 600; cursor: pointer;
}
.gate-card button:hover { background: var(--indigo-ink); }
.gate-error { display: none; margin: 0 0 16px; color: #c0392b; font-size: 14px; }
.gate-error.show { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
