/*
Theme Name: Gratis Krydsord
Theme URI: https://gratiskrydsord.dk
Description: Let og hurtigt tema til gratiskrydsord.dk. Bruges sammen med plugin'et "Gratis Krydsord".
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gratiskrydsord
*/

:root {
	--ink: #1c1b1a;
	--paper: #faf7f0;
	--card: #ffffff;
	--accent: #c8102e;
	--yellow: #f5c84c;
	--muted: #6b6760;
	--max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 17px; line-height: 1.6;
}
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3, .brand { font-family: "Fraunces", Georgia, "Times New Roman", serif; line-height: 1.15; letter-spacing: -.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 700; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 9px); gap: 2px; }
.brand-mark i { width: 9px; height: 9px; background: #fff; }
.brand-mark i.b { background: var(--yellow); }
.brand small { font-family: inherit; color: var(--yellow); font-weight: 400; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav .current-menu-item a { color: var(--yellow); }

/* Hero */
.hero { padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .6rem; max-width: 16ch; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 0; }
.kicker { display: inline-block; background: var(--yellow); padding: .15rem .55rem; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }

/* Indhold */
.site-main { padding: 2rem 0 4rem; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--ink); margin: 3rem 0 1.25rem; padding-bottom: .4rem; }
.section-title h2 { margin: 0; font-size: 1.6rem; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .4rem; }
.entry-meta { color: var(--muted); margin-bottom: 1.5rem; }
.entry-content { max-width: 100%; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > h2, .entry-content > h3 { max-width: 70ch; }
.daily { background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; padding: 1.5rem; }
.terms { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.terms a { display: inline-block; padding: .35rem .9rem; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 600; background: #fff; }
.terms a:hover, .terms .on a { background: var(--ink); color: #fff; }
.pagination { margin-top: 2rem; display: flex; gap: .5rem; }
.pagination .page-numbers { padding: .4rem .8rem; border: 1.5px solid var(--ink); border-radius: 6px; text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; }

/* Annoncer */
.ad-slot { margin: 2rem auto; text-align: center; min-height: 90px; }
.ad-slot:empty { display: none; }

/* Footer */
.site-footer { border-top: 3px solid var(--ink); padding: 2rem 0; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media print {
	.site-header, .site-footer, .ad-slot, .entry-meta { display: none !important; }
	body { background: #fff; }
}

/* Blog */
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin: 0 0 1.5rem; }
.title-suffix { color: var(--muted); font-weight: 600; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose code { background: #fff; border: 1px solid #e0dacb; border-radius: 4px; padding: .05rem .35rem; font-size: .95em; }
.blog-post .entry-meta a { color: var(--accent); font-weight: 700; text-decoration: none; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.post-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 4px 6px 0 var(--ink); color: inherit; }
.post-card strong { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; line-height: 1.2; }
.post-cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.post-ex { color: var(--muted); font-size: .95rem; }
.popular-label { font-weight: 700; margin: 0 0 .5rem; }

.site-header .wrap { flex-wrap: wrap; }
.gkc-badge { font-size: .92rem; }

/* Søndag, spil sammen, footer-mail */
.sunday-cta { display: grid; gap: .3rem; margin: 2rem 0 0; padding: 1.4rem 1.6rem; background: var(--ink); color: #fff; border-radius: 14px; text-decoration: none; }
.sunday-cta:hover { color: #fff; background: #2b2927; }
.sunday-cta .kicker { justify-self: start; color: var(--ink); margin: 0; }
.sunday-cta strong { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; }
.play-together { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 3rem; }
.play-together a { display: grid; gap: .3rem; padding: 1.2rem; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; text-decoration: none; color: inherit; }
.play-together a:hover { box-shadow: 4px 6px 0 var(--ink); }
.play-together strong { font-size: 1.15rem; }
.play-together span { color: var(--muted); }
.footer-mail { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e0dacb; }
.footer-mail .gkc-mail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
@media (max-width: 700px) { .footer-mail .gkc-mail { grid-template-columns: 1fr; } }
.site-footer .footer-mail { display: block; }
