/* pocin.eu — shared site styles
   tone derived from the provided style.css: cream paper background,
   serif type, minimal borders, no shadows, black/cream palette. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --gray-50: #faf7f2;
    --gray-100: #f3eee5;
    --gray-200: #e7e0d4;
    --gray-300: #d8cfc0;
    --gray-600: #6b6660;
    --gray-800: #2b2823;
    --gray-900: #181613;
    --border-radius: 6px;
    --transition: all 0.2s ease;
    --max-width: 900px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background: #f5f0e6;
    color: var(--gray-900);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: var(--gray-900);
    text-decoration: underline;
    text-decoration-color: var(--gray-300);
    text-underline-offset: 2px;
    transition: var(--transition);
}

a:hover {
    text-decoration-color: var(--gray-900);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header / nav ===== */
header.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    padding: 18px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.site-title a {
    text-decoration: none;
    color: var(--gray-900);
}

.site-tagline {
    font-size: 13px;
    color: var(--gray-600);
    font-style: italic;
    margin-top: 2px;
}

nav.site-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

nav.site-nav a {
    text-decoration: none;
    font-size: 15px;
    color: var(--gray-800);
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

nav.site-nav a:hover,
nav.site-nav a.active {
    border-bottom: 1px solid var(--gray-900);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    font-size: 13px;
    color: var(--gray-600);
    margin: 18px 0 0;
}

.breadcrumb a {
    color: var(--gray-600);
}

/* ===== Main content ===== */
main {
    padding: 30px 0 60px;
}

main .container > * + * {
    margin-top: 20px;
}

h1 {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 6px;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 22px;
    margin-bottom: 6px;
}

p {
    max-width: 720px;
}

.lede {
    font-size: 17px;
    color: var(--gray-800);
}

hr.divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 30px 0;
}

/* ===== Cards / panels ===== */
.panel {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 24px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--gray-900);
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: var(--gray-600);
    font-size: 14px;
}

.card a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== Media items ===== */
.media-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 14px 18px;
    margin-top: 12px;
}

.media-row .media-label {
    flex: 0 0 180px;
    font-weight: 600;
    font-size: 14px;
}

.media-row audio {
    flex: 1 1 280px;
    min-width: 220px;
}

.media-row .media-note {
    flex: 1 1 240px;
    font-size: 14px;
    color: var(--gray-600);
    font-style: italic;
}

audio {
    width: 100%;
    max-width: 420px;
}

.file-list {
    list-style: none;
    margin-top: 10px;
}

.file-list li {
    padding: 10px 0;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.file-list li:first-child {
    border-top: none;
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--gray-900);
    border-radius: var(--border-radius);
    font-size: 14px;
    text-decoration: none;
    color: var(--gray-900);
    background: transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:hover {
    background: var(--gray-50);
}

.btn-small {
    padding: 5px 12px;
    font-size: 13px;
}

/* ===== Images ===== */
.figure {
    margin-top: 16px;
}

.figure img {
    max-width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    display: block;
}

.figure figcaption {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 6px;
    font-style: italic;
}

.image-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    align-items: start;
}

.media-text {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    align-items: center;
    margin-top: 20px;
}

.media-text.flip {
    grid-template-columns: 220px 1fr;
}

.media-text img {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

@media (max-width: 680px) {
    .media-text,
    .media-text.flip {
        grid-template-columns: 1fr;
    }
    .media-text.flip figure {
        order: -1;
    }
}

/* ===== Video embeds ===== */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-top: 16px;
    background: var(--gray-900);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== Score / file table ===== */
.score-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 14px;
}

.score-table th,
.score-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.score-table th {
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.score-table audio {
    max-width: 260px;
}

/* ===== Code block ===== */
pre.code-block {
    background: var(--gray-900);
    color: var(--gray-50);
    padding: 18px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 14px;
}

.code-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== Footer ===== */
footer.site-footer {
    border-top: 1px solid var(--gray-200);
    padding: 24px 0;
    font-size: 13px;
    color: var(--gray-600);
    text-align: center;
}

footer.site-footer a {
    color: var(--gray-600);
}

/* ===== Survey table (legacy "It's just a Phase, mom" survey) ===== */
.option-table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    font-size: 14px;
}

.option-table th,
.option-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.option-table th {
    text-align: left;
    color: var(--gray-600);
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.status-message {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-top: 16px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    background: var(--gray-50);
    display: none;
}

.status-message.visible {
    display: block;
}

/* ===== Joke list (404) ===== */
.joke-list {
    list-style: none;
}

.joke-list li {
    padding: 16px 0;
    border-top: 1px solid var(--gray-200);
}

.joke-list li:first-child {
    border-top: none;
}

/* ===== Utility ===== */
.text-center {
    text-align: center;
}

.mono {
    font-family: 'Monaco', 'Courier New', monospace;
}

@media (max-width: 680px) {
    nav.site-nav ul {
        gap: 14px;
        font-size: 14px;
    }

    h1 {
        font-size: 26px;
    }

    .score-table {
        font-size: 13px;
    }
}