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

html, body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

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

/* ===========================================================
   Dark Czech Café — design system
   See resources/templates/dark_czech_cafe/styleguide.html for
   the full reference; keep both in sync if the system changes.
=========================================================== */

:root {
    --bg: #0c0c0d;
    --bg-panel: #131315;
    --red: #b31217;
    --red-hot: #ff2b2b;
    --ink: #e9e7e2;
    --ink-dim: #8d8c8a;
    --line: #2a2a2c;
    --line-strong: #47474a;

    --f-display: "Big Shoulders Display", sans-serif;
    --f-body: "IBM Plex Serif", serif;
    --f-mono: "IBM Plex Mono", monospace;

    --measure: min(78%, 1200px);
    --gutter: clamp(1.25rem, 4vw, 2rem);
}

html { background: var(--bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1.05rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 0.6em; }

h1 {
    font-family: var(--f-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    line-height: 1.05;
}
h2 {
    font-family: var(--f-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    line-height: 1.15;
}
h3 {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-dim);
}
h3::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--red);
    flex: none;
}

p { margin: 0 0 1em; }
.lede { max-width: 68ch; font-size: 1.05rem; }
em { font-style: italic; color: var(--ink-dim); }
strong { font-weight: 600; color: var(--ink); }
.dim { color: var(--ink-dim); }

a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--red-hot); border-color: var(--red-hot); }
a:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }

.link-quiet { border-bottom-color: transparent; color: var(--ink-dim); }
.link-quiet:hover { color: var(--red-hot); border-color: var(--red-hot); }

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2rem 0;
}

figure { margin: 0 0 1.5em; }
figcaption {
    margin-top: 0.5em;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--ink-dim);
}

.container {
    max-width: var(--measure);
    margin-inline: auto;
    padding: clamp(2.5rem, 10vw, 5rem) var(--gutter) 4rem;
}

#title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}
#title-title {
    font-family: var(--f-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    letter-spacing: -0.01em;
    border-bottom: none;
    text-shadow: 0 0 18px rgba(179, 18, 23, 0.35);
    margin: 0;
}
#title-title:hover { color: var(--ink); text-shadow: 0 0 22px rgba(255, 43, 43, 0.5); }
#title-lang {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-dim);
    border-bottom: 1px solid transparent;
}
#title-lang:hover { color: var(--red-hot); border-color: var(--red-hot); }

#menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 2.5rem;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.menu-item {
    color: var(--ink-dim);
    border-bottom: 1px solid transparent;
}
.menu-item:hover { color: var(--red-hot); border-color: var(--red-hot); }
.menu-item.is-active { color: var(--ink); border-color: var(--red); }

#about { margin-bottom: 3rem; max-width: 68ch; }

.links, #content { margin-bottom: 2.75rem; }
.links-group { margin-bottom: 0.6rem; }
.links-group a { margin-right: 1.25rem; white-space: nowrap; }

footer {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

@media (prefers-reduced-motion: reduce) {
    a { transition: none; }
}
