/* Aman Ghormade — Instructional Design Portfolio
   Plain CSS, no build step. Colours are tokens so the whole site can be re-themed here.
   Look: editorial "paper and ink" with a highlighter accent. */

:root {
  --bg: #f6f3ee;
  --surface: #fffdf9;
  --text: #17171b;
  --muted: #55555e;
  --line: #e2dbd0;
  --accent: #0b6b62;
  --accent-ink: #ffffff;
  --accent-soft: #dcefeb;
  --mark: #ffd84d;
  --mark-ink: #17171b;
  --panel: #17171b;
  --panel-text: #f2efe8;
  --panel-muted: #bdbab3;
  --panel-line: #34343b;
  --tag-storyline: #a14a07;
  --tag-rise: #1d4ed8;
  --tag-html: #6d28d9;
  --tag-video: #be123c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(23,23,27,.05), 0 12px 32px -8px rgba(23,23,27,.12);
  --shadow-lg: 0 2px 4px rgba(23,23,27,.06), 0 30px 60px -20px rgba(23,23,27,.28);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1012;
    --surface: #17181b;
    --text: #f2efe8;
    --muted: #a8a6a0;
    --line: #2a2b30;
    --accent: #5eead4;
    --accent-ink: #062723;
    --accent-soft: #123631;
    --panel: #1c1d21;
    --panel-text: #f2efe8;
    --panel-muted: #b3b0a9;
    --panel-line: #33343a;
    --tag-storyline: #f59e0b;
    --tag-rise: #7cb3ff;
    --tag-html: #b69cff;
    --tag-video: #fb7185;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 30px 60px -20px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mark); color: var(--mark-ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 20; }

/* Highlighter: a hand-drawn-looking marker stroke behind text */
mark, .mark {
  background: linear-gradient(104deg, transparent 0 1%, var(--mark) 2% 97%, transparent 98%) 0 72% / 100% 46% no-repeat;
  color: var(--mark-ink); padding: 0 .08em;
}
em.serif { font-style: italic; font-weight: 400; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand::before {
  content: "AG"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--text); color: var(--bg); font: 700 .8rem/1 var(--font); letter-spacing: .02em;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a.nav-cta { color: var(--text); border: 1.5px solid var(--text); padding: 7px 16px; border-radius: 999px; }
.nav a.nav-cta:hover { background: var(--text); color: var(--bg); }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin: 0 0 16px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px 6px 10px; border-radius: 999px; margin: 0 0 26px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px color-mix(in srgb, #16a34a 22%, transparent); }
.hero h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04; letter-spacing: -.015em; margin: 0 0 24px; max-width: 16ch;
  font-variation-settings: "opsz" 144;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero h1 mark { white-space: nowrap; }
.hero p.lede { color: var(--muted); font-size: 1.15rem; max-width: 54ch; margin: 0 0 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; font: inherit; font-weight: 600; font-size: .98rem;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* Hero collage: three real course screens in browser frames */
.collage { position: relative; aspect-ratio: 1 / .92; }
.collage .frame { position: absolute; width: 74%; box-shadow: var(--shadow-lg); }
.collage .f1 { top: 0; right: 0; transform: rotate(2.5deg); z-index: 1; }
.collage .f2 { top: 30%; left: 0; transform: rotate(-3deg); z-index: 2; }
.collage .f3 { bottom: 0; right: 6%; transform: rotate(1deg); z-index: 3; width: 62%; }
.collage .sticker {
  position: absolute; z-index: 4; left: 4%; top: 6%;
  background: var(--mark); color: var(--mark-ink); font: 700 .8rem/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase;
  padding: 12px 14px; border-radius: 12px; transform: rotate(-6deg); box-shadow: var(--shadow); text-align: center;
}
.collage .sticker b { display: block; font: 600 1.9rem/1 var(--font-display); letter-spacing: -.02em; text-transform: none; }

/* Browser-window frame used for thumbnails, collage and the case-study player */
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: color-mix(in srgb, var(--line) 55%, var(--surface)); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e5534b; }
.frame-bar i:nth-child(2) { background: #e6a23c; }
.frame-bar i:nth-child(3) { background: #3fb950; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Tool strip */
.toolstrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 56px; }
.toolstrip ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.toolstrip li { font-family: var(--font-display); font-size: 1.15rem; color: var(--muted); display: flex; align-items: center; }
.toolstrip li + li::before { content: "✦"; font-size: .7rem; color: var(--accent); margin: 0 18px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stat { padding: 28px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Sections */
section { padding: 80px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.kicker { display: block; font: 700 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.005em; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Work grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: work; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; counter-increment: work;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.card[hidden] { display: none; }
.thumb {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 2.6rem; color: #fff;
  border-bottom: 1px solid var(--line); overflow: hidden; background: var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.thumb::before {
  content: counter(work, decimal-leading-zero); position: absolute; z-index: 1; top: 12px; left: 12px;
  font: 700 .75rem/1 var(--font); letter-spacing: .06em; color: var(--text); background: var(--surface);
  padding: 6px 8px; border-radius: 8px; box-shadow: var(--shadow);
}
.thumb.storyline { background: linear-gradient(135deg, #f59e0b, #a14a07); }
.thumb.rise { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.thumb.html { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.thumb.video { background: linear-gradient(135deg, #fb7185, #be123c); }
.thumb:has(img) { background: var(--surface); }
/* Cover for courses still in production */
.thumb.cover { place-items: end start; padding: 22px; color: #fff; }
.cover-tool { font: 600 clamp(1.6rem, 3vw, 2.1rem)/1 var(--font-display); letter-spacing: -.02em; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.cover-note { display: inline-block; margin-top: 10px; font: 700 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.35); color: #fff; padding: 6px 9px; border-radius: 6px; }
.thumb.cover > div { position: relative; z-index: 1; }
.thumb.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.28), transparent 45%), repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 14px); }

.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-body .more { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; color: var(--text); }
.card-body .more::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.card-body .more:hover { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; line-height: 1.5; }
.tag.storyline { color: var(--tag-storyline); }
.tag.rise { color: var(--tag-rise); }
.tag.html { color: var(--tag-html); }
.tag.video { color: var(--tag-video); }
.tag.plain { color: var(--muted); border-color: var(--line); }

/* Process */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps li { position: relative; padding-top: 62px; }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--text); color: var(--text); display: grid; place-items: center; font: 700 .85rem/1 var(--font);
}
.steps li:nth-child(3)::before { background: var(--mark); color: var(--mark-ink); border-color: var(--mark-ink); }
.steps strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; line-height: 1.2; }
.steps span { color: var(--muted); font-size: .93rem; }
.process-intro { max-width: 60ch; color: var(--muted); margin: 16px 0 48px; font-size: 1.05rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.about-quote { font: 400 italic clamp(1.4rem, 2.6vw, 1.9rem)/1.3 var(--font-display); margin: 0 0 22px; letter-spacing: -.01em; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Case study */
.cs-hero { padding: 64px 0 40px; }
.cs-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.025em; margin: 10px 0 18px; max-width: 20ch; }
.cs-hero .lede { color: var(--muted); font-size: 1.15rem !important; max-width: 62ch; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 36px 0 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta div { padding: 16px 18px 16px 0; border-right: 1px solid var(--line); margin-right: 18px; }
.meta div:last-child { border-right: 0; }
.meta dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.meta dd { margin: 6px 0 0; font-weight: 600; }
.player { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.player::before {
  content: ""; display: block; height: 30px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle, #e5534b 4px, transparent 4.5px) 14px 50% / 10px 10px no-repeat,
    radial-gradient(circle, #e6a23c 4px, transparent 4.5px) 30px 50% / 10px 10px no-repeat,
    radial-gradient(circle, #3fb950 4px, transparent 4.5px) 46px 50% / 10px 10px no-repeat,
    color-mix(in srgb, var(--line) 55%, var(--surface));
}
.player iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; background: #fff; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.prose { max-width: 72ch; }
.prose h2 { margin: 56px 0 14px; font-size: clamp(1.6rem, 3vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.05rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--accent); }
table.align { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.align th, table.align td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.align tr:last-child td { border-bottom: 0; }
table.align th { color: var(--muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; background: color-mix(in srgb, var(--line) 35%, var(--surface)); }
.todo { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 8px; font-size: .95rem; }

/* Contact: an ink panel for contrast */
.contact {
  background: var(--panel); color: var(--panel-text); border: 1px solid var(--panel-line);
  border-radius: calc(var(--radius) * 1.75); padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.contact::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--mark) 30%, transparent), transparent 65%); pointer-events: none; }
.contact > * { position: relative; }
.contact h2 { color: var(--panel-text); font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 18ch; margin: 0 auto; }
.contact p { color: var(--panel-muted); max-width: 52ch; margin: 14px auto 32px; }
.contact a { color: var(--mark); }
.contact a:focus-visible, .contact button:focus-visible, .contact input:focus-visible, .contact textarea:focus-visible { outline-color: var(--mark); }
.contact .btn-row { justify-content: center; }
.contact .btn.primary { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }

footer { padding: 40px 0 56px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }

/* Placeholder course pages */
.placeholder { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.placeholder .box { max-width: 560px; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); padding: 36px; }
.placeholder code { background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }

/* Contact form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 660px; margin: 8px auto 0; text-align: left; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--panel-text); }
.field input, .field textarea {
  font: inherit; color: var(--panel-text); background: color-mix(in srgb, var(--panel) 80%, #fff 6%);
  border: 1.5px solid #7a7a84; border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--mark); outline-offset: 1px; border-color: var(--mark); }
.field [aria-invalid="true"] { border-color: #fca5a5; }
.form-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-status { margin: 0 !important; font-size: .95rem; color: var(--panel-muted); }
.form-status.ok { color: #86efac; font-weight: 600; }
.form-status.err { color: #fca5a5; font-weight: 600; }
.contact-alt { margin: 26px auto 0 !important; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Keep anchored sections clear of the sticky header */
section[id], main[id] { scroll-margin-top: 76px; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .collage { max-width: 560px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .steps li { padding: 4px 0 28px 68px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  .nav a.nav-cta { padding: 6px 12px; }
  .hero { padding: 40px 0 24px; }
  .grid { grid-template-columns: 1fr; }
  .split, .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { padding-left: 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .toolstrip ul { justify-content: flex-start; gap: 6px 20px; }
  .toolstrip li + li::before { display: none; }
  .toolstrip li { font-size: 1rem; }
  section { padding: 56px 0; }
  .contact { padding: 40px 20px; border-radius: var(--radius); }
  .contact-form { grid-template-columns: 1fr; }
  .meta div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .card:focus-within, .btn:hover { transform: none; }
}
