/*
Theme Name: PEDAL Lab
Theme URI: https://pedalresearch.com
Author: PEDAL Lab / built with Claude
Description: Custom theme for PEDAL (Pedagogy, Emotion, Design, and Learning), University of Connecticut. Classic theme; brand tokens at the top of this file.
Version: 1.4.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: pedal
*/
/* ==========================================================================
   PEDAL: Pedagogy, Emotion, Design, and Learning — University of Connecticut
   Site stylesheet. Brand tokens live in :root; edit there, not inline.
   ========================================================================== */

:root{
  --navy:#000E2F;        /* UConn navy — headings, hero, footer */
  --red:#E4002B;         /* UConn red — accents only, never body text */
  --sky:#A4C8E1;         /* Husky Eyes light blue — tints, tags */
  --mist:#EFF5FA;        /* derived tint of sky for alternating sections */
  --paper:#FFFFFF;
  --ink:#0E1B33;         /* near-navy body headings */
  --ink-soft:#39496A;    /* body text */
  --hairline:#D5E2EE;

  --display:"Montserrat","Proxima Nova","Helvetica Neue",Arial,sans-serif;
  --body:"Inter","Proxima Nova","Helvetica Neue",Arial,sans-serif;

  --maxw:1080px;
  --radius:8px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

body{
  margin:0;
  font-family:var(--body);
  font-size:1.02rem;
  line-height:1.68;
  color:var(--ink-soft);
  background:var(--paper);
}

img{max-width:100%;display:block}
a{color:var(--navy);text-decoration-color:var(--sky);text-decoration-thickness:2px;text-underline-offset:3px}
a:hover{color:var(--red);text-decoration-color:var(--red)}

h1,h2,h3,h4{
  font-family:var(--display);
  color:var(--navy);
  line-height:1.12;
  letter-spacing:-.01em;
  margin:0 0 .5em;
}
h1{font-size:clamp(2rem,4.6vw,3.3rem);font-weight:800}
h2{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:700}
h3{font-size:1.2rem;font-weight:700}
p{margin:.35em 0 1em}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ---- eyebrow label: expanded caps with a red tick ---- */
.eyebrow{
  font-family:var(--display);
  font-size:.8rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--navy);display:flex;align-items:center;gap:.6em;margin-bottom:1rem;
}
.eyebrow::before{content:"";width:1.4em;height:3px;background:var(--red);border-radius:2px}
.on-navy .eyebrow{color:var(--sky)}

/* ================= header ================= */
.site-header{
  border-bottom:1px solid var(--hairline);
  background:var(--paper);
  position:sticky;top:0;z-index:50;
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;padding-bottom:12px}
.brand img{height:70px;width:auto}
.brand img.custom-logo{height:70px;width:auto}
.nav{display:flex;gap:6px;flex-wrap:wrap}
.nav a{
  font-family:"Archivo","Helvetica Neue",Arial,sans-serif;font-weight:600;font-size:.95rem;
  text-decoration:none;color:var(--navy);
  padding:8px 12px;border-radius:6px;
}
.nav a:hover{background:var(--mist);color:var(--navy)}
.nav a[aria-current="page"]{color:var(--red)}
.nav-toggle{display:none}

@media(max-width:820px){
  .brand img,.brand img.custom-logo{height:55px}
  .nav-toggle{
    display:block;background:none;border:1px solid var(--hairline);border-radius:6px;
    font-family:"Archivo","Helvetica Neue",Arial,sans-serif;font-weight:600;color:var(--navy);padding:8px 12px;cursor:pointer;
  }
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--paper);
    border-bottom:1px solid var(--hairline);flex-direction:column;padding:8px 24px 16px}
  .nav.open{display:flex}
}

/* ================= hero ================= */
.hero{background:var(--navy);color:#DCE8F3;padding:72px 0 84px;position:relative;overflow:hidden}
.hero h1{color:#fff;max-width:19ch}
.hero .clause2{color:var(--sky)}
.hero p.lede{font-size:1.2rem;max-width:56ch;color:#C4D6E8}
.hero-inner{position:relative;z-index:2}

/* signature: the mark's red parenthesis arcs, drawn in on load */
.arc-frame{position:absolute;inset:0;z-index:1;pointer-events:none}
.arc-frame path{
  stroke:var(--red);stroke-width:14;fill:none;stroke-linecap:round;opacity:.9;
  stroke-dasharray:420;stroke-dashoffset:420;animation:draw 1.1s .2s ease forwards;
}
@keyframes draw{to{stroke-dashoffset:0}}

.btn{
  display:inline-block;font-family:var(--display);font-weight:700;font-size:1rem;
  padding:12px 22px;border-radius:var(--radius);text-decoration:none;margin-right:12px;margin-top:8px;
}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:#c50026;color:#fff}
.btn-ghost{border:2px solid var(--sky);color:#fff}
.btn-ghost:hover{border-color:#fff;color:#fff}

/* ================= sections ================= */
.section{padding:64px 0}
.section.tint{background:var(--mist)}
.section.navy{background:var(--navy)}
.section.navy h2,.section.navy h3{color:#fff}
.section.navy p{color:#C4D6E8}
.kicker{max-width:62ch}

/* card grids */
.grid{display:grid;gap:20px}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.grid.cols-4{grid-template-columns:repeat(2,1fr)}.grid.cols-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.grid.cols-2,.grid.cols-3,.grid.cols-4{grid-template-columns:1fr}}

.card{
  background:var(--paper);border:1px solid var(--hairline);border-radius:var(--radius);
  padding:22px 22px 18px;
}
.card h3{margin-top:.1em}
.card .facelabel{
  font-family:var(--display);font-size:.78rem;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--red);margin-bottom:.4em;
}

/* status tags for projects */
.tag{
  display:inline-block;font-family:var(--display);font-size:.72rem;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;border-radius:999px;padding:3px 10px;
  background:var(--sky);color:var(--navy);margin-left:.5em;vertical-align:middle;
}
.tag.review{background:#FBE3E8;color:#A00020}
.tag.progress{background:var(--mist);color:var(--navy);border:1px solid var(--sky)}

/* ================= people ================= */
.person{
  display:grid;grid-template-columns:180px 1fr;gap:22px;align-items:start;
  padding:16px 0;border-bottom:1px solid var(--hairline);
}
.person:last-of-type{border-bottom:none}
.person img{border-radius:var(--radius);aspect-ratio:1/1;object-fit:cover;width:100%;height:auto}
.person .role{
  font-family:var(--display);font-weight:600;font-size:.9rem;color:var(--red);
  letter-spacing:.04em;margin:-.3em 0 .6em;
}
.person .links{font-family:var(--display);font-size:.9rem}
@media(max-width:620px){.person{grid-template-columns:120px 1fr;gap:16px}}

/* ================= circuits diagram ================= */
.circuit{display:flex;align-items:flex-start;gap:16px}
.circuit svg{flex:0 0 64px}
.circuit h3{font-size:1.05rem;margin-bottom:.2em}
.circuit p{font-size:.98rem;margin:0}

/* ================= publications / events lists ================= */
.pub{padding:14px 0;border-bottom:1px solid var(--hairline)}
.pub:last-child{border-bottom:none}
.pub .venue{font-style:italic}
.placeholder{
  background:repeating-linear-gradient(45deg,#FFF6D9,#FFF6D9 12px,#FFF0C2 12px,#FFF0C2 24px);
  border:1px dashed #D9B84A;border-radius:6px;padding:10px 14px;color:#6B5A14;
  font-family:var(--display);font-size:.95rem;
}

/* ================= footer ================= */
.site-footer{background:var(--navy);color:#B9CCE0;padding:44px 0 36px;margin-top:32px}
.site-footer .wrap{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px}
.site-footer h4{color:#fff;font-size:.95rem;letter-spacing:.1em;text-transform:uppercase}
.site-footer a{color:#DCE8F3;text-decoration-color:var(--sky)}
.site-footer a:hover{color:#fff}
.site-footer .fullform{font-family:var(--display);font-weight:700;color:#fff;font-size:1.05rem;margin-bottom:.4em}
.site-footer small{display:block;margin-top:1.2em;color:#7E96B5}
@media(max-width:760px){.site-footer .wrap{grid-template-columns:1fr}}

:focus-visible{outline:3px solid var(--red);outline-offset:2px}


/* ================= image slots =================
   Every slot works two ways:
   FILLED:  <img class="card-media" src="assets/img/projects/foo.jpg" alt="...">
   EMPTY:   <div class="card-media media-ph mp-a" aria-hidden="true"></div>
   Empty slots render as brand-graphic panels (arc motif), never as gaps. */
.card-media{
  width:calc(100% + 44px);margin:-22px -22px 18px;
  aspect-ratio:16/9;object-fit:cover;height:auto;
  border-radius:var(--radius) var(--radius) 0 0;
  border-bottom:1px solid var(--hairline);
}
.media-ph{background-color:#DCE9F4;background-repeat:no-repeat;background-size:cover;background-position:center}
.mp-a{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 225'%3E%3Cpath d='M 74 38 A 86 86 0 0 0 74 187' fill='none' stroke='%23E4002B' stroke-width='11' stroke-linecap='round'/%3E%3Cpath d='M 326 38 A 86 86 0 0 1 326 187' fill='none' stroke='%23000E2F' stroke-width='11' stroke-linecap='round' opacity='.45'/%3E%3Ccircle cx='200' cy='112' r='34' fill='none' stroke='%23000E2F' stroke-width='9' opacity='.35'/%3E%3C/svg%3E")}
.mp-b{background-color:var(--navy);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 225'%3E%3Cpath d='M 74 38 A 86 86 0 0 0 74 187' fill='none' stroke='%23E4002B' stroke-width='11' stroke-linecap='round'/%3E%3Cpath d='M 326 38 A 86 86 0 0 1 326 187' fill='none' stroke='%23A4C8E1' stroke-width='11' stroke-linecap='round' opacity='.55'/%3E%3Ccircle cx='200' cy='112' r='34' fill='none' stroke='%23A4C8E1' stroke-width='9' opacity='.4'/%3E%3C/svg%3E")}

/* full-width photo band (Home). Replace inner div with an <img> when a photo exists. */
.photo-band{padding:0}
.photo-band .band{
  height:clamp(200px,30vw,340px);width:100%;
  object-fit:cover;display:block;
}
.photo-band div.band{background-position:center;background-size:cover}

/* people avatar placeholder: sky field + simplified mark */
.avatar-ph{
  aspect-ratio:1/1;border-radius:var(--radius);
  background:#DCE9F4 url("assets/img/pedal-mark-simple-512.png") center/46% no-repeat;
  border:1px solid var(--hairline);
}

/* ---- card media wrapper (backdrop color sits behind a translucent img) ---- */
.card-media-wrap{overflow:hidden;padding:0}
.card-media-wrap .card-media-img{
  display:block;width:100%;height:100%;object-fit:cover;
  border-radius:0;border:0;margin:0;
}

/* ---- photo band image stack (via [pedal_photo_band]) ---- */
.band-stack{position:relative;height:clamp(200px,30vw,340px);overflow:hidden}
.band-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.4s ease}
.band-img.active{opacity:1}

/* ---- compact rows (items after the featured cards; past lists) ---- */
.compact-list{margin-top:28px}
.row-compact{display:grid;grid-template-columns:198px 1fr;gap:20px;align-items:start;padding:14px 0;border-bottom:1px solid var(--hairline)}
.compact-list .row-compact:last-child{border-bottom:none}
.row-compact h3{font-size:1.08rem;margin:0 0 .2em}
.row-compact p{margin:.15em 0 .35em;font-size:.95rem}
.row-thumb img{width:198px;aspect-ratio:16/10;height:auto;object-fit:cover;border-radius:6px;border:1px solid var(--hairline);display:block}
.row-thumb .thumb-ph{width:198px;height:124px;border-radius:6px;border:1px solid var(--hairline);background-size:cover}
.past-heading{margin-top:2.4em}
@media(max-width:620px){
  .row-compact{grid-template-columns:132px 1fr;gap:14px}
  .row-thumb img{width:132px}
  .row-thumb .thumb-ph{width:132px;height:82px}
}

/* ---- footer social icons ---- */
.social-row{display:flex;gap:14px;margin-top:14px}
.social-link{color:#A4C8E1;display:inline-flex;text-decoration:none}
.social-link:hover{color:#fff}
.social-link svg{display:block}

/* ---- page-level heroes (per-entry, via the Page Hero box) ---- */
.page-hero{padding:52px 0 58px}
.page-hero h1{font-size:clamp(1.8rem,3.6vw,2.7rem);max-width:24ch}
.page-hero .lede{font-size:1.1rem;max-width:56ch;color:#C4D6E8}
.backlink-light{color:#A4C8E1;text-decoration-color:#A4C8E1}
.backlink-light:hover{color:#fff}

/* ---- hero background images (optional, via Customizer) ---- */
.hero-bgs{position:absolute;inset:0;z-index:0}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.4s ease}
.hero-bg.active{opacity:1}
.hero-scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,14,47,.94) 0%,rgba(0,14,47,.84) 55%,rgba(0,14,47,.62) 100%)}
.arc-frame{z-index:1}

/* ---- WordPress-specific ---- */
/* WP writes explicit width/height attributes on every img it outputs;
   height:auto keeps our aspect-ratio rules in charge. */
.section .wrap img{height:auto}
.wp-block-image img{height:auto}
.wp-block-image img{border-radius:var(--radius)}
img.card-media{border-bottom:1px solid var(--hairline)}
.single-hero{padding:56px 0 8px}
.backlink{font-family:"Archivo","Helvetica Neue",Arial,sans-serif;font-weight:600;font-size:.9rem;text-decoration:none}
.team-mini{display:flex;gap:14px;align-items:center;margin:10px 0}
.team-mini img,.team-mini .avatar-ph{width:56px;height:56px;border-radius:8px;object-fit:cover;flex:0 0 56px}
.team-mini .avatar-ph{background-size:60%}
.team-mini .who{font-size:.95rem;line-height:1.35}
.team-mini .who strong{font-family:"Montserrat",sans-serif;color:var(--navy)}
.rolechip{font-size:.75rem;color:var(--red);font-weight:600;font-family:"Archivo",sans-serif;letter-spacing:.04em}
