/* =====================================================================
   gabrielcomeron.com — Editorial minimalism
   Light theme only. Mobile-first. Hand-written, no framework.
   ===================================================================== */

:root {
    /* Palette — warm paper + ink, single restrained accent */
    --paper:        #faf8f3;
    --paper-2:      #f3efe6;
    --ink:          #1f1c19;
    --ink-soft:     #4a443d;
    --ink-muted:    #8a8276;
    --rule:         #e4ded2;
    --accent:       #9c4a2f;   /* terracotta */
    --accent-deep:  #7d3a23;

    /* Type */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-prose:   "Newsreader", Georgia, "Times New Roman", serif;
    --font-ui:      ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Layout */
    --measure: 42rem;     /* reading width */
    --wide:    66rem;
    --space:   clamp(1.2rem, 4vw, 2rem);
}

/* --- Reset-ish --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }

/* --- Helpers ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--space); }
.container--narrow { max-width: var(--measure); }
.muted { color: var(--ink-muted); }
.site-main { flex: 1 0 auto; padding-block: clamp(2.5rem, 7vw, 5rem); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: var(--paper);
    padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.text-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    transition: border-color .15s ease;
}
.text-link:hover { border-color: var(--accent); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
    border-bottom: 1px solid var(--rule);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(120%) blur(6px);
    position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 4rem;
}
.wordmark {
    display: inline-flex; align-items: center; gap: .6rem;
    text-decoration: none; color: var(--ink);
}
.wordmark__monogram {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    width: 2.1rem; height: 2.1rem;
    flex: 0 0 auto;
    display: inline-grid; place-items: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.wordmark:hover .wordmark__monogram { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wordmark__name { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }

.site-nav__list {
    list-style: none; display: flex; gap: 1.4rem;
    margin: 0; padding: 0;
}
.site-nav a {
    position: relative;
    text-decoration: none; color: var(--ink-soft);
    font-size: .95rem; letter-spacing: .01em;
    padding-bottom: 4px;
    transition: color .2s ease;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Discreet IT-studio funnel: a quiet accent pill, not a loud button. */
.site-nav a.site-nav__cta {
    color: var(--accent);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: .25rem .85rem;
}
.site-nav a.site-nav__cta::after { display: none; }
.site-nav a.site-nav__cta:hover {
    color: var(--paper);
    background: var(--accent);
    border-color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none; border: 0; cursor: pointer;
    width: 2.5rem; height: 2.5rem; padding: 0;
    flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle__bar { width: 22px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

/* =====================================================================
   Home / intro
   ===================================================================== */
.intro { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.intro__greeting { display: flex; align-items: center; justify-content: space-between; gap: .9rem; margin-bottom: 1.2rem; }
.intro__greeting .intro__eyebrow { margin: 0; }
.intro__avatar {
    flex: 0 0 auto; display: block; width: 3.9rem; height: 3.9rem;
    border-radius: 50%; overflow: hidden;
    box-shadow: 0 6px 16px -9px rgba(31, 28, 25, .55);
}
.intro__avatar img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    transform: scale(1.22); transform-origin: center 30%;
}
.intro__eyebrow {
    font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-muted); margin: 0 0 1.2rem;
}
.intro__statement {
    font-size: clamp(1.7rem, 4.6vw, 2.5rem);
    line-height: 1.12; margin: 0 0 1.5rem; font-weight: 400;
}
.intro__statement em { font-style: italic; color: var(--accent); }
.intro__lede { font-family: var(--font-prose); font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; }
.intro__links {
    margin-top: 1.75rem;
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 0.75rem;
}
.intro__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem; line-height: 1;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.intro__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
@media (max-width: 30rem) {
    .intro__links { flex-direction: column; align-items: stretch; }
    .intro__btn { width: 100%; }
}

/* Error pages (404 / 500) */
.error-page { text-align: center; padding-block: clamp(3rem, 12vw, 6rem); }
.error-page__code {
    font-size: clamp(3rem, 10vw, 4.5rem); line-height: 1;
    color: var(--accent); margin: 0 0 .75rem; letter-spacing: .04em;
}
.error-page__title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 400; margin: 0 0 1rem; }
.error-page__text { font-family: var(--font-prose); font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; margin: 0 auto 1.75rem; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* Section heads */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head__title { font-size: 1.4rem; margin: 0; }
.home-articles { padding-block: clamp(1rem, 4vw, 2rem); }

/* =====================================================================
   Article lists
   ===================================================================== */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-row { border-top: 1px solid var(--rule); }
.article-row:last-child { border-bottom: 1px solid var(--rule); }
.article-row__link {
    display: block; text-decoration: none; color: inherit;
    padding: 1.6rem 0;
    transition: background .15s ease;
}
.article-row__link:hover .article-row__title { color: var(--accent); }
.article-row__title { font-size: 1.4rem; margin: 0 0 .35rem; transition: color .15s ease; }
.article-row__meta { font-size: .85rem; color: var(--ink-muted); display: flex; gap: .5rem; align-items: center; }
.article-row__summary { font-family: var(--font-prose); color: var(--ink-soft); margin: .6rem 0 .4rem; max-width: 40rem; }
.dot { color: var(--rule); }

/* =====================================================================
   Tags
   ===================================================================== */
.tag-list { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
    display: inline-block;
    font-size: .76rem; letter-spacing: .03em;
    color: var(--ink-soft);
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: .2rem .7rem;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}
a.tag:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--rule)); }
.tag--active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag__count { opacity: .6; }
.tag-filter { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.5rem 0 0; }

/* =====================================================================
   Page heads / prose pages
   ===================================================================== */
.page-head { margin-bottom: 2rem; }
.page-head__title { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 .5rem; }
.page-head__lede { font-family: var(--font-prose); font-size: 1.15rem; color: var(--ink-soft); margin: 0; }

/* =====================================================================
   Article search
   ===================================================================== */
.article-search { display: flex; gap: .5rem; margin-top: 1.5rem; flex-wrap: wrap; justify-content: center; }
.article-search input[type="search"] {
    flex: 1; min-width: 12rem; font: inherit; padding: .65rem .9rem;
    border: 1px solid var(--rule); border-radius: 6px;
    background: #fff; color: var(--ink);
}
.article-search button, .newsletter__row button, .btn {
    font: inherit; cursor: pointer;
    background: var(--ink); color: var(--paper);
    border: 1px solid var(--ink); border-radius: 6px;
    padding: .65rem 1.2rem;
    transition: background .15s ease;
}
.article-search button:hover, .newsletter__row button:hover, .btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
}

/* =====================================================================
   Article (single) + prose
   ===================================================================== */
.article__header { margin-bottom: 2rem; }
.article__title { font-size: clamp(2.1rem, 5.5vw, 3rem); margin: 0 0 .8rem; }
.article__meta { font-size: .9rem; color: var(--ink-muted); display: flex; gap: .5rem; align-items: center; }
.article__cover { margin: 0 0 2.5rem; }
.article__cover img { border-radius: 8px; }

.prose {
    font-family: var(--font-prose);
    font-size: 1.225rem;
    line-height: 1.72;
    color: var(--ink);
}
.prose > * + * { margin-top: 1.4em; }
.prose p { margin: 0; }
.prose .lead, .prose .lead p { font-size: 1.3rem; color: var(--ink-soft); }
.prose h2 { font-size: 1.7rem; margin-top: 2.4em; }
.prose h3 { font-size: 1.35rem; margin-top: 2em; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.prose a:hover { border-color: var(--accent); }
.prose img { border-radius: 8px; margin-inline: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-family: var(--font-ui); font-size: .85rem; color: var(--ink-muted); text-align: center; margin-top: .6rem; }
.prose blockquote {
    margin: 2em 0; padding: .2em 0 .2em 1.4rem;
    border-left: 3px solid var(--accent);
    font-style: italic; color: var(--ink-soft);
}
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: .85em; background: var(--paper-2);
    padding: .15em .4em; border-radius: 4px;
}
.prose pre {
    background: #2b2722; color: #f3efe6;
    padding: 1.1rem 1.2rem; border-radius: 8px;
    overflow-x: auto; font-size: .92rem; line-height: 1.5;
}
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .6rem .5rem; text-align: left; }
.prose .footnote { font-size: .95rem; color: var(--ink-soft); }
.prose em { font-style: italic; color: var(--accent); }

/* About: portrait + trivia */
.about-intro { display: flex; align-items: center; gap: 2.2rem; }
.about-intro .lead { margin: 0; }
.about-portrait { margin: .5rem .6rem; flex: 0 0 auto; order: 2; }
.about-portrait img {
    display: block; width: 10.5rem; height: 10.5rem;
    border-radius: 50%; object-fit: cover; object-position: center top;
    box-shadow: 0 16px 34px -18px rgba(31, 28, 25, .5);
}
@media (max-width: 640px) {
    .about-intro { flex-direction: column; text-align: center; gap: 1.5rem; }
    .about-portrait img { width: 9rem; height: 9rem; }
}
.about-prose { font-size: 1.15rem; }
.about-prose .lead { font-size: 1.2rem; }
.about-prose strong { font-weight: 700; color: var(--ink); }
.about-prose > * + * { margin-top: 1.6em; }
.about-prose > p + p::before,
.about-prose > .about-intro + p::before {
    content: ""; display: block; width: 2.5rem; height: 1px;
    background: var(--rule); margin: 0 auto 1.6em;
}
.trivia-note { font-size: 1.05rem; color: var(--ink-soft); }
.trivia { margin-top: 1.2rem; border-top: 1px solid var(--rule); }
.trivia__item {
    display: grid; grid-template-columns: 13rem 1fr; gap: .3rem 1.5rem;
    padding: .7rem 0; border-bottom: 1px solid var(--rule);
}
.trivia dt {
    margin: 0; align-self: baseline;
    font-family: var(--font-ui); font-size: .78rem; letter-spacing: .04em;
    text-transform: uppercase; color: var(--accent);
}
.trivia dd { margin: 0; font-size: 1.05rem; color: var(--ink); }
@media (max-width: 560px) {
    .trivia__item { grid-template-columns: 1fr; gap: .15rem; }
}

.related { margin-top: 4rem; }
.library-list { list-style: none; padding: 0; }
.library-list li { padding: .6rem 0; border-bottom: 1px solid var(--rule); }

/* =====================================================================
   Collections (Now / Library sections + items)
   ===================================================================== */
.collection { margin-top: 3rem; }
.collection:first-of-type { margin-top: 1rem; }
.collection__title { font-size: 1.5rem; margin: 0 0 .3rem; }
.collection__intro { font-family: var(--font-prose); color: var(--ink-soft); margin: 0 0 1.2rem; max-width: 38rem; }
.collection__items { list-style: none; margin: 0; padding: 0; }

.item {
    display: flex; gap: 1.1rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--rule);
}
.item:last-child { border-bottom: 1px solid var(--rule); }
.item__media { flex: 0 0 auto; }
.item__media img {
    width: 64px; height: auto; border-radius: 4px;
    box-shadow: 0 2px 10px rgba(31, 28, 25, .12);
}
.item__body { min-width: 0; }
.item__title { font-size: 1.15rem; margin: 0 0 .2rem; line-height: 1.3; }
.item--link .item__title a {
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    transition: color .15s ease, border-color .15s ease;
}
.item--link .item__title a:hover { color: var(--accent); border-color: var(--accent); }
.item__ext { color: var(--ink-muted); text-decoration: none; font-size: .85em; }
.item__ext:hover { color: var(--accent); }
.item__subtitle { color: var(--ink-muted); font-size: .9rem; margin: 0 0 .4rem; }
.item__note { font-family: var(--font-prose); color: var(--ink-soft); margin: .3rem 0 0; }
.item__more { margin: .5rem 0 0; }

.now-footnote { margin-top: 3rem; }

@media (max-width: 520px) {
    .item__media img { width: 52px; }
}

/* =====================================================================
   Newsletter
   ===================================================================== */
.newsletter {
    margin-top: 4rem;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: clamp(1.5rem, 4vw, 2.4rem);
}
.newsletter__heading { font-size: 1.5rem; margin: 0 0 .5rem; }
.newsletter__blurb { font-family: var(--font-prose); color: var(--ink-soft); margin: 0 0 1.2rem; max-width: 34rem; }
.newsletter__row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.newsletter__row input[type="email"] {
    flex: 1; min-width: 12rem; font: inherit;
    padding: .65rem .9rem; border: 1px solid var(--rule);
    border-radius: 6px; background: #fff;
}
.newsletter__feedback { font-size: .9rem; margin: .7rem 0 0; min-height: 1.2em; }
.newsletter__feedback.is-ok { color: var(--accent-deep); }
.newsletter__feedback.is-error { color: #b23b3b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   Forms (contact)
   ===================================================================== */
.contact-form { display: grid; gap: 1.2rem; margin-top: 1rem; }
.form-field { display: grid; gap: .4rem; }
.form-field label { font-size: .9rem; color: var(--ink-soft); }
.form-field input, .form-field textarea {
    font: inherit; padding: .7rem .9rem;
    border: 1px solid var(--rule); border-radius: 6px;
    background: #fff; color: var(--ink); width: 100%;
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-error { color: #b23b3b; font-size: .85rem; margin: 0; }
.btn { justify-self: start; }
.contact-form .btn { justify-self: center; margin-top: .4rem; }
.contact-alt { margin-top: 1.6rem; text-align: center; }
.contact-alt a { color: var(--accent); text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

/* =====================================================================
   Messages
   ===================================================================== */
.messages { max-width: var(--measure); margin: 0 auto 1.5rem; padding-inline: var(--space); }
.message { padding: .8rem 1rem; border-radius: 6px; font-size: .95rem; margin-bottom: .5rem; }
.message--success { background: #eaf3ea; color: #2f6b3a; border: 1px solid #cfe4cf; }
.message--error { background: #f7e9e9; color: #9a3434; border: 1px solid #e6cccc; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--rule);
    background: var(--paper-2);
    padding-block: 2.5rem;
    margin-top: 4rem;
}
.site-footer__inner { display: grid; gap: 1.5rem; }
.site-footer__brand { display: flex; align-items: center; gap: .8rem; }
.site-footer__tagline { font-family: var(--font-prose); color: var(--ink-soft); margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer__nav a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__pitch { margin: 0; font-size: .9rem; color: var(--ink-muted); }
.site-footer__pitch a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.site-footer__pitch a:hover { border-bottom-color: var(--accent); }
.site-footer__meta { display: flex; align-items: center; gap: 1rem; }
.social-link { color: var(--ink-soft); transition: color .15s ease; display: inline-flex; }
.social-link:hover { color: var(--accent); }
.site-footer__copy { margin: 0; font-size: .85rem; color: var(--ink-muted); }

/* =====================================================================
   Responsive — mobile nav
   ===================================================================== */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        box-shadow: 0 16px 30px -20px rgba(31, 28, 25, .5);
        max-height: 0; overflow: hidden;
        transition: max-height .28s ease;
    }
    .site-nav.is-open { max-height: 34rem; }
    .site-nav__list { flex-direction: column; gap: 0; padding: .25rem var(--space) 1rem; }
    .site-nav__list li { border-top: 1px solid var(--rule); }
    .site-nav a { display: block; padding: .95rem 0; }
    .site-nav a::after { display: none; }
    .site-nav a[aria-current="page"] { color: var(--accent); }
    /* The IT funnel reads as a plain accent link in the stacked menu. */
    .site-nav a.site-nav__cta {
        border: 0; border-radius: 0; padding: .95rem 0;
        color: var(--accent); font-weight: 500;
    }
    .site-nav a.site-nav__cta:hover { background: none; color: var(--accent-deep); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(3.25px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

@media (min-width: 760px) {
    .site-footer__inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .site-footer__nav { grid-column: 1 / -1; }
}

/* =====================================================================
   Responsive — small-screen polish
   ===================================================================== */
/* Never let long words, links, or code strings push the page sideways. */
.prose, .article-row__summary, .item__note, .intro__lede { overflow-wrap: break-word; }

@media (max-width: 560px) {
    /* Slightly tighter reading size on phones. */
    .prose { font-size: 1.12rem; line-height: 1.7; }
    .prose .lead, .prose .lead p { font-size: 1.18rem; }
    /* Wide tables scroll on their own instead of stretching the layout. */
    .prose table { display: block; width: 100%; overflow-x: auto; }
    /* Keep section heads (title + "view all" link) readable when cramped. */
    .section-head { flex-wrap: wrap; gap: .35rem .75rem; }
}

/* =====================================================================
   Secret events — password gate + photo gallery
   ===================================================================== */
.secret-gate {
    min-height: 50vh;
    display: grid;
    place-items: center;
    padding-block: 3rem;
}
.secret-gate__card {
    width: 100%;
    max-width: 24rem;
    text-align: center;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 2rem 1.6rem;
}
.secret-gate__title { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 .4rem; }
.secret-gate__lede { color: var(--ink-soft); margin: 0 0 1.4rem; }
.secret-gate__field { margin-bottom: 1rem; text-align: left; }
.secret-gate__field input {
    font: inherit; width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--rule); border-radius: 6px;
    background: #fff; color: var(--ink);
}
.secret-gate__error { color: #b23b3b; font-size: .85rem; margin: .4rem 0 0; }
.secret-gate .btn { width: 100%; text-align: center; }

.secret-event__intro {
    font-family: var(--font-prose);
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin: .5rem 0 0;
}

.secret-gallery {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.secret-gallery__item { margin: 0; }
.secret-gallery__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: var(--paper-2);
}
.secret-gallery__item figcaption {
    margin-top: .4rem;
    font-size: .85rem;
    color: var(--ink-muted);
}

