/* ==========================================================
   Foundations and Frontiers of Watermarking — CVPR 2026
   Clean, academic, typographic theme
   ========================================================== */

:root {
    --bg: #ffffff;
    --bg-alt: #f7f5f0;            /* warm off-white for alt sections */
    --fg: #0f1116;
    --fg-muted: #4b5563;
    --fg-soft: #6b7280;
    --rule: #e5e3dc;              /* hairline borders */
    --rule-strong: #d4d1c7;
    --accent: #0b1b3a;            /* deep navy */
    --accent-soft: #1c3a7a;
    --accent-bg: #eef1f8;
    --link: #0b1b3a;
    --link-hover: #1c3a7a;

    --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    --max-w: 1080px;
    --gutter: clamp(20px, 4vw, 40px);
    --radius: 6px;
    --shadow-sm: 0 1px 2px rgba(15, 17, 22, 0.04);
}

/* -----  RESET & BASE  ----- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--fg);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    border: none;
    z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -----  NAV  ----- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rule);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    border: none;
    color: var(--fg);
    font-weight: 600;
}
.brand-mark {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--accent);
}
.brand-title {
    font-size: 0.92rem;
    color: var(--fg-muted);
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}
.nav-links a {
    border: none;
    color: var(--fg-muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 6px 2px;
    position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    padding: 8px 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--fg);
    margin: 3px 0;
}

/* -----  HERO  ----- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 14vw, 140px) var(--gutter) clamp(60px, 10vw, 100px);
    background: linear-gradient(180deg, #0b1b3a 0%, #142a55 60%, #1c3a7a 100%);
    color: #f3f4f8;
    text-align: left;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("assets/cover.png");
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: saturate(0.6);
}

.hero-inner {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: #c9d2e8;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 5.2vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 18px;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: #d6dbe8;
    max-width: 720px;
    margin-bottom: 36px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    color: #c9d2e8;
    font-size: 0.95rem;
    margin-bottom: 36px;
}
.hero-meta strong {
    color: #fff;
    font-weight: 600;
    margin-right: 6px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all .15s ease;
    cursor: pointer;
}
.btn-primary {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
}
.btn-primary:hover {
    background: #f3f4f8;
    color: var(--accent);
}
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}
a.btn { border-bottom: 1px solid transparent; }
a.btn:hover { border-bottom: 1px solid transparent; }

/* -----  LOGO STRIP  ----- */

.logo-strip {
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
}
.logo-strip-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 72px;
}
.logo-strip img {
    height: 72px;
    width: auto;
    opacity: 0.92;
    transition: opacity .15s ease;
}
.logo-strip img:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    .logo-strip img { height: 52px; }
    .logo-strip-inner { gap: 28px 40px; padding: 36px var(--gutter); }
}

/* -----  CONTAINER & SECTIONS  ----- */

.container {
    /* sections handle their own width */
}

.section {
    padding: clamp(60px, 9vw, 100px) var(--gutter);
}
.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.section-header {
    max-width: var(--max-w);
    margin: 0 auto 48px;
}

.section-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-soft);
    font-weight: 600;
    margin: 0 0 12px;
}

.section h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.section-sub {
    color: var(--fg-muted);
    margin-top: 14px;
    max-width: 720px;
    font-size: 1.02rem;
}

.prose {
    max-width: var(--max-w);
    margin: 0 auto;
}
.prose h3 {
    font-size: 1.3rem;
    margin: 2em 0 .5em;
}
.lede {
    font-size: 1.12rem;
    color: var(--fg);
    max-width: 760px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
    max-width: 820px;
}
.check-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--rule);
    color: var(--fg);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* -----  SCHEDULE  ----- */

.schedule {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: var(--max-w);
    border-top: 1px solid var(--rule);
}

.schedule-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
}

.schedule-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}
.time-range {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.time-len {
    font-size: 0.82rem;
    color: var(--fg-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.schedule-body h3 {
    font-size: 1.25rem;
    margin: 0 0 6px;
    color: var(--fg);
}
.schedule-speaker {
    color: var(--accent-soft);
    font-size: 0.92rem;
    font-weight: 500;
    margin: 0 0 10px;
}
.schedule-body p:last-child { margin-bottom: 0; color: var(--fg-muted); }

.schedule-break {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    color: var(--fg-soft);
    font-size: 0.92rem;
    font-style: italic;
    text-align: center;
}

/* -----  SPEAKERS  ----- */

.speakers {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px 32px;
}

.speaker-card {
    text-align: left;
}
.speaker-card img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid var(--rule);
}
.speaker-card h3 {
    font-size: 1.15rem;
    margin: 0 0 4px;
}
.affiliation {
    color: var(--accent-soft);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 12px;
}
.bio {
    font-size: 0.95rem;
    color: var(--fg-muted);
    margin: 0 0 12px;
}
.speaker-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.speaker-links a {
    font-size: 0.85rem;
    color: var(--accent);
    border-bottom-width: 1px;
}

/* -----  PAPERS  ----- */

.papers {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.papers-group h3 {
    font-size: 1.2rem;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.paper-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.paper-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.95rem;
    color: var(--fg);
}
.paper-list li:last-child { border-bottom: none; }
.paper-list em {
    font-style: italic;
    color: var(--fg);
}

/* -----  MATERIALS  ----- */

.materials-subhead {
    max-width: var(--max-w);
    margin: 0 auto 16px;
    font-size: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: block;
    width: fit-content;
}
.materials-subhead + .materials-grid,
.slide-list + .materials-subhead {
    margin-top: 40px;
}

.slide-list {
    max-width: var(--max-w);
    margin: 0 auto;
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--rule);
}
.slide-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
}
.slide-meta { min-width: 0; }
.slide-talk {
    margin: 0 0 4px;
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--fg);
}
.slide-speaker {
    margin: 0;
    font-size: 0.9rem;
    color: var(--accent-soft);
    font-weight: 500;
}
a.slide-link {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
a.slide-link:hover {
    background: var(--accent-soft);
    color: #fff;
    border-color: var(--accent-soft);
}
.slide-status {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent-soft);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.materials-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.material-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 22px;
    color: var(--fg);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.material-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    color: var(--fg);
}
.material-card[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.85;
}
.material-card[aria-disabled="true"]:hover {
    border-color: var(--rule);
    box-shadow: none;
}

.material-tag {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 10px;
}
.material-card h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
}
.material-card p {
    font-size: 0.92rem;
    color: var(--fg-muted);
    margin: 0 0 12px;
}
.material-status {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent-soft);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
}

/* -----  VENUE  ----- */

.venue-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.venue-item {
    padding: 22px 24px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.venue-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--fg-soft);
    font-weight: 600;
    margin: 0 0 8px;
}
.venue-value {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--fg);
}

.venue-note {
    max-width: var(--max-w);
    margin: 24px auto 0;
    color: var(--fg-muted);
    font-size: 1rem;
}

/* -----  CONTACT  ----- */

.contact-card {
    max-width: var(--max-w);
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 28px 32px;
}
.contact-card p { margin: 0 0 .6em; }
.contact-card p:last-child { margin-bottom: 0; color: var(--fg-muted); }

/* -----  FOOTER  ----- */

.footer {
    background: var(--accent);
    color: #d6dbe8;
    padding: 40px var(--gutter);
    margin-top: 0;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}
.footer p { margin: 0 0 6px; color: #fff; font-size: 0.95rem; }
.footer-sub { color: #c9d2e8; font-size: 0.88rem; }

/* -----  RESPONSIVE  ----- */

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; flex-direction: column; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        gap: 0;
        padding: 8px var(--gutter) 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--rule);
        font-size: 1rem;
    }
    .nav-links a:last-child { border-bottom: none; }

    .site-nav { position: sticky; }
    .nav-inner { position: relative; }

    .schedule-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px 0;
    }
    .schedule-time { flex-direction: row; gap: 12px; align-items: baseline; }

    .hero { text-align: left; }
    .venue-item { border-right: none; }
}

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