/* Shared styles for the static content pages (about, privacy, guides...). */
:root {
  /* One container width for every shared-layout page. */
  --site-page-max: 100rem;
  --site-gutter: clamp(1.25rem, 4vw, 5rem);
  /* Prose is capped separately so wide screens stay readable. */
  --prose-measure: 72ch;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: #2b211b;
  color: #e9dcc6;
  font-family: Georgia, serif;
  line-height: 1.65;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid rgb(243 217 164 / 26%);
  background: #392a22;
  padding: 0.65rem clamp(1rem, 3.5vw, 3rem);
  box-shadow: 0 6px 20px rgb(0 0 0 / 16%);
}
.site-header a { color: #f3d9a4; text-decoration: none; }
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-header .brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 45%));
}
@media (max-width: 44rem) {
  .site-header .brand-logo { width: 2.1rem; height: 2.1rem; }
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.site-header nav a {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: #e9dcc6;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.site-header nav a:hover {
  border-color: rgb(243 217 164 / 24%);
  background: rgb(243 217 164 / 9%);
  color: #ffe5ae;
}
.site-header nav a[aria-current="page"] {
  border-color: #f3d9a4;
  background: #f3d9a4;
  color: #35271f;
}
.site-header nav a[aria-current="page"]:hover { background: #ffe5ae; }
.site-header nav a:focus-visible { border-radius: 999px; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 44rem) {
  .site-header { align-items: flex-start; }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.15rem;
  }
  .site-header nav a {
    min-height: 2.75rem;
    padding-inline: clamp(0.3rem, 2vw, 0.65rem);
    font-size: 0.72rem;
    letter-spacing: 0.045em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header nav a { transition: none; }
}
main.page {
  margin: 0 auto;
  padding: 2rem var(--site-gutter) 3.5rem;
  max-width: var(--site-page-max);
}
/* Reading pages sit in a centered prose column inside the wide page. */
main.page > .page-inner {
  max-width: var(--prose-measure);
  margin-inline: auto;
}
/* Hub and template pages use the full container for their card grids. */
main.guides-hub > .page-inner,
main.templates-hub > .page-inner { max-width: 100%; }
main.page h1, main.page h2, main.page h3 { color: #f3d9a4; line-height: 1.25; }
main.page h1 { margin: 0 0 1rem; font-size: 2rem; }
main.page h2 { margin: 2rem 0 0.5rem; border-bottom: 1px solid rgb(243 217 164 / 30%); padding-bottom: 0.3rem; font-size: 1.35rem; }
main.page a { color: #ffcf7a; }
/* Keyboard focus must stay obvious on every link and control. */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #ffd98a;
  outline-offset: 2px;
  border-radius: 2px;
}

.cta {
  display: inline-block;
  margin: 1rem 0;
  border-radius: 0.4rem;
  background: #c08000;
  padding: 0.7rem 1.4rem;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.cta:hover { background: #a96c00; }
.site-footer {
  border-top: 1px solid rgb(243 217 164 / 20%);
  padding: 1.5rem 1.25rem 2rem;
  color: #b8a88c;
  font-size: 0.85rem;
  text-align: center;
}
.site-footer a { margin: 0 0.5rem; color: #f3d9a4; }
.site-footer p { margin: 0.75rem auto 0; max-width: 42rem; }
.site-footer nav { margin-bottom: 0.25rem; }

main.page img { max-width: 100%; height: auto; }
.lead { font-size: 1.08rem; color: #f0e2cc; }
.breadcrumb { font-size: 0.85rem; color: #b8a88c; margin: 0 0 0.75rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.9rem; padding: 0; list-style: none; }
.card-grid li { border: 1px solid rgb(243 217 164 / 25%); border-radius: 0.5rem; background: rgb(255 255 255 / 3%); padding: 0.9rem 1rem; }
.card-grid a { font-weight: 700; font-size: 1.02rem; }
.card-grid p { margin: 0.35rem 0 0; font-size: 0.9rem; color: #cbbca3; }

.tool { margin: 1.5rem 0; border: 1px solid rgb(243 217 164 / 25%); border-radius: 0.6rem; background: rgb(255 255 255 / 4%); padding: 1.1rem 1.2rem; }
.tool form { display: grid; gap: 0.85rem; }
.tool label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.95rem; }
.tool select { width: 100%; border: 1px solid #7a5f3a; border-radius: 0.35rem; background: #f3e6c8; color: #3b230e; padding: 0.5rem; font: inherit; }
.tool .cta { margin: 0.35rem 0 0; cursor: pointer; border: 0; font: inherit; font-weight: 700; }
.tool-result { margin-top: 1.1rem; border-top: 1px solid rgb(243 217 164 / 25%); padding-top: 0.9rem; }
.tool-kicker { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: #cbbca3; }
.tool-number { margin: 0.15rem 0 0.6rem; color: #ffd98a; font-size: 1.7rem; font-weight: 700; }
.tool-hint { min-height: 1.2em; font-size: 0.85rem; color: #cbbca3; }
.cta-secondary { background: #4a3a2a !important; border: 1px solid #c9a25d; }

/* ---- Pirate name generator ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.name-generator {
  margin: 1.75rem 0 2rem;
  border: 1px solid rgb(243 217 164 / 28%);
  border-radius: 0.75rem;
  background:
    radial-gradient(120% 150% at 10% -10%, rgb(192 128 0 / 16%), transparent 62%),
    linear-gradient(180deg, rgb(255 255 255 / 4%), rgb(0 0 0 / 12%));
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  box-shadow: 0 18px 40px rgb(0 0 0 / 22%);
}
.name-plate {
  border: 1px solid rgb(243 217 164 / 22%);
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #362820, #281e18);
  padding: clamp(1.1rem, 2.4vw, 1.7rem) clamp(0.9rem, 2vw, 1.4rem);
  text-align: center;
  box-shadow: inset 0 1px 0 rgb(255 240 200 / 8%);
}
.name-plate-kicker {
  margin: 0;
  color: #d9a94f;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.name-plate-name {
  margin: 0.55rem 0 1.15rem;
  color: #ffe5ae;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.name-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px dashed rgb(243 217 164 / 24%);
  list-style: none;
  text-align: left;
}
.name-parts span {
  display: block;
  color: #a8967a;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.name-parts strong {
  display: block;
  margin-top: 0.2rem;
  color: #e9dcc6;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.name-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.1rem;
}
.name-actions .cta { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; }
.name-actions .cta svg { flex: none; opacity: 0.9; }
.name-copy {
  border: 1px solid rgb(243 217 164 / 38%);
  border-radius: 0.4rem;
  background: transparent;
  padding: 0.62rem 1.05rem;
  color: #e9dcc6;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.name-copy:hover { border-color: #ffcf7a; background: rgb(255 255 255 / 5%); color: #ffe5ae; }
.name-poster-link {
  margin-left: auto;
  border-bottom: 1px solid rgb(255 207 122 / 35%);
  color: #ffcf7a;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.name-poster-link:hover { border-bottom-color: #ffcf7a; }
.name-generator .tool-hint { margin: 0.7rem 0 0; }

.name-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  max-width: 100%;
}
.name-examples li {
  border: 1px solid rgb(243 217 164 / 22%);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 3%);
  padding: 0.7rem 0.85rem;
  color: #f3d9a4;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
}
.name-examples span {
  display: block;
  margin-bottom: 0.2rem;
  color: #a8967a;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 30rem) {
  .name-parts { gap: 0.3rem 0.5rem; }
  .name-parts strong { font-size: 0.86rem; }
  .name-poster-link { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .name-copy { transition: none; }
}

/* ---- Pirate role quiz ---- */
.quiz {
  margin: 1.75rem 0 2rem;
  border: 1px solid rgb(243 217 164 / 28%);
  border-radius: 0.75rem;
  background:
    radial-gradient(120% 150% at 10% -10%, rgb(192 128 0 / 16%), transparent 62%),
    linear-gradient(180deg, rgb(255 255 255 / 4%), rgb(0 0 0 / 12%));
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  box-shadow: 0 18px 40px rgb(0 0 0 / 22%);
}
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.quiz-progress {
  margin: 0;
  color: #d9a94f;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.quiz-back {
  border: 1px solid rgb(243 217 164 / 35%);
  border-radius: 0.35rem;
  background: transparent;
  padding: 0.32rem 0.8rem;
  color: #e9dcc6;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.quiz-back:hover { border-color: #ffcf7a; color: #ffe5ae; }
.quiz-meter {
  height: 4px;
  margin: 0.7rem 0 1.15rem;
  border-radius: 999px;
  background: rgb(243 217 164 / 15%);
  overflow: hidden;
}
.quiz-meter span {
  display: block;
  height: 100%;
  width: 14%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c08000, #ffd98a);
  transition: width 220ms ease;
}
.quiz-question {
  margin: 0 0 1rem;
  border: 0;
  padding: 0;
  color: #ffe5ae;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.3;
}
.quiz-options { display: grid; gap: 0.6rem; }
.quiz-option {
  border: 1px solid rgb(243 217 164 / 26%);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 3%);
  padding: 0.85rem 1rem;
  color: #f0e2cc;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: #ffcf7a;
  background: rgb(192 128 0 / 18%);
  transform: translateX(3px);
}
.quiz-result { margin-top: 0.25rem; }
.quiz-result-grid { display: grid; gap: 1.25rem; }
.quiz-portrait { margin: 0 auto; max-width: 17rem; }
.quiz-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgb(243 217 164 / 35%);
  border-radius: 0.55rem;
  background: #2a1a0d;
  box-shadow: 0 14px 30px rgb(0 0 0 / 35%);
}
.quiz-kicker {
  margin: 0;
  color: #d9a94f;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.quiz-role {
  margin: 0.3rem 0 0.4rem;
  border: 0;
  padding: 0;
  color: #ffe5ae;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
}
.quiz-character { margin: 0 0 0.7rem; color: #cbbca3; font-size: 0.9rem; }
.quiz-desc { margin: 0 0 1rem; color: #f0e2cc; }
.quiz-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.quiz-stats div {
  border: 1px solid rgb(243 217 164 / 22%);
  border-radius: 0.45rem;
  background: rgb(0 0 0 / 12%);
  padding: 0.55rem 0.7rem;
}
.quiz-stats dt {
  color: #a8967a;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.quiz-stats dd { margin: 0.2rem 0 0; color: #ffd98a; font-weight: 700; font-size: 1.02rem; }
.quiz-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}
.quiz-traits li {
  border: 1px solid rgb(243 217 164 / 25%);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  color: #e9dcc6;
  font-size: 0.8rem;
}
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 0.9rem; }
.quiz-actions .cta { margin: 0; }
.quiz-secondary {
  border: 1px solid rgb(243 217 164 / 38%);
  border-radius: 0.4rem;
  background: transparent;
  padding: 0.62rem 1.05rem;
  color: #e9dcc6;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.quiz-secondary:hover { border-color: #ffcf7a; background: rgb(255 255 255 / 5%); color: #ffe5ae; }
.quiz .tool-hint { margin: 0.8rem 0 0; }
@media (min-width: 44rem) {
  .quiz-result-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  .quiz-portrait { margin: 0; max-width: 19rem; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-option,
  .quiz-meter span { transition: none; }
  .quiz-option:hover,
  .quiz-option:focus-visible { transform: none; }
}
/* ---- Guides hub ---- */
main.guides-hub { max-width: var(--site-page-max); padding: 1rem var(--site-gutter) 3.5rem; }
main.guides-hub h1 { font-size: clamp(2rem, 5vw, 2.85rem); letter-spacing: -0.015em; margin-bottom: 0.85rem; }

.hub-hero { border-bottom: 1px solid rgb(243 217 164 / 18%); padding: 1.5rem 0 1.6rem; }
.hub-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  color: #d9a94f;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hub-eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.hub-hero .lead { max-width: 64ch; margin: 0 0 1.4rem; }
.hub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.hub-actions .cta { margin: 0; }
.hub-jump { font-size: 0.92rem; text-decoration: none; border-bottom: 1px solid rgb(255 207 122 / 40%); }
.hub-jump:hover { border-bottom-color: #ffcf7a; }
.hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.25rem;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
  color: #cbbca3;
  font-size: 0.85rem;
}
.hub-stats strong { display: block; color: #f3d9a4; font-size: 1.45rem; line-height: 1.15; }

/* Featured walkthrough */
.hub-feature {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
  border: 1px solid rgb(243 217 164 / 28%);
  border-radius: 0.6rem;
  background: linear-gradient(150deg, rgb(243 217 164 / 9%), rgb(255 255 255 / 2%) 55%, rgb(192 128 0 / 8%));
  padding: 1.35rem 1.4rem;
  color: #e9dcc6;
  text-decoration: none;
}
.hub-feature:hover .hub-feature-title { color: #ffcf7a; }
.hub-feature:hover .hub-feature-cta { gap: 0.6rem; }
.hub-feature-art { display: flex; justify-content: center; }
.hub-poster {
  display: block;
  width: 9.5rem;
  transform: rotate(-2.5deg);
  border-radius: 2px;
  background: linear-gradient(158deg, #f0e0bc 0%, #dcc79c 55%, #c2a97d 100%);
  padding: 0.45rem;
  box-shadow: 0 0.9rem 1.6rem rgb(0 0 0 / 42%), inset 0 0 1.2rem rgb(120 82 32 / 30%);
  color: #4a2c11;
  text-align: center;
}
.hub-poster-inner {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  border: 1px solid rgb(90 56 20 / 45%);
  padding: 0.6rem 0.45rem 0.55rem;
}
.hub-poster-kicker { font-size: 1.28rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; }
.hub-poster-face {
  width: 70%;
  aspect-ratio: 1 / 1.12;
  border: 1px solid rgb(90 56 20 / 35%);
  background: repeating-linear-gradient(135deg, rgb(120 82 32 / 16%) 0 6px, rgb(120 82 32 / 5%) 6px 12px);
}
.hub-poster-name { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hub-poster-bounty { font-family: "Courier New", monospace; font-size: 0.62rem; font-weight: 700; }
.hub-feature-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.hub-tag {
  color: #d9a94f;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hub-feature-title { color: #f3d9a4; font-size: 1.55rem; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.hub-feature-desc { color: #cbbca3; font-size: 0.95rem; }
.hub-feature-cta { display: inline-flex; align-items: center; gap: 0.4rem; color: #ffcf7a; font-weight: 700; font-size: 0.92rem; }
.hub-feature-meta { color: #a8967a; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.hub-tools-link { margin: -1.25rem 0 2.5rem; color: #b8a88c; font-size: 0.95rem; }

/* Section headings on the hub */
.hub-group, .hub-tools {
  margin: 0 0 2.5rem;
  border-top: 1px solid rgb(243 217 164 / 12%);
  padding-top: 1.75rem;
  scroll-margin-top: 1rem;
}
main.guides-hub .hub-group-head h2,
main.guides-hub .hub-tools h2 {
  margin: 0 0 0.35rem;
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 1.35rem;
}
.hub-group-head p { margin: 0 0 1rem; color: #b8a88c; font-size: 0.92rem; max-width: 38rem; }

/* Guide cards */
.hub-cards { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  border: 1px solid rgb(243 217 164 / 22%);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 3%);
  padding: 1.05rem 1.1rem;
  color: #e9dcc6;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.hub-card:hover, .hub-card:focus-visible {
  border-color: rgb(255 207 122 / 60%);
  background: rgb(255 255 255 / 7%);
  transform: translateY(-2px);
}
.hub-card-no { color: #d9a94f; font-size: 0.72rem; letter-spacing: 0.16em; }
.hub-card-title { color: #f3d9a4; font-size: 1.06rem; font-weight: 700; line-height: 1.3; }
.hub-card-desc { color: #cbbca3; font-size: 0.9rem; line-height: 1.55; }
.hub-card-meta { margin-top: auto; padding-top: 0.55rem; color: #a8967a; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Tool cards */
.hub-tool-row { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.hub-tool {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border: 1px solid rgb(192 128 0 / 55%);
  border-radius: 0.5rem;
  background: linear-gradient(160deg, rgb(192 128 0 / 18%), rgb(255 255 255 / 3%));
  padding: 1.15rem 1.2rem;
  color: #e9dcc6;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.hub-tool:hover, .hub-tool:focus-visible { border-color: #ffcf7a; background: rgb(192 128 0 / 26%); }
.hub-tool-kicker { color: #d9a94f; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.hub-tool-title { color: #f3d9a4; font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.hub-tool-desc { color: #cbbca3; font-size: 0.9rem; line-height: 1.55; }
.hub-tool-cta { display: inline-flex; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem; color: #ffcf7a; font-weight: 700; font-size: 0.9rem; }

/* Printables band */
.hub-printables {
  border: 1px solid rgb(243 217 164 / 25%);
  border-radius: 0.6rem;
  background: #3a2d24;
  padding: 1.4rem 1.4rem 1.5rem;
}
main.guides-hub .hub-printables h2 { margin-top: 0; border-bottom: 0; padding-bottom: 0; font-size: 1.3rem; }
.hub-printables p { margin: 0.5rem 0 0.9rem; max-width: 42rem; color: #d7c9b0; font-size: 0.95rem; }
.hub-printables .cta { margin: 0; }

@media (min-width: 44rem) {
  .hub-feature { grid-template-columns: 11rem 1fr; align-items: center; padding: 1.5rem 1.6rem; }
  .hub-feature-art { justify-content: flex-start; }
  .hub-poster { width: 10.5rem; }
  .hub-cards, .hub-tool-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .hub-cards-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-tool-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ---- Templates page ---- */
main.templates-hub {
  max-width: var(--site-page-max);
  padding: 1.25rem var(--site-gutter) 3.5rem;
}
main.templates-hub h1 { margin: 0 0 0.95rem; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.015em; }
/* Running text stays readable while cards and sections use the wider canvas. */
main.templates-hub .page-inner > p,
main.templates-hub .page-inner > h2 { max-width: var(--prose-measure); }
.tpl-hero { border-bottom: 1px solid rgb(243 217 164 / 18%); padding: 1.5rem 0 2rem; }
.tpl-hero .lead { max-width: 68ch; margin: 0; font-size: 1.12rem; }
.tpl-note { margin: 0.8rem 0 0; color: #b8a88c; font-size: 0.9rem; }
main.templates-hub .tpl-section-title { margin: 2.25rem 0 1.25rem; border-bottom: 0; padding-bottom: 0; font-size: 1.35rem; }
.tpl-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.tpl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(243 217 164 / 28%);
  border-radius: 0.65rem;
  background: rgb(255 255 255 / 4%);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.tpl-card:hover, .tpl-card:focus-within { border-color: #ffcf7a; background: rgb(255 255 255 / 7%); }
.tpl-art { display: block; background: #1d1611; }
.tpl-art img { display: block; width: 100%; height: auto; aspect-ratio: 786 / 1112; object-fit: cover; }
.tpl-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.15rem 1.2rem 1.35rem; }
.tpl-kicker { margin: 0; color: #d9a94f; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
main.templates-hub .tpl-title { margin: 0; border: 0; padding: 0; color: #f3d9a4; font-size: 1.25rem; line-height: 1.2; }
.tpl-caption { margin: 0; color: #cbbca3; font-size: 0.92rem; }
.tpl-cta { margin: auto 0 0; padding-top: 0.15rem; }
.tpl-download { color: #d7c9b0 !important; font-size: 0.85rem; }
.tpl-download:hover { color: #ffcf7a !important; }
@media (min-width: 44rem) {
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
  .tpl-body { padding: 1.3rem 1.35rem 1.45rem; }
}
@media (min-width: 72rem) {
  .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem; }
  .tpl-body { padding: 1.2rem 1.25rem 1.35rem; }
}
@media (min-width: 90rem) {
  .tpl-grid { gap: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tpl-card { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-card, .hub-tool { transition: none; }
  .hub-card:hover, .hub-card:focus-visible { transform: none; }
}

@media print {
  .site-header, .site-footer, .cta { display: none !important; }
  body { background: #fff; color: #111; }
  main.page h1, main.page h2, main.page h3 { color: #111; }
}
