/* Syllabus MD site: a campus noticeboard. Deep chalkboard green, chalk white,
   one highlighter yellow. Fraunces for headlines, Figtree for text. */
:root {
  --board: #16332d;
  --board-2: #0f2621;
  --chalk: #f2f5f0;
  --chalk-dim: #b9c9c1;
  --hl: #ffd94a;
  --mint: #8fd3c4;
  --paper: #f6f7f4;
  --white: #ffffff;
  --ink: #14201c;
  --muted: #53635c;
  --line: #d6ddd5;
  --display: "Fraunces", "Iowan Old Style", Charter, Georgia, serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.62 var(--text); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--hl); outline-offset: 3px; border-radius: 3px; }
.band :focus-visible, .hero :focus-visible, .foot :focus-visible, .top :focus-visible { outline-color: var(--hl); }
section :focus-visible { outline-color: #1b6b5b; }
.hero :focus-visible, .foot :focus-visible, .top :focus-visible, .board :focus-visible { outline-color: var(--hl); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--hl); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Top bar */
.top { background: var(--board-2); color: var(--chalk); position: relative; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.wordmark { font: 600 1.05rem/1 var(--mono); text-decoration: none; letter-spacing: -.01em; }
.wordmark::before { content: "▍"; color: var(--hl); margin-right: .15em; }
.nav { list-style: none; display: flex; gap: 6px 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--chalk-dim); padding: 0 4px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--chalk); text-decoration: underline; }

/* Hero */
.hero { background:
  linear-gradient(180deg, rgba(0,0,0,.18), transparent 30%),
  repeating-linear-gradient(0deg, transparent 0 47px, rgba(242,245,240,.05) 47px 48px),
  var(--board); color: var(--chalk); padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow { font: 500 .82rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.3vw, 4.6rem); font-variation-settings: "opsz" 144; text-wrap: balance; }
h1 mark { background: linear-gradient(transparent 58%, var(--hl) 58% 92%, transparent 92%); color: inherit; padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--chalk-dim); max-width: 34em; margin: 22px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--hl); color: var(--ink); font-weight: 700; padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 2px solid var(--hl); transition: background-color .15s ease, transform .1s ease; }
.btn:hover { background: #ffe57a; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-quiet { background: transparent; color: var(--chalk); border-color: rgba(242,245,240,.45); }
.btn-quiet:hover { background: rgba(242,245,240,.1); }
.one-liner { margin: 26px 0 0; }
.one-liner code { display: inline-block; max-width: 100%; font: 500 .95rem/1.5 var(--mono); background: rgba(0,0,0,.28); color: var(--chalk); padding: 10px 14px; border-radius: 8px; overflow-wrap: anywhere; }

.fan { position: relative; height: clamp(360px, 46vw, 620px); }
.fan a { position: absolute; width: 47%; display: block; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 30px 60px rgba(0,0,0,.45); transition: transform .25s ease; }
.fan a:hover { transform: translateY(-8px) rotate(0deg) !important; z-index: 6; }
.fan img { border-radius: 3px; width: 100%; }
.fan .p1 { left: 0; top: 9%; transform: rotate(-7deg); z-index: 1; }
.fan .p2 { left: 25%; top: 0; transform: rotate(0deg); z-index: 3; }
.fan .p3 { left: 53%; top: 10%; transform: rotate(6deg); z-index: 2; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); text-wrap: balance; }
.section-lede { font-size: 1.12rem; color: var(--muted); max-width: 40em; margin: 14px 0 0; }
.kicker { font: 500 .8rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #1b6b5b; margin: 0 0 12px; }
.band { background: var(--white); border-block: 1px solid var(--line); }

/* How it works */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 28px; position: relative; }
.steps li::before { content: counter(s); font: 600 3.4rem/1 var(--display); color: var(--hl); -webkit-text-stroke: 1.5px var(--board); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.4rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.steps code { font: 500 .88em var(--mono); background: #eef2ee; padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.preview-win { margin-top: 36px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #d9d9d6; box-shadow: 0 20px 50px rgba(15,38,33,.12); }
.preview-win .bar { display: flex; gap: 7px; padding: 11px 14px; background: var(--board-2); }
.preview-win .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3d5a52; display: block; }
.preview-win .crop { max-height: 560px; overflow: hidden; }
.preview-win img { width: 100%; }
.preview-win figcaption { padding: 12px 16px; font-size: .92rem; color: var(--muted); background: var(--white); border-top: 1px solid var(--line); }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.themes figure { margin: 0; }
.themes a { display: block; border-radius: 4px; box-shadow: 0 1px 3px rgba(15,38,33,.2), 0 14px 30px rgba(15,38,33,.14); transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; background: var(--white); }
.themes a:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(15,38,33,.2), 0 22px 40px rgba(15,38,33,.2); }
.themes figcaption { margin-top: 16px; font-size: .95rem; line-height: 1.4; color: var(--muted); }
.themes figcaption b { display: block; font: 600 1.15rem/1.2 var(--display); color: var(--ink); margin-bottom: 4px; }
.themes figcaption code { font: 500 .8rem var(--mono); color: #1b6b5b; }

/* Features: schedule shot + ics */
.features { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.features .shot { border-radius: 4px; box-shadow: 0 2px 4px rgba(15,38,33,.2), 0 30px 60px rgba(15,38,33,.2); display: block; }
.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.facts li { padding-inline-start: 34px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 4px; background: var(--hl); box-shadow: 3px 3px 0 var(--board); }
.facts b { font-weight: 700; }
pre { margin: 0; background: var(--board-2); color: var(--chalk); border-radius: 12px; padding: 18px 20px; font: 500 .88rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
pre .c { color: var(--mint); }
.ics { margin-top: 26px; }
.ics-label { font: 500 .78rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* Install */
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.install > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.install h3 { font-size: 1.25rem; margin-bottom: 14px; }
.note { margin: 24px 0 0; color: var(--muted); }

/* Examples */
.ex { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.ex li { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr); gap: 8px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ex .t { font: 600 1.3rem/1.2 var(--display); }
.ex .t span { display: block; font: 500 .9rem/1.4 var(--text); color: var(--muted); margin-top: 3px; }
.ex .chip { font: 500 .78rem/1 var(--mono); border: 1.5px solid var(--board); border-radius: 99px; padding: 6px 12px; justify-self: start; }
.ex .links { display: flex; gap: 4px 20px; flex-wrap: wrap; font-weight: 600; }
.ex .links a, .more-skills a { display: inline-flex; align-items: center; min-height: 44px; }
.ex .links a:hover, .more-skills a:hover { text-decoration-thickness: .16em; }
.ex .links a:active, .more-skills a:active { opacity: .75; }

/* Footer */
.foot { background: var(--board-2); color: var(--chalk-dim); padding: 52px 0 60px; }
.foot-row { display: grid; gap: 14px; }
.foot .wordmark { color: var(--chalk); }
.foot p { margin: 0; }
.foot a { color: var(--chalk); }
.more-skills { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 4px 0 0; padding: 0; }
.more-skills a { font: 500 .95rem var(--mono); }

/* 404 */
.lost { background: var(--board); color: var(--chalk); padding: clamp(60px, 10vw, 140px) 0; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.lost .wrap { width: min(100% - 40px, var(--wrap)); }
.lost .lede { margin-bottom: 0; }

@media (max-width: 1060px) {
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .install { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .hero-grid, .features { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .fan { height: clamp(300px, 78vw, 520px); margin-top: 8px; }
  .ex li { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 4px 16px; }
}
@media (max-width: 480px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .fan a { width: 50%; }
  .fan .p2 { left: 25%; }
  .fan .p3 { left: 50%; }
  .btn { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fan a, .themes a, .btn { transition: none; }
  .fan a:hover, .themes a:hover, .btn:active { transform: none !important; }
}
