/* ==========================================================================
   jaymeany.com — stylesheet
   Plain CSS, no framework. Everything you'd want to change lives at the top
   in :root. Layout is flexbox/grid. One breakpoint for mobile at the bottom.
   ========================================================================== */

:root {
  /* colours */
  --text:        #444;      /* body copy */
  --heading:     #222;      /* dark headings */
  --muted:       #999;      /* captions / secondary */
  --link:        #001ee2;   /* links + hover */
  --line:        #ececec;   /* hairline dividers */
  --bg:          #ffffff;
  --bg-bar:      #efefef;    /* top strip */
  --bg-intro:    #fafefe;    /* intro band */
  --bg-footer:   #f7f7f7;

  /* type */
  --font-display: "Crimson Pro", Georgia, serif;                  /* big serif headings */
  --font-label:   "Nanum Gothic Coding", ui-monospace, monospace; /* small mono labels */
  --font-body:    "Plus Jakarta Sans", system-ui, sans-serif;     /* paragraphs */

  /* layout */
  --maxw: 1170px;           /* content width */
  --pad:  25px;             /* page side padding */
  --gap:  30px;             /* grid gutter */
}

/* --- reset-ish ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* centres every section's content to the same column */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* --- top strip (sticky) -------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-bar);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
/* same inner height on every page (home = single label, projects = nav) */
.topbar .wrap {
  display: flex;
  align-items: center;
  min-height: 26px;
}
.label {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--text);
}

/* --- intro --------------------------------------------------------------- */
.intro {
  background: var(--bg-intro);
  border-bottom: 1px solid var(--line);
  padding: 55px 0 60px;
}
.intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 1.4em;
}
.intro p {
  margin: 0;
}

/* --- case studies -------------------------------------------------------- */
.work { padding: 55px 0 80px; }
.work h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin: 0 0 40px;
}

/* two columns; each column stacks its own cards (masonry-style) */
.case-grid { display: flex; gap: var(--gap); align-items: flex-start; }
.case-col  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 40px; }

.case { display: block; color: inherit; }
.case:hover { text-decoration: none; }
.case-thumb { position: relative; display: block; overflow: hidden; }
.case-thumb img { width: 100%; display: block; }

/* hover overlay (pure CSS, replaces the old JS hover) */
.case-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center;
  background: rgba(0,0,0,.72);
  opacity: 0; transition: opacity .25s ease;
}
.case:hover .case-overlay { opacity: 1; }
.case-overlay .t { font-family: var(--font-label); color: #fff; font-size: 1.1rem; }
.case-overlay .c { font-family: var(--font-label); color: #cfcfcf; font-size: .8rem; }

.case-title {
  display: block;
  font-family: var(--font-label);
  color: #000;
  font-size: 15px;
  padding-top: 14px;
}

/* --- footer -------------------------------------------------------------- */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--line);
  padding: 45px 0 55px;
}
/* stacked vertical list: name / email / LinkedIn, matching the live site */
.footer-list {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--text);
  line-height: 1.9;
}

/* ==========================================================================
   PROJECT (case-study) pages
   ========================================================================== */

/* top strip becomes a simple nav on project pages */
.topbar-nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar-nav a { color: var(--text); }
.topbar-nav a:hover { color: var(--link); text-decoration: none; }

.project { padding: 45px 0 60px; }

.project-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  margin: 0;
}

/* readable text column (.wrap centres it; .prose narrows it) */
.wrap.prose { max-width: 780px; }

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}
.lead { font-size: 1.05rem; margin: 0 0 1em; }

.project h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  margin: 2.2em 0 .5em;
}
.project p  { margin: 0 0 1.1em; }
.project p:last-child { margin-bottom: 0; }
.project ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.project li { margin: 0 0 .5em; }

/* figures: default sits at reading width; --wide and --hero go full column */
.figure { max-width: 820px; margin: 34px auto; padding: 0 var(--pad); }
.figure--wide, .figure--hero { max-width: var(--maxw); }
.figure--hero { margin-top: 30px; }
.figure img, .figure video { width: 100%; display: block; }
.figure figcaption {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* "more work" grid at the foot of a project reuses the case-grid styles */
.more-work { padding: 40px 0 70px; border-top: 1px solid var(--line); }
.more-work h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin: 0 0 34px;
}

/* --- mobile -------------------------------------------------------------- */
@media (max-width: 800px) {
  .case-grid { flex-direction: column; }
}
