/*
Theme Name: Rookpen Games
Version: 1.3.7
Text Domain: rookpen
*/

:root {
  --rook-earth: #7a4e1e;
  --rook-grass: #928b52;
  --rook-water: #166981;
  --rook-paper: #eae8e5;
  --rook-ink: #242017;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--rook-paper); color: var(--rook-ink); font: 1rem/1.65 Georgia, serif; }
a { color: var(--rook-water); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--rook-water); outline-offset: 5px; }
.rook-mast, .rook-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  max-width: 78rem;
  margin: auto;
  padding: 1.15rem clamp(1rem, 4vw, 4rem);
}
.rook-mast { border-bottom: 1px solid var(--rook-grass); }
.rook-mark { font-weight: 700; color: var(--rook-earth); }
.rook-mast nav, .rook-foot nav { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; }
.rook-main { width: min(76rem, 100% - 2rem); margin: 0 auto; }
.rook-title { color: var(--rook-earth); font-size: clamp(2.3rem, 6.5vw, 5.5rem); line-height: 1.04; max-width: 15ch; }
.rook-terrain { margin: 0; }
.rook-terrain img { display: block; width: 100%; height: auto; border-block: 3px solid var(--rook-grass); }
.rook-main section { margin: 2.5rem auto; max-width: 68rem; }
.rook-main p { max-width: 72ch; }
.rook-decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rook-grass); }
.rook-decisions > details { padding: 1rem; border-inline-start: 1px solid var(--rook-grass); }
.rook-decisions > details:first-child { border-inline-start: none; }
.rook-decisions summary { color: var(--rook-water); cursor: pointer; font-weight: 700; }
.rook-decisions details[open] { background: #f6f4ef; }
.rook-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rook-plans > details { border: 1px solid var(--rook-grass); }
.rook-foot { border-top: 1px solid var(--rook-grass); }
.rook-volume { border-top: 3px solid var(--rook-earth); padding-top: .8rem; }
.rook-repro { padding: 1rem 1.4rem; border-inline-start: 4px solid var(--rook-water); background: #f6f4ef; }
.rook-main form { max-width: 42rem; margin-block: 2rem; }
.rook-main form label { display: block; margin-bottom: .85rem; }
.rook-main input:not([type=hidden]), .rook-main textarea { display: block; width: 100%; padding: .65rem; background: #fff; color: var(--rook-ink); border: 1px solid var(--rook-earth); font: inherit; }
.rook-main button { background: var(--rook-water); color: #fff; border: 1px solid transparent; padding: .6rem 1rem; font: inherit; cursor: pointer; }
.rook-position-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.rook-position-index > section { width: 100%; border-top: 1px solid var(--rook-grass); padding-inline: .75rem; }
@media (max-width: 44rem) {
  .rook-decisions { grid-template-columns: 1fr; }
  .rook-decisions > details { border-inline-start: 0; border-block-start: 1px solid var(--rook-grass); }
  .rook-decisions > details:first-child { border-block-start: 0; }
}
