/* akram.education site styles
   Layout: one narrow reading column, a quiet top bar, material listed as rows (course code | title | file type). */
:root {
  --paper: #f6f8f7;
  --surface: #ffffff;
  --ink: #142321;
  --muted: #5b6b68;
  --rule: #d6dfdc;
  --accent: #2c7873;
  --accent-soft: #e3efed;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1716; --surface: #152120; --ink: #e6eeec; --muted: #93a5a1;
    --rule: #263533; --accent: #6fbdb5; --accent-soft: #18302d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1716; --surface: #152120; --ink: #e6eeec; --muted: #93a5a1;
  --rule: #263533; --accent: #6fbdb5; --accent-soft: #18302d; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.wrap { max-width: 52rem; margin: 0 auto; padding-inline: 1.25rem; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Top bar */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: 0; white-space: nowrap; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.brand svg { width: 28px; height: 20px; flex: none; margin-right: .6rem; }
.brand span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-family: var(--display); font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; max-width: 65ch; }
.lede { font-size: 1.2rem; color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mono { font-family: var(--mono); font-size: .85em; }

main { display: grid; gap: 3.5rem; padding-block: 3rem 4rem; }
section { display: grid; gap: 1.25rem; }
.stack { display: grid; gap: .75rem; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.hero .stack { gap: 1rem; }
.hero svg { width: 180px; height: auto; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; } .hero svg { width: 140px; } }

/* Cards (courses, featured talk) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1.25rem; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.card p { font-size: .97rem; color: var(--muted); }
.card .meta { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.card .tag { justify-self: start; }
.card a.more { font-family: var(--display); font-size: .95rem; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* Material rows */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: .25rem 1rem; align-items: baseline; padding-block: .8rem; border-bottom: 1px solid var(--rule); }
.row .code { font-family: var(--mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .title { min-width: 0; }
.row .title a { color: var(--ink); text-decoration: none; }
.row .title a:hover { color: var(--accent); text-decoration: underline; }
.row .note { display: block; font-size: .9rem; color: var(--muted); }
.files { display: flex; gap: .35rem; }
.tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; padding: .1rem .45rem; border-radius: 3px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tag.soon { background: transparent; border: 1px dashed var(--rule); color: var(--muted); }
@media (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row .code { grid-column: 1 / -1; }
}

/* Notice */
.notice { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 1rem 1.25rem; border-radius: 0 4px 4px 0; font-size: .97rem; }
.notice p + p { margin-top: .5rem; }

/* Two-column facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem 2rem; }
.facts div { display: grid; gap: .15rem; }
.facts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }

footer { border-top: 1px solid var(--rule); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.5rem; font-size: .9rem; color: var(--muted); }
footer a { color: var(--muted); }


@media (prefers-reduced-motion: no-preference) {
  .hero svg path.payoff { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s ease-out .2s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* FGCU marks: only on FGCU material (course cards and pages, FGCU talks, the FGCU bio). The site palette stays teal. */
:root { --fgcu-blue: #004785; --fgcu-green: #00794c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fgcu-blue: #8bb8e6; --fgcu-green: #5fc79b; } }
:root[data-theme="dark"] { --fgcu-blue: #8bb8e6; --fgcu-green: #5fc79b; }
.fgcu { display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fgcu-blue); }
.fgcu b { color: var(--fgcu-green); font-weight: 500; }

/* Whole-card links */
a.card { color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); }
a.card:hover .more { text-decoration: underline; }
a.card .more { font-family: var(--display); font-size: .95rem; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { a.card:hover { transform: translateY(-2px); } }
.status { justify-self: start; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; padding: .1rem .45rem; border-radius: 3px; }
.status.now { background: var(--accent-soft); color: var(--accent); }
.status.past { border: 1px solid var(--rule); color: var(--muted); }

/* Topic list */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .4rem 2rem; margin: 0; padding: 0; list-style: none; }
.topics li { padding-left: 1.1rem; position: relative; }
.topics li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: 2px; background: var(--accent); }
.disclaimer { font-size: .85rem; }
.fgcu::before, .fgcu-badge::before { content: ""; flex: none; width: 1.1rem; height: 4px; border-radius: 1px; background: linear-gradient(90deg, var(--fgcu-blue) 0 50%, var(--fgcu-green) 50% 100%); }
.fgcu-badge { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; color: var(--fgcu-blue); white-space: nowrap; }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }

/* Courses dropdown: opens on hover (pointer devices) or keyboard focus; on touch, "Courses" goes to courses.html */
.top { position: relative; z-index: 10; }
.has-menu { position: relative; }
.caret { font-size: .7em; margin-left: .3rem; }
.menu { display: none; position: absolute; top: calc(100% + .6rem); right: -.75rem; width: 28rem; max-width: calc(100vw - 2rem);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: .4rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / .10); }
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.7rem; height: .7rem; } /* hover bridge */
.menu a { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) auto auto; align-items: baseline; gap: .75rem;
  padding: .55rem .6rem; border-radius: 4px; color: var(--ink); text-decoration: none; }
.menu a:hover, .menu a:focus-visible { background: var(--accent-soft); outline: none; }
.m-code, .m-term { font-family: var(--mono); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.m-title { font-family: var(--display); font-size: .95rem; min-width: 0; }
.menu .status { align-self: center; }
.menu a.menu-all { display: block; border-top: 1px solid var(--rule); border-radius: 0 0 4px 4px; margin-top: .3rem; padding-top: .6rem; font-family: var(--display); font-size: .9rem; color: var(--accent); }
@media (hover: hover) and (min-width: 641px) {
  .has-menu:hover .menu, .has-menu:focus-within .menu { display: grid; }
}
a.tag { text-decoration: none; }
a.tag:hover, a.tag:focus-visible { background: var(--accent); color: var(--surface); }
