/* ============================================================
   Conscientious Technology Design Workshop
   Editorial redesign — people-first, warm-academic
   Brand: brick red (#b75552), teal accent (#52b4b7)
   ============================================================ */

:root {
    --ink:        #241c1b;   /* near-black, warm */
    --ink-soft:   #5d5450;   /* muted body / captions */
    --paper:      #faf6f2;   /* warm off-white page */
    --surface:    #ffffff;   /* cards */
    --brick:      #b75552;   /* primary brand */
    --brick-dark: #8f2d2a;   /* hover / strong */
    --brick-tint: #f3e6e4;   /* soft fills */
    --teal:       #2f8d90;   /* accessible teal for text */
    --teal-soft:  #e3f0f0;
    --line:       rgba(36, 28, 27, 0.12);
    --line-soft:  rgba(36, 28, 27, 0.07);
    --shadow:     0 18px 40px rgba(95, 40, 38, 0.10);
    --shadow-sm:  0 6px 18px rgba(95, 40, 38, 0.08);
    --radius:     16px;
    --maxw:       1080px;

    --serif: "Newsreader", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
    --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--brick-dark); }

::selection { background: var(--brick-tint); }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: 0 0 10px 0;
    z-index: 1000;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(250, 246, 242, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
}
.nav-brand-mark { font-size: 1.1rem; }

.nav-links {
    display: flex;
    gap: clamp(0.6rem, 2vw, 1.6rem);
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brick); border-bottom-color: var(--brick); }

/* ---------- Layout primitives ---------- */
.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 2.5rem);
}

.section-head { max-width: 720px; margin-bottom: 2.75rem; }

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.6rem;
}

h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.section-intro {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--ink-soft);
}
.section-intro a { color: var(--brick-dark); }

/* ---------- Buttons / links ---------- */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
    background: var(--brick);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brick-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
    color: var(--brick-dark);
    border: 1.5px solid var(--brick);
}
.btn-ghost:hover { background: var(--brick-tint); transform: translateY(-2px); }

.text-link {
    display: inline-block;
    margin-top: auto;
    color: var(--brick-dark);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.text-link:hover { border-bottom-color: var(--brick-dark); }
.text-link-muted { color: var(--ink-soft); font-style: italic; font-weight: 500; cursor: default; }

/* ---------- Hero ---------- */
.hero {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(3rem, 9vw, 6rem) clamp(1.25rem, 5vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
}
.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}
.eyebrow-logo { height: 30px; width: auto; opacity: 0.92; transition: opacity 0.2s ease; }
.eyebrow-logo:hover { opacity: 1; }
.eyebrow-x { color: var(--brick); font-weight: 700; font-size: 1.1rem; }

h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.3rem, 6.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}
.hero-lede {
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    color: var(--ink-soft);
    max-width: 680px;
    margin: 0 auto 1.5rem;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }
.hero-meta {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Card grid (cohorts) ---------- */
.card-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem;
}

.fellow-card,
.showcase-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fellow-card:hover,
.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brick-tint);
    color: var(--brick-dark);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.1rem;
}

.fellow-org {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.4rem;
}
.fellow-name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 0.6rem;
}
.fellow-project {
    color: var(--ink-soft);
    font-size: 0.97rem;
    margin-bottom: 1.1rem;
}

/* ---------- About / format ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.about-prose p { font-size: 1.08rem; margin-bottom: 1.2rem; color: var(--ink-soft); }
.about-prose strong { color: var(--ink); }

.pull-quote {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    line-height: 1.25;
    color: var(--brick-dark);
    font-style: italic;
    border-left: 4px solid var(--brick);
    padding: 0.4rem 0 0.4rem 1.4rem;
    margin: 1.6rem 0;
}

.format-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.9rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 96px;
}
.format-card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--ink);
}
.format-list { display: grid; gap: 1.1rem; }
.format-row dt {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brick);
    margin-bottom: 0.2rem;
}
.format-row dd { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Organizers ---------- */
.organizer-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}
.organizer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 2.2rem 1.75rem;
    box-shadow: var(--shadow-sm);
}
.organizer-img {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.2rem;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(95, 40, 38, 0.18);
}
.organizer-card h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
}
.organizer-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 0.9rem;
}
.organizer-bio { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 1.2rem; }

/* ---------- 2025 showcase ---------- */
.section-showcase { background: linear-gradient(180deg, #fff6f4 0%, var(--paper) 100%); border-radius: 28px; }
.tension {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}
.tension span {
    background: var(--teal-soft);
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
}
.tension .tension-vs {
    background: none;
    color: var(--ink-soft);
    font-style: italic;
    font-weight: 500;
    padding: 0 0.1rem;
}
.dual-note {
    font-size: 0.82rem;
    color: var(--ink-soft);
    font-style: italic;
    background: var(--brick-tint);
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.showcase-card-dual { border-color: var(--brick); }

/* ---------- Research ---------- */
.section-research { padding-top: 1rem; }
.research-card {
    background: var(--ink);
    color: #fff;
    border-radius: 24px;
    padding: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.research-card .section-kicker { color: #e9b4b1; }
.research-card h2 { color: #fff; font-style: italic; max-width: 620px; margin: 0.6rem auto 1.2rem; }
.research-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}
.badge {
    background: var(--brick);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
}
.research-desc { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---------- Apply ---------- */
.apply-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}
.apply-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.apply-card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--ink); }
.apply-card p { color: var(--ink-soft); margin-bottom: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 3rem clamp(1.25rem, 5vw, 2.5rem);
    text-align: center;
    background: #fff;
}
.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.footer-logo { height: 34px; width: auto; opacity: 0.85; transition: opacity 0.2s ease; }
.footer-logo:hover { opacity: 1; }
.footer-note { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.8; }
.footer-note a { color: var(--brick-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; }
    .format-card { position: static; }
    .nav-brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
