/* ------------------------------------------------------------------
   site.css — shared design tokens + components for sztup.github.io
   Consolidated from previously duplicated inline <style> blocks.
   Loaded alongside the compiled Tailwind output (styles.css).
------------------------------------------------------------------ */

:root {
    --nav:    #1b1b1b;
    --text:   #212121;
    --cream:  #e1dfdb;
    --muted:  #bdbdbd;
    --btn:    #303033;
}

/* Tailwind utility supplements — a few utilities used by the newer pages that
   are not present in the purged/compiled styles.css. Defined here so the site
   renders correctly without depending on a Tailwind rebuild. */
.items-baseline { align-items: baseline; }
.mb-3  { margin-bottom: 0.75rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-16 { margin-top: 4rem; }
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:block { display: block; }
}

html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); line-height: 1.75; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }
.section-anchor { scroll-margin-top: 72px; }

/* Section header underline rule (used under h2 section titles) */
.section-rule { width: 48px; height: 2px; background: var(--btn); margin-bottom: 2rem; }

/* Pure-CSS hamburger */
#nav-toggle { display: none; }
#nav-toggle:checked ~ div #nav-menu { display: flex; }
@media (max-width: 768px) {
    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav);
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
}

/* Buttons */
.btn-dark {
    display: inline-block;
    background: var(--btn);
    color: #fff;
    padding: 0.55rem 1.3rem;
    border: 1px solid var(--btn);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.2s;
    cursor: pointer;
}
.btn-dark:hover { opacity: 0.82; }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--btn);
    padding: 0.55rem 1.3rem;
    border: 1px solid var(--btn);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--btn);
    color: #fff;
}

/* Prose helper */
.prose p { margin-bottom: 1.25rem; }
.prose ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* ------------------------------------------------------------------
   Cards (bordered content boxes — used on Tools + Writing pages)
------------------------------------------------------------------ */
.card {
    background: #fff;
    border: 1px solid #ccc8c3;
    padding: 1.25rem;
}
.card-cream {
    background: var(--cream);
    border: 1px solid #ccc8c3;
}
.card-title {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Language chip (EN / HU tags on videos) */
.lang-chip {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--btn);
    color: var(--btn);
    border-radius: 999px;
    line-height: 1.4;
}
.lang-chip.hu { background: var(--btn); color: #fff; }

/* Meta label (uppercase tracked subheads) */
.meta-label {
    font-family: 'Open Sans', sans-serif;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

/* ------------------------------------------------------------------
   Lite YouTube embed — click-to-load thumbnail. No third-party
   request until the visitor clicks, so it respects the cookie/consent
   model and keeps the page fast.
------------------------------------------------------------------ */
.lite-yt {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background-color: #000;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    cursor: pointer;
}
.lite-yt::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 27, 27, 0.28);
    transition: background 0.2s;
}
.lite-yt:hover::after { background: rgba(27, 27, 27, 0.12); }
.lite-yt .lite-yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 64px;
    height: 46px;
    background: rgba(27, 27, 27, 0.82);
    border-radius: 12px;
    transition: background 0.2s;
}
.lite-yt:hover .lite-yt-play { background: #c00; }
.lite-yt .lite-yt-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
}
.lite-yt.activated { cursor: default; }
.lite-yt.activated::after,
.lite-yt.activated .lite-yt-play { display: none; }
.lite-yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
