@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Archivo:wght@400;500;600;700&display=swap');

:root {
    --tp-ink: oklch(20% 0.02 40);
    --tp-bg: oklch(97% 0.015 75);
    --tp-bg-alt: oklch(93% 0.02 75);
    --tp-muted: oklch(55% 0.02 40);
    --tp-border: oklch(90% 0.01 75);
    --tp-accent: #DD5A2C;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--tp-bg);
    color: var(--tp-ink);
    font-family: 'Archivo', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.tp-page { max-width: 1328px; margin: 0 auto; }

/* header */
.tp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 56px;
}
.tp-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.tp-back-link { font-size: 14px; opacity: 0.55; }
.tp-back-link:hover { opacity: 0.85; }

/* buttons */
.tp-btn {
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.tp-btn--pill {
    background: var(--tp-accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 999px;
}
.tp-btn--pill:hover { background: color-mix(in oklch, var(--tp-accent) 85%, black); }
.tp-btn--pill:active { transform: scale(0.98); }

/* hero / countdown */
.tp-hero { text-align: center; padding: 32px 24px 60px; }
.tp-hero-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tp-accent);
    margin-bottom: 20px;
}
.tp-countdown { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.tp-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tp-unit-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 52px;
    line-height: 1;
    background: var(--tp-bg-alt);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 84px;
    font-variant-numeric: tabular-nums;
}
.tp-unit-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tp-muted);
}
.tp-tagline {
    margin-top: 26px;
    font-size: 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* board */
.tp-board { padding: 0 56px 80px; }
.tp-board-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 26px;
}
.tp-board-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.01em;
    margin: 0;
}
.tp-edition-line { font-size: 13px; opacity: 0.65; }

.tp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.tp-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tp-border);
    transition: transform .2s ease, box-shadow .2s ease;
}
.tp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(36,30,27,0.10); }
.tp-card--upcoming { border: 2px solid var(--tp-accent); }

.tp-card-photo {
    position: relative;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
}
.tp-camera { color: inherit; }
.tp-card-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--tp-bg-alt);
    color: var(--tp-muted);
}
.tp-badge--upcoming {
    background: color-mix(in oklch, var(--tp-accent) 18%, white);
    color: var(--tp-accent);
}
.tp-badge--inline { position: static; display: inline-block; }

.tp-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.tp-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
}
.tp-card-meta { font-size: 12.5px; opacity: 0.6; }
.tp-card-desc {
    font-size: 13.5px;
    line-height: 1.5;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tp-card-cta {
    margin-top: auto;
    padding-top: 6px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--tp-accent);
}

/* signup page */
.tp-signup {
    display: flex;
    gap: 48px;
    padding: 24px 56px 80px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.tp-signup-left { flex: 1 1 460px; min-width: 320px; }
.tp-signup-right {
    flex: 1 1 380px;
    min-width: 300px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--tp-border);
    padding: 32px;
}

.tp-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tp-accent);
    margin-bottom: 14px;
}
.tp-signup-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}
.tp-signup-sub {
    font-size: 16px;
    opacity: 0.75;
    max-width: 400px;
    margin: 0 0 28px;
}

.tp-summary-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--tp-accent);
    margin-bottom: 20px;
}
.tp-summary-card .tp-card-photo { height: 170px; }
.tp-summary-card .tp-card-body { padding: 18px 20px 20px; }

.tp-mini-countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.tp-chip {
    background: var(--tp-bg-alt);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tp-form { display: flex; flex-direction: column; gap: 18px; }
.tp-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 8px;
}
.tp-field input,
.tp-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--tp-border);
    border-radius: 12px;
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    color: inherit;
    background: var(--tp-bg);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tp-field textarea { resize: none; }
.tp-field input:focus,
.tp-field textarea:focus {
    border-color: var(--tp-accent);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--tp-accent) 18%, transparent);
    outline: none;
}

.tp-submit {
    margin-top: 6px;
    background: var(--tp-accent);
    color: #fff;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.tp-submit:hover { background: color-mix(in oklch, var(--tp-accent) 85%, black); }
.tp-submit:active { transform: scale(0.98); }
.tp-submit:disabled { opacity: 0.7; cursor: default; }

.tp-form-status { min-height: 1.2em; font-size: 13.5px; }
.tp-form-status--ok { color: var(--tp-accent); font-weight: 600; }
.tp-form-status--error { color: #c23b3b; }

/* event detail page */
.tp-event { padding: 8px 56px 80px; max-width: 900px; margin: 0 auto; }
.tp-back-link { font-size: 14px; opacity: 0.55; }
.tp-back-link:hover { opacity: 0.85; }

.tp-event-head { margin-top: 24px; margin-bottom: 20px; }
.tp-event-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -0.01em;
    margin: 12px 0 8px;
}

.tp-event-story { font-size: 16px; line-height: 1.7; opacity: 0.9; }
.tp-event-story p { margin: 0 0 16px; }

.tp-event-cta { margin: 8px 0 40px; }

.tp-event-subhead {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin: 40px 0 18px;
}

.tp-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.tp-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--tp-border);
    cursor: zoom-in;
    transition: opacity .15s ease;
}
.tp-gallery img:hover { opacity: 0.88; }

/* lightbox */
.tp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 12, 0.94);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.tp-lightbox--open { display: flex; }
.tp-lightbox-img {
    max-width: 88vw;
    max-height: 84vh;
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.tp-lightbox-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    transition: background-color .15s ease;
}
.tp-lightbox-btn:hover { background: rgba(255,255,255,0.2); }
.tp-lightbox-close { top: 20px; right: 20px; }
.tp-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.tp-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.tp-lightbox-count {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.tp-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.tp-video {
    position: relative;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}
.tp-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* responsive */
@media (max-width: 900px) {
    .tp-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .tp-header, .tp-board, .tp-signup, .tp-event { padding-left: 24px; padding-right: 24px; }
    .tp-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
    .tp-grid { grid-template-columns: 1fr; }
    .tp-unit-num { font-size: 40px; padding: 12px 16px; min-width: 64px; }
    .tp-signup-title { font-size: 30px; }
    .tp-event-title { font-size: 28px; }
    .tp-gallery { grid-template-columns: 1fr; }
    .tp-video-grid { grid-template-columns: 1fr; }
    .tp-lightbox-btn { width: 38px; height: 38px; }
    .tp-lightbox-prev { left: 8px; }
    .tp-lightbox-next { right: 8px; }
    .tp-lightbox-close { top: 10px; right: 10px; }
}
