/* jonesco.com (formerly wesjones.info), styled after jonescoartdept.com:
   black bar header, thick black rules, square bordered boxes, Trade Gothic headlines and labels,
   Libre Franklin body, black button blocks, black closing section. No rounded corners. */

/* Built on the Jonesco System (system.css, loaded first): fonts, tokens and base come from there.
   This file holds what is specific to the portfolio. */
:root {
  --display: var(--font-display);   /* site names for the system tokens */
  --label: var(--font-label);
}
body { font-size: 17px; }
p { margin: 0 0 1em; }
mark { background: var(--highlight); }

h1, .h1, h2, .h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .95;
  margin: 0 0 .4em;
}
h1, .h1 { font-size: clamp(44px, 6.4vw, 88px); }
h2, .h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 28px; }
h1 strong, h2 strong, h3 strong { font-weight: inherit; }

h4 { font-size: 21px; font-weight: 400; line-height: 1.45; margin: 0 0 1em; }

h5 {
  font-family: var(--label);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: var(--rule);
}
h5 strong { font-weight: inherit; }

hr { border: 0; border-top: var(--rule); margin: 26px 0; }


/* ===========================
   LAYOUT
   =========================== */

.page, .dark-band-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.cols-2, .cols-3, .cols-4, .cols-6, .cols-2-1, .cols-1-2, .cols-1-3 { display: grid; gap: 40px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cols-6 { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cols-2-1 { grid-template-columns: 2fr 1fr; }
.cols-1-2 { grid-template-columns: 1fr 2fr; }
.cols-1-3 { grid-template-columns: 1fr 3fr; }
.cols-auto { display: flex; gap: 16px; }
.cols-auto > * { flex: 1; min-width: 0; }

.large-only { display: none; }
.large-hidden { display: block; }
@media (min-width: 1024px) { .large-only { display: block; } .large-hidden { display: none; } }

.floaterleft { float: left; }
.floaterright { float: right; }
.circleimg { text-align: center; }
.indented { padding-left: 2rem; }
.indented p { margin-bottom: 1.5rem; }


/* ===========================
   HEADER (black bar, as on the art dept site)
   =========================== */

/* Fixed header that starts at double size and shrinks once the page scrolls (.is-scrolled on <html>).
   It floats over a fixed spacer (body padding) so the shrink never shifts the page. */
:root { --hdr: 192px; --hdr-small: 80px; --logo: 82px; --logo-small: 34px; }
body { padding-top: var(--hdr); }
/* Every page but home uses the compact header from the start, with no resizing */
.compact-header { --hdr: var(--hdr-small); --logo: var(--logo-small); }
.compact-header .site-header .bar, .compact-header .brand img { transition: none; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: var(--ink); color: var(--paper); }
.site-header .bar, .site-footer .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header .bar { height: var(--hdr); transition: height .25s ease; }
.is-scrolled .site-header .bar { height: var(--hdr-small); }
.brand { display: flex; align-items: center; }
.brand img { height: var(--logo); width: auto; filter: brightness(0) invert(1); transition: height .25s ease; }   /* charcoal wordmark art, shown pure white */
.is-scrolled .brand img { height: var(--logo-small); }
@media (prefers-reduced-motion: reduce) { .site-header .bar, .brand img { transition: none; } }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none;
  padding: 5px 0 3px; border-top: 3px solid transparent; border-bottom: 3px solid transparent;
}
.site-header nav a:hover { color: var(--highlight); border-bottom-color: var(--highlight); }

section, [id] { scroll-margin-top: var(--hdr-small); }


/* ===========================
   HOME: BIO
   =========================== */

.bio { padding: 64px 0 56px; margin-bottom: 0; }
.bio-text { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; max-width: 32em; margin: 0; }
.bio-text strong { font-weight: 700; }


/* ===========================
   SECTION HEADINGS
   =========================== */

.section-header { padding: 56px 0 32px; }
.section-header h1 { font-size: clamp(36px, 4.8vw, 58px); margin: 0; }


/* ===========================
   BLACK BANDS (What I bring, Let’s talk)
   =========================== */

.dark-band {
  background: var(--ink); color: var(--paper);
  padding: 0 0 64px;
}
.dark-band h1, .dark-band h2, .dark-band h3, .dark-band h5, .dark-band p { color: var(--paper); }
.dark-band .section-header { padding-bottom: 40px; }

/* What I bring: three columns, each skill under a white rule */
.dark-band:has(.skills-header) .dark-band-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 40px; }
.skills-header { grid-column: 1 / -1; padding-bottom: 0 !important; margin-bottom: -8px; }   /* + 40px grid gap = the same 32px under the heading as Selected case studies */
.dark-band-inner > div[style] { display: block !important; border-top: 4px solid var(--paper); padding-top: 16px; }
.icon-cell { display: none; }
.processtile { margin: 0; }
.processtile p { font-size: 16px; line-height: 1.5; margin: 0; color: #ddd; }
.processtile p:first-child { margin-bottom: 10px; }
.processtile p:first-child strong {
  /* Sentence case in Trade Gothic Bold No. 2 (regular width): calmer than condensed caps */
  font-family: var(--label); font-weight: 700; text-transform: none; letter-spacing: 0;
  font-size: 26px; line-height: 1.1; color: var(--paper);
}

/* Let’s talk: contact rows ruled like the art dept spec lists */
/* What I bring sits on white with black type; thick rules set it apart from the bio and case studies */
.dark-band:has(.skills-header) { background: var(--paper); color: var(--ink); border-top: var(--rule); border-bottom: var(--rule); }
.dark-band:has(.skills-header) h1, .dark-band:has(.skills-header) p { color: var(--ink); }
.dark-band:has(.skills-header) .dark-band-inner > div[style] { border-top-color: var(--ink); }
.dark-band:has(.skills-header) .processtile p { color: #333; }
.dark-band:has(.skills-header) .processtile p:first-child strong { color: var(--ink); }

.dark-band:has(.contact-header) { padding-bottom: 56px; border-bottom: 1px solid #333; }
.contactarea { max-width: 560px; }
.contactarea h5 { border-bottom-color: var(--paper); font-size: 15px; }
.contactarea > br, .contacts p:empty { display: none; }
.contacts { display: flex; flex-direction: column; }
.contacts a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 2px solid #444;
  font-family: var(--label); font-weight: 700; font-size: 16px; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; color: var(--paper);
}
.contacts a:hover { color: var(--highlight); }
.contactarea i { width: 20px; text-align: center; font-size: 18px; color: var(--highlight); }


/* ===========================
   CASE STUDY TILES (home)
   =========================== */

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 72px; }
.tile-grid a { text-decoration: none; color: inherit; }
.tile-card { display: flex; flex-direction: column; height: 100%; }
.tile-image { aspect-ratio: 4 / 3; border: var(--rule); overflow: hidden; background: var(--ink); }
.tile-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .25s; }
.tile-card:hover .tile-image img { transform: scale(1.04); }
.tile-image-placeholder { width: 100%; height: 100%; background: var(--ink); }
.tile-label { padding: 14px 0 0; }
.csid p { font-family: var(--label); font-size: 13px; letter-spacing: .03em; color: #888; margin: 0 0 6px; }
/* Sentence case in Trade Gothic Bold No. 2, matching the What I bring titles */
.tile-label h2 { font-family: var(--label); text-transform: none; letter-spacing: 0; font-size: 26px; line-height: 1.15; margin: 0; padding-bottom: 12px; border-bottom: var(--rule); transition: color .15s; }
.tile-card:hover .tile-label h2 { color: var(--accent); }
.tile-description { font-size: 15px; color: var(--muted); margin: 12px 0 0; line-height: 1.45; }


/* ===========================
   CASE STUDY PAGES
   =========================== */

.compact-header .page > div:first-child { padding-top: 56px; }

/* "Case Study #5487" tag: black block, yellow type */
#rcorners1 {
  display: inline-block; background: var(--ink); color: var(--highlight);
  font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 12px; margin: 0 0 24px; border: 0;
}
.compact-header .page > div:first-child h1 { padding-bottom: 20px; border-bottom: var(--rule); margin-bottom: 24px; }
/* Spacing where rules used to separate the intro, the Challenges / My role lists and the work below */
.cols-2:has(> div > h5) { margin-top: 24px; margin-bottom: 48px; }
.compact-header .page > div:first-child + div:not(.cols-2) { margin-top: 24px; }

/* Lists: plain bullets under the heading rule */
ul.a { list-style: disc; margin: 16px 0 0; padding-left: 1.2em; }
li.special-item { padding: 0 0 0 .2em; margin: 0 0 12px; line-height: 1.45; }
li.special-item::marker { color: var(--ink); }

.largehint { font-size: 14px; line-height: 1.5; color: var(--muted); padding-right: 24px; }
.hint { font-family: var(--label); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.shadowed-div { border: 0; box-shadow: none; }

/* Next case study: full-width black band joined to the footer, like Let’s talk on the home page */
.next-band { display: block; background: var(--ink); color: var(--paper); text-decoration: none; border-bottom: 1px solid #333; margin-top: 56px; }
.next-band .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 44px; min-height: 292px;   /* twice the original 146px */
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;   /* label stacked over title, left-aligned at the top */
}
.next-label { font-family: var(--label); font-weight: 700; font-size: 14px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.next-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .95;
  font-size: clamp(32px, 4.4vw, 56px); transition: color .15s;
}
.next-band:hover .next-title, .next-band:hover .next-label { color: var(--highlight); }

.back-link { display: none; }


/* ===========================
   FOOTER (black, as on the art dept site)
   =========================== */

.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .bar { padding-top: 32px; padding-bottom: 32px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer a {
  font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none;
}
.site-footer a:hover { color: var(--highlight); }
.site-footer small { font-size: 13px; }
/* The home page ends with the black contact band, so the footer joins it */
.dark-band:has(.contact-header) { margin-bottom: 0; }


/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .cols-3, .cols-4, .tile-grid { grid-template-columns: 1fr 1fr; }
  .cols-6 { grid-template-columns: repeat(3, 1fr); }
  .dark-band:has(.skills-header) .dark-band-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .page, .dark-band-inner, .site-header .bar, .site-footer .bar { padding-left: 16px; padding-right: 16px; }
  :root { --hdr: 115px; --hdr-small: 64px; --logo: 43px; --logo-small: 24px; }
  .compact-header { --hdr: var(--hdr-small); --logo: var(--logo-small); }
  .site-header nav { gap: 16px; }
  .site-header nav a.opt { display: none; }
  .bio { padding: 36px 0 32px; }
  .section-header { padding: 40px 0 24px; }
  .compact-header .page > div:first-child { padding-top: 32px; }
  .next-band .bar { padding: 36px 16px 32px; min-height: 290px; }
  .next-band { margin-top: 40px; }
  hr { margin: 24px 0; }
  .cols-2, .cols-3, .cols-4, .cols-6, .cols-2-1, .cols-1-2, .cols-1-3, .tile-grid { grid-template-columns: 1fr; }
  .tile-grid { row-gap: 80px; }   /* stacked case study tiles: twice the desktop gap */
  .cols-auto { flex-wrap: wrap; }
  .dark-band:has(.skills-header) .dark-band-inner { grid-template-columns: 1fr; gap: 28px; }
  .skills-header { margin-bottom: -4px; }
}


/* Section headings inside a case study: sentence case in Trade Gothic Bold No. 2.
   The page title (h1) stays condensed caps: it is the hero of the page. */
.compact-header .page h2, .compact-header .page h3 {
  font-family: var(--label); font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.15;
}
.compact-header .page h2 { font-size: clamp(26px, 2.6vw, 34px); }
.compact-header .page h3 { font-size: 26px; }

/* ---------- Takes ---------- */
/* The take is the page hero, so its title stays condensed caps; the list titles are sentence case. */
.take article { max-width: 880px; }
.take h1 { font-size: clamp(44px, 6vw, 80px); }   /* gets the case-study title rule from .page > div:first-child h1 */
.take-body { max-width: 36em; }
.take-body p { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.55; margin: 0 0 1em; }
.take-meta, .take-also { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; color: var(--muted); margin: 40px 0 0; padding-top: 16px; border-top: var(--thin); }
.take-also { margin-top: 10px; padding-top: 0; border-top: 0; }
.take-meta a, .take-also a { color: var(--ink); }
.take-meta a:hover, .take-also a:hover { color: var(--accent); }

.takes-intro { font-size: clamp(20px, 1.9vw, 24px); margin: 0 0 32px; }
.takes-list { list-style: none; margin: 0 0 80px; padding: 0; max-width: 880px; }
.takes-list li { border-bottom: var(--thin); }
.takes-list a { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px 24px; align-items: baseline; padding: 22px 0; text-decoration: none; color: inherit; }
.take-num, .take-date { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 13px; color: var(--muted); }
.take-title { font-family: var(--label); font-weight: 700; font-size: 26px; line-height: 1.15; transition: color .15s; }
.takes-list a:hover .take-title { color: var(--accent); }
@media (max-width: 640px) {
  .takes-list a { grid-template-columns: 1fr; }
  .take-date { order: 3; }
}

/* ---------- Archive (original jonesco.com work; noindexed, unlinked from the main site) ---------- */
.archive-index .tile-image img { object-position: center; }   /* same 4:3 tiles as home; the old square thumbnails crop from the middle */
.archive-page img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.archive-page > div > img, .archive-page > div:not([class]) > img { margin-top: 24px; }
.archive-media { margin: 24px 0 8px; align-items: center; }
.archive-video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); margin-top: 24px; }
.archive-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.archive-back { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; margin: 56px 0 0; }
.archive-back a { color: var(--ink); }
.archive-back a:hover { color: var(--accent); }
.compact-header .page.archive-index > div:first-child h1 { border-bottom: 0; padding-bottom: 0; margin-bottom: 40px; }
.compact-header .tile-label h2 { font-size: 26px; }   /* tile titles stay the home-page size on inner pages */

/* Short pages (404): the footer sits at the bottom of the window */
body.pin-footer { box-sizing: border-box; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.pin-footer > .site-footer { margin-top: auto; }
body.pin-footer .page { width: 100%; box-sizing: border-box; }   /* keep the full column width inside the flex body */
