/* Dice & Decker: the game's paper, ink and gold, hand-lettered in Patrick Hand. */
@font-face {
 font-family: "Patrick Hand";
 src: url("/assets/fonts/PatrickHand.woff2") format("woff2");
 font-display: swap;
}
:root {
 --ink: #302d2a;
 --paper: #fffdf3;
 --blue: #cfe1ed;
 --red: #ecd0c9;
 --gold: #edce6e;
 --grid: rgba(48, 45, 42, 0.07);
 --shadow: 4px 5px 0 rgba(48, 45, 42, 0.85);
 --radius: 10px 14px 9px 13px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 color: var(--ink);
 font: 21px/1.45 "Patrick Hand", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;
 background-color: #f6f1e3;
 background-image:
  linear-gradient(var(--grid) 1px, transparent 1px),
  linear-gradient(90deg, var(--grid) 1px, transparent 1px);
 background-size: 28px 28px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2f5d8a; }
h1, h2, h3 { font-weight: 400; line-height: 1.1; margin: 0 0 0.4em; }
p { margin: 0 0 0.8em; }

.panel {
 background: var(--paper);
 border: 3px solid var(--ink);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
}
.chip {
 display: inline-block;
 padding: 0.1em 0.7em;
 border: 2px solid var(--ink);
 border-radius: 999px;
 font-size: 0.85em;
 background: var(--paper);
}
.chip.blue { background: var(--blue); }
.chip.red { background: var(--red); }

.button {
 display: inline-block;
 padding: 0.45em 1.1em;
 border: 3px solid var(--ink);
 border-radius: var(--radius);
 background: var(--paper);
 color: var(--ink);
 text-decoration: none;
 font-size: 1.05em;
 box-shadow: var(--shadow);
 transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.button:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 rgba(48, 45, 42, 0.85); }
a.button:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 rgba(48, 45, 42, 0.85); }
.button.gold { background: var(--gold); }
.button.soon { cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.2em 0 0.6em; }
.price { font-size: 0.9em; opacity: 0.8; }

.topbar {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 max-width: 1180px;
 margin: 18px auto 0;
 padding: 8px 14px;
 background: var(--paper);
 border: 3px solid var(--ink);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 position: sticky;
 top: 10px;
 z-index: 5;
 width: calc(100% - 28px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 1.5em; }
.brand img { border-radius: 10px; border: 2px solid var(--ink); }
.lang a { color: var(--ink); text-decoration: none; padding: 0.15em 0.7em; border: 2px solid var(--ink); border-radius: 999px; background: var(--blue); }

.sections { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 18px auto 0; }
.sections a { color: var(--ink); text-decoration: none; border-bottom: 2px dashed rgba(48, 45, 42, 0.4); }
.sections a:hover { border-bottom-style: solid; }

main { max-width: 1180px; margin: 0 auto; padding: 0 14px; }

.hero {
 display: grid;
 grid-template-columns: 1.15fr 0.85fr;
 align-items: center;
 gap: 40px;
 padding: 46px 0 30px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin-top: 0.3em; }
.lead { font-size: 1.15em; max-width: 34em; }
.hero-art img {
 border: 4px solid var(--ink);
 border-radius: 16px 20px 14px 18px;
 box-shadow: 8px 10px 0 rgba(48, 45, 42, 0.85);
 transform: rotate(2deg);
 max-height: 78vh;
 width: auto;
 margin: 0 auto;
}

.speech { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px auto 10px; max-width: 760px; }
.speech img { width: 140px; flex: none; }
.speech blockquote { margin: 0; padding: 16px 22px; position: relative; font-size: 1.2em; }
.speech blockquote::before {
 content: "";
 position: absolute;
 left: -16px;
 top: 50%;
 width: 26px;
 height: 26px;
 background: var(--paper);
 border-left: 3px solid var(--ink);
 border-bottom: 3px solid var(--ink);
 transform: translateY(-50%) rotate(45deg);
}
.speech p { margin: 0; }
.speech cite { display: block; font-style: normal; opacity: 0.7; margin-top: 4px; }

.block { padding: 46px 0 10px; scroll-margin-top: 90px; }
.banner {
 display: table;
 margin: 0 auto 0.5em;
 padding: 0.15em 1.2em;
 font-size: clamp(1.9rem, 4vw, 2.6rem);
 background: var(--paper);
 border: 3px solid var(--ink);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
}
.intro { text-align: center; max-width: 40em; margin: 0 auto 1.6em; }

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rule { display: flex; gap: 18px; padding: 14px; align-items: center; }
.rule img { width: 120px; flex: none; border: 2px solid var(--ink); border-radius: 8px; }
.rule h3 { font-size: 1.45em; }
.rule p { margin: 0; }

.guild { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.npc { margin: 0; text-align: center; }
.npc img { margin: 0 auto -8px; width: 160px; }
.sign {
 background: var(--paper);
 border: 3px solid var(--ink);
 border-radius: 6px;
 box-shadow: 3px 4px 0 rgba(48, 45, 42, 0.85);
 padding: 6px 8px;
 position: relative;
}
.sign strong { display: block; font-weight: 400; font-size: 1.2em; }
.sign span { display: block; font-size: 0.85em; opacity: 0.8; line-height: 1.2; }

.dungeons { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.dungeon { padding: 20px; }
.dungeon h3 { font-size: 1.7em; }
.catacombs { background: linear-gradient(#fffdf3, #ece8de); }
.forest { background: linear-gradient(#fffdf3, #e3ecd9); }
.foes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.foe, .boss { margin: 0; text-align: center; }
.foe figcaption, .boss figcaption { font-size: 0.9em; line-height: 1.2; }
.bosses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 2px dashed rgba(48, 45, 42, 0.35); padding-top: 12px; }

.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 6px 22px; scroll-snap-type: x mandatory; }
.shot { margin: 0; flex: 0 0 auto; width: 240px; scroll-snap-align: center; text-align: center; }
.shot img { border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); background: var(--paper); }
.shot figcaption { margin-top: 10px; }

.finale { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center; padding-bottom: 40px; }
.features { padding: 22px 26px; }
.features h2 { font-size: 2em; }
.features ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 26px; }
.features li { break-inside: avoid; padding-left: 1.5em; position: relative; margin-bottom: 0.5em; }
.features li::before { content: "⚄"; position: absolute; left: 0; }
.finale-cta { text-align: center; }
.finale-cta img { width: 220px; margin: 0 auto; }
.finale-cta .actions { justify-content: center; }

.footer { text-align: center; padding: 30px 14px 40px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 8px; }
.footer a { color: var(--ink); }

.doc { max-width: 820px; padding-top: 40px; padding-bottom: 20px; }
.doc > h2 { margin-top: 1.4em; font-size: 1.8em; }
.contact { display: flex; gap: 18px; align-items: center; padding: 18px 22px; }
.contact img { width: 110px; flex: none; }
.faq { display: grid; gap: 14px; }
.faq details { padding: 12px 18px; }
.faq summary { cursor: pointer; font-size: 1.15em; }
.faq details p { margin: 0.6em 0 0.2em; }
.prose { padding: 22px 28px; }
.prose h2 { font-size: 1.5em; margin-top: 0.8em; }
.updated { opacity: 0.7; }
.notfound { text-align: center; }
.notfound img { width: 240px; margin: 0 auto; }

@media (max-width: 900px) {
 body { font-size: 19px; }
 .hero { grid-template-columns: 1fr; padding-top: 28px; }
 .hero-art img { max-height: 60vh; }
 .rules, .dungeons, .finale { grid-template-columns: 1fr; }
 .guild { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
 .brand { font-size: 1.2em; }
 .guild { grid-template-columns: repeat(2, 1fr); }
 .rule { flex-direction: column; text-align: center; }
 .features ul { columns: 1; }
 .speech img { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 .button { transition: none; }
}
