/*
Theme Name: Deckwren
Description: Deckwren's own theme: the card games' family site, in the apps' colours.
Template: twentytwentyfive
Version: 1.0.2
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: deckwren
*/

/* The table's dark green, the card face's cream, the button's gold: the apps' own colours (CardGame
   src/ui/table/theme.ts). Every text pairing clears WCAG AA; gold is never text on cream. */

body { -webkit-font-smoothing: antialiased; }
/* The header, the page and the footer touch: no block gap between the template's top-level parts. */
.wp-site-blocks > * + * { margin-block-start: 0; }
/* The parent's body weight is light, so "bolder" lands on a regular weight: bold is said outright. */
strong, b { font-weight: 700; }

.dw-shell { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); box-sizing: border-box; }

/* The header: the mark and the name on the table's green. */
.dw-header { background: var(--wp--preset--color--felt); color: var(--wp--preset--color--on-felt); }
.dw-header .dw-shell { display: flex; align-items: center; justify-content: space-between; gap: .25rem 1rem; min-height: 64px; flex-wrap: wrap; padding-block: .5rem; }
.dw-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--wp--preset--color--on-felt); text-decoration: none; font-family: var(--wp--preset--font-family--heading); font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; }
.dw-brand img { width: 36px; height: 36px; border-radius: 8px; display: block; }
.dw-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.dw-nav a { color: var(--wp--preset--color--on-felt); text-decoration: none; padding: .55rem .7rem; border-radius: 8px; font-weight: 600; font-size: .98rem; }
.dw-nav a:hover, .dw-nav a:focus-visible { background: var(--wp--preset--color--felt-deep); text-decoration: underline; }

/* The home's first screen. */
.dw-hero { background: var(--wp--preset--color--felt); color: var(--wp--preset--color--on-felt); padding-block: clamp(2.5rem, 8vw, 5rem); }
.dw-hero h1 { color: var(--wp--preset--color--on-felt); font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; margin: 0 0 1rem; max-width: 18ch; }
.dw-hero p { color: var(--wp--preset--color--on-felt-soft); font-size: 1.15rem; max-width: 36rem; margin: 0; }
.dw-cards { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.dw-cards span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 62px; border-radius: 6px; background: var(--wp--preset--color--card); color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.05rem; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.dw-cards span.dw-red { color: var(--wp--preset--color--card-red); }

.dw-section { padding-block: clamp(2.25rem, 6vw, 4rem); }
.dw-section h2 { margin-top: 0; }
.dw-game { border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: #FFFFFF; padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: .75rem; max-width: 44rem; }
.dw-game h3 { margin: 0; font-size: 1.5rem; }
.dw-game p { margin: 0; }
.dw-tag { display: inline-block; align-self: start; justify-self: start; background: var(--wp--preset--color--felt); color: var(--wp--preset--color--on-felt); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; font-weight: 600; }
.dw-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.dw-points li { border-top: 3px solid var(--wp--preset--color--felt); padding-top: .75rem; }
.dw-points strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }

/* A page or a post. */
.dw-main { padding-block: clamp(2rem, 6vw, 3.5rem); padding-inline: clamp(1rem, 4vw, 2rem); box-sizing: border-box; }
.dw-main .wp-block-post-title { margin-top: 0; }

/* The footer: every must-have page, on the table's green. */
.dw-footer { background: var(--wp--preset--color--felt-deep); color: var(--wp--preset--color--on-felt-soft); padding-block: 2.5rem; font-size: .95rem; }
.dw-footer a { color: var(--wp--preset--color--on-felt); }
.dw-footer .dw-brand { font-size: 1.15rem; }
.dw-footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: 1.25rem 0; }
.dw-footer-links a { display: inline-block; padding-block: .35rem; }
.dw-footer p { margin: .5rem 0 0; max-width: 46rem; }

:where(a:focus-visible) { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }
.dw-skip { position: absolute; left: -9999px; }
.dw-skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); padding: .5rem .75rem; border-radius: 6px; }
