:root {
  --ink: #23170f;
  --ash: #35281f;
  --bronze: #b17a38;
  --bronze-light: #d6ad6a;
  --parchment: #ead8b6;
  --bone: #f4ebd7;
  --moss: #536345;
  --wine: #63343a;
  --shadow: rgba(16, 10, 6, 0.52);
  --max-width: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--bone);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(177, 122, 56, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(35, 23, 15, 0.94), rgba(41, 47, 32, 0.88)),
    url("https://images.unsplash.com/photo-1518709268805-4e9042af2176?auto=format&fit=crop&w=1800&q=80");
  background-attachment: fixed;
  background-size: cover;
}

main {
  flex: 1;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(244, 235, 215, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 235, 215, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(214, 173, 106, 0.28);
  background: rgba(24, 16, 11, 0.84);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--bronze-light);
  padding: 4px;
  object-fit: contain;
  background: rgba(99, 52, 58, 0.22);
}

.brand strong,
h1,
h2,
h3 {
  font-family: Cinzel, Georgia, serif;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: rgba(244, 235, 215, 0.68);
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  color: rgba(244, 235, 215, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a:hover {
  border-color: rgba(214, 173, 106, 0.36);
  color: var(--bronze-light);
  background: rgba(234, 216, 182, 0.08);
}

.hero,
.content-section {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 77px);
  display: flex;
  align-items: center;
  padding: 64px 0 46px;
}

.hero-content {
  max-width: 1220px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--bronze-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--parchment);
  font-size: clamp(3.5rem, 9vw, 8.8rem);
  line-height: 0.92;
  text-shadow: 0 18px 42px var(--shadow);
}

.hero-title-lockup {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin-bottom: 20px;
}

.hero-title-logo {
  width: clamp(74px, 8vw, 126px);
  height: clamp(74px, 8vw, 126px);
  flex: 0 0 auto;
  border: 1px solid rgba(214, 173, 106, 0.36);
  padding: 8px;
  object-fit: contain;
  background: rgba(16, 10, 6, 0.32);
  box-shadow: 0 18px 44px rgba(16, 10, 6, 0.34);
}

.hero-title-lockup h1 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 4.25vw, 3.9rem);
  line-height: 0.96;
  white-space: nowrap;
}

h2 {
  margin-bottom: 12px;
  color: var(--parchment);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  color: var(--bronze-light);
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 720px;
  color: rgba(244, 235, 215, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(214, 173, 106, 0.56);
  color: var(--parchment);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #1d130d;
  background: linear-gradient(180deg, var(--bronze-light), var(--bronze));
  box-shadow: 0 16px 34px rgba(16, 10, 6, 0.32);
}

.button.ghost {
  color: var(--bronze-light);
  background: rgba(244, 235, 215, 0.08);
}

.button.primary:hover {
  color: #120b07;
  background: linear-gradient(180deg, #f0c982, var(--bronze));
}

.button.ghost:hover {
  color: var(--bone);
  background: rgba(214, 173, 106, 0.16);
}

.feature-grid article,
.rule-list,
.module-list a,
.lore-letter {
  border: 1px solid rgba(214, 173, 106, 0.28);
  background:
    linear-gradient(180deg, rgba(234, 216, 182, 0.13), rgba(53, 40, 31, 0.62)),
    rgba(31, 21, 14, 0.72);
  box-shadow: 0 22px 52px rgba(16, 10, 6, 0.28);
}

.content-section {
  padding: 92px 0;
}

.page-hero {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0 26px;
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

.content-section.muted {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(18px, calc((100vw - var(--max-width)) / 2));
  background: rgba(21, 15, 10, 0.54);
  border-block: 1px solid rgba(214, 173, 106, 0.18);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article {
  min-height: 190px;
  padding: 24px;
}

.feature-grid p,
.rule-list {
  color: rgba(244, 235, 215, 0.78);
  line-height: 1.62;
}

.lore-letter {
  position: relative;
  max-width: 880px;
  padding: clamp(28px, 5vw, 56px);
  color: #2d2017;
  background:
    linear-gradient(135deg, rgba(246, 226, 181, 0.94), rgba(199, 157, 95, 0.9)),
    var(--parchment);
  box-shadow: 0 28px 70px rgba(16, 10, 6, 0.36);
}

.lore-letter::before {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(80, 46, 22, 0.22);
}

.lore-letter p {
  position: relative;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.78;
}

.lore-letter p:last-child {
  margin-bottom: 0;
}

.letter-date,
.letter-signature {
  color: #5c351d;
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
}

.letter-date {
  font-size: 0.86rem;
  text-transform: uppercase;
}

.letter-signature {
  margin-top: 28px;
}

.lore-chapter {
  max-width: 980px;
}

.lore-chapter h2,
.lore-chapter h3 {
  position: relative;
  margin: 4px 0 6px;
  color: #5c351d;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  line-height: 1;
}

.chapter-title {
  color: #2d2017;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 900;
}

.chapter-question {
  margin: 30px 0;
  color: #5c351d;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 900;
  text-align: center;
}

.lore-hero {
  padding-bottom: 36px;
}

.lore-layout {
  display: grid;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto 92px;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.lore-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(214, 173, 106, 0.24);
  background: rgba(24, 16, 11, 0.72);
}

.lore-toc span {
  margin-bottom: 4px;
  color: var(--bronze-light);
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
}

.lore-toc a {
  padding: 9px 10px;
  color: rgba(244, 235, 215, 0.78);
  font-weight: 800;
}

.lore-toc a:hover {
  color: var(--bone);
  background: rgba(214, 173, 106, 0.12);
}

.lore-toc .is-disabled {
  color: rgba(244, 235, 215, 0.38);
  pointer-events: none;
}

.lore-page {
  max-width: 980px;
  margin: 0;
}

.lore-page p {
  font-family: "IM Fell English", Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.6vw, 1.38rem);
}

.lore-teaser {
  max-width: 720px;
}

.lore-teaser h3 {
  color: #5c351d;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

.lore-teaser .button {
  position: relative;
  margin-top: 8px;
}

.rule-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 24px 24px 24px 44px;
}

.rules-hero {
  padding-bottom: 36px;
}

.rules-layout {
  display: grid;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto 92px;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.rules-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(214, 173, 106, 0.24);
  background: rgba(24, 16, 11, 0.72);
}

.rules-toc span {
  margin-bottom: 4px;
  color: var(--bronze-light);
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
}

.rules-toc a {
  padding: 8px 10px;
  color: rgba(244, 235, 215, 0.78);
  font-weight: 800;
}

.rules-toc a:hover {
  color: var(--bone);
  background: rgba(214, 173, 106, 0.12);
}

.rules-content {
  display: grid;
  gap: 22px;
}

.rules-card {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(214, 173, 106, 0.26);
  background:
    linear-gradient(180deg, rgba(234, 216, 182, 0.11), rgba(31, 21, 14, 0.72)),
    rgba(24, 16, 11, 0.78);
  box-shadow: 0 22px 52px rgba(16, 10, 6, 0.24);
}

.legal-section {
  display: grid;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto 92px;
  gap: 22px;
}

.legal-card p {
  color: rgba(244, 235, 215, 0.8);
  line-height: 1.65;
}

.legal-card strong {
  color: var(--bronze-light);
}

.rules-card h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.rules-card details {
  border-top: 1px solid rgba(214, 173, 106, 0.18);
  padding: 14px 0;
}

.rules-card details:last-child {
  padding-bottom: 0;
}

.rules-card summary {
  color: var(--bronze-light);
  cursor: pointer;
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
}

.rules-card ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: rgba(244, 235, 215, 0.8);
  line-height: 1.62;
}

.quick-grid,
.cheat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-grid article,
.cheat-grid article,
.rules-note {
  border: 1px solid rgba(214, 173, 106, 0.18);
  background: rgba(234, 216, 182, 0.08);
}

.quick-grid article {
  min-height: 130px;
  padding: 16px;
}

.quick-grid p,
.rules-note p {
  color: rgba(244, 235, 215, 0.78);
  line-height: 1.55;
}

.clean-list {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-top: 0;
  padding-bottom: 0;
}

.rules-note {
  margin-top: 20px;
  padding: 16px;
}

.rules-note strong,
.cheat-grid strong {
  color: var(--bronze-light);
  font-family: Cinzel, Georgia, serif;
}

.cheat-grid article {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 16px;
}

.cheat-grid span {
  color: rgba(244, 235, 215, 0.78);
  line-height: 1.5;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-list a {
  min-height: 98px;
  display: flex;
  align-items: end;
  padding: 18px;
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
}

.module-list a:hover {
  border-color: rgba(214, 173, 106, 0.72);
  background: rgba(83, 99, 69, 0.48);
}

.application-public-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.application-copy,
.application-form {
  border: 1px solid rgba(214, 173, 106, 0.28);
  background:
    linear-gradient(180deg, rgba(234, 216, 182, 0.13), rgba(53, 40, 31, 0.62)),
    rgba(31, 21, 14, 0.72);
  box-shadow: 0 22px 52px rgba(16, 10, 6, 0.28);
}

.application-copy {
  padding: 24px;
}

.application-copy p {
  color: rgba(244, 235, 215, 0.8);
  line-height: 1.65;
}

.application-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.application-form label {
  display: grid;
  gap: 7px;
}

.application-form span {
  color: var(--bronze-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.application-form input,
.application-form textarea {
  width: 100%;
  border: 1px solid rgba(214, 173, 106, 0.32);
  padding: 12px;
  color: var(--bone);
  font: inherit;
  background: rgba(16, 10, 6, 0.54);
}

.application-form textarea {
  resize: vertical;
}

.application-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.application-message {
  margin: 0;
  color: rgba(244, 235, 215, 0.74);
  font-weight: 800;
}

.application-message.is-success {
  color: #b7f7df;
}

.application-message.is-error {
  color: #ffd3d9;
}

.application-message a {
  display: inline-flex;
  margin-left: 10px;
  color: var(--bronze-light);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.application-success-dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid rgba(214, 173, 106, 0.42);
  padding: 0;
  color: var(--bone);
  background:
    linear-gradient(180deg, rgba(234, 216, 182, 0.15), rgba(53, 40, 31, 0.84)),
    rgba(24, 16, 11, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.application-success-dialog::backdrop {
  background: rgba(8, 6, 5, 0.72);
  backdrop-filter: blur(4px);
}

.application-success-dialog > div {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.application-success-dialog h2,
.application-success-dialog p {
  margin: 0;
}

.application-success-dialog h2 {
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
}

.application-success-dialog p:not(.eyebrow) {
  color: rgba(244, 235, 215, 0.82);
  line-height: 1.6;
}

.application-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.application-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.transform-creature-section {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(214, 173, 106, 0.24);
  padding-top: 18px;
}

.transform-creature-section h3,
.transform-creature-card h4 {
  margin: 0 0 8px;
}

.transform-creature-section p {
  margin: 0;
  color: rgba(244, 235, 215, 0.78);
  line-height: 1.6;
}

.transform-creature-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(214, 173, 106, 0.24);
  padding: 16px;
  background: rgba(16, 10, 6, 0.32);
}

.application-form select {
  width: 100%;
  border: 1px solid rgba(214, 173, 106, 0.32);
  padding: 12px;
  color: var(--bone);
  font: inherit;
  background: rgba(16, 10, 6, 0.78);
}

.application-rich-editor {
  overflow: hidden;
  border: 1px solid rgba(214, 173, 106, 0.32);
  background: rgba(16, 10, 6, 0.54);
}

.application-rich-editor .ql-toolbar.ql-snow,
.ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid rgba(214, 173, 106, 0.24);
  background: rgba(24, 16, 11, 0.92);
}

.application-rich-editor .ql-container.ql-snow,
.ql-container.ql-snow {
  min-height: 420px;
  border: 0;
  color: var(--bone);
  font: inherit;
}

.application-rich-editor .ql-editor {
  min-height: 420px;
  color: var(--bone);
  line-height: 1.65;
}

.application-rich-editor .ql-stroke {
  stroke: rgba(244, 235, 215, 0.72);
}

.application-rich-editor .ql-fill {
  fill: rgba(244, 235, 215, 0.72);
}

.application-rich-editor .ql-picker,
.application-rich-editor .ql-picker-label {
  color: rgba(244, 235, 215, 0.72);
}

.application-rich-editor .ql-picker-options {
  border-color: rgba(214, 173, 106, 0.32) !important;
  color: var(--bone);
  background: rgba(24, 16, 11, 0.98);
}

.color-zone-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.creature-warning {
  border: 1px solid rgba(255, 185, 95, 0.48);
  padding: 10px 12px;
  color: #ffd8a3 !important;
  font-weight: 800;
  background: rgba(255, 185, 95, 0.1);
}

.checkbox-row-public {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox-row-public input {
  width: 18px;
  height: 18px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(214, 173, 106, 0.28);
  background:
    linear-gradient(180deg, rgba(234, 216, 182, 0.13), rgba(53, 40, 31, 0.66)),
    rgba(31, 21, 14, 0.74);
  box-shadow: 0 22px 52px rgba(16, 10, 6, 0.28);
}

.guide-card h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.guide-card p,
.guide-card li,
.muted-copy {
  color: rgba(244, 235, 215, 0.8);
  line-height: 1.6;
}

.guide-subtitle {
  color: rgba(244, 235, 215, 0.66);
  font-weight: 800;
}

.guide-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.guides-layout {
  display: grid;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto 92px;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.guides-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(214, 173, 106, 0.24);
  background: rgba(24, 16, 11, 0.72);
}

.guides-sidebar > span {
  color: var(--bronze-light);
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
}

.guides-sidebar input {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(214, 173, 106, 0.32);
  padding: 0 12px;
  color: var(--bone);
  font: inherit;
  font-weight: 700;
  background: rgba(16, 10, 6, 0.54);
}

.guide-nav {
  display: grid;
  gap: 8px;
}

.guide-nav button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid transparent;
  padding: 10px;
  color: rgba(244, 235, 215, 0.78);
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.guide-nav button:hover,
.guide-nav button.is-active {
  border-color: rgba(214, 173, 106, 0.28);
  color: var(--bone);
  background: rgba(214, 173, 106, 0.12);
}

.guide-nav strong {
  font-family: Cinzel, Georgia, serif;
}

.guide-nav span {
  color: rgba(244, 235, 215, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-detail {
  min-height: 440px;
}

.guide-detail > p,
.guide-detail li {
  color: rgba(244, 235, 215, 0.82);
  line-height: 1.65;
}

.guide-detail ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-left: 22px;
}

.rich-content {
  display: grid;
  gap: 14px;
}

.rich-content p,
.rich-content li,
.rich-content blockquote {
  color: rgba(244, 235, 215, 0.82);
  line-height: 1.65;
}

.lore-letter .rich-content p,
.lore-letter .rich-content li,
.lore-letter .rich-content blockquote {
  color: rgba(47, 30, 18, 0.9);
}

.rich-content h2,
.rich-content h3 {
  margin: 8px 0 0;
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
}

.lore-letter .rich-content h2,
.lore-letter .rich-content h3 {
  color: #3b2314;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
  margin: 0;
}

.rich-content ul,
.rich-content ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.rich-content blockquote {
  border-left: 3px solid rgba(214, 173, 106, 0.58);
  padding-left: 14px;
  font-style: italic;
}

.lore-letter .rich-content blockquote {
  border-left-color: rgba(108, 68, 34, 0.42);
}

.rich-content a {
  color: var(--bronze-light);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lore-letter .rich-content a {
  color: #6c4422;
}

.section-actions {
  margin-top: 22px;
}

.jobs-hero {
  padding-bottom: 36px;
}

.jobs-section {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.jobs-section.muted {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(18px, calc((100vw - var(--max-width)) / 2));
  background: rgba(21, 15, 10, 0.54);
  border-block: 1px solid rgba(214, 173, 106, 0.18);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.job-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(214, 173, 106, 0.24);
  background:
    linear-gradient(180deg, rgba(234, 216, 182, 0.11), rgba(31, 21, 14, 0.68)),
    rgba(24, 16, 11, 0.74);
  box-shadow: 0 22px 52px rgba(16, 10, 6, 0.22);
}

.job-card p {
  color: rgba(244, 235, 215, 0.78);
  line-height: 1.55;
}

.job-card span {
  display: block;
  margin: 18px 0 8px;
  color: var(--bronze-light);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.job-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-card li {
  padding: 7px 9px;
  border: 1px solid rgba(214, 173, 106, 0.2);
  color: rgba(244, 235, 215, 0.82);
  font-weight: 800;
  background: rgba(234, 216, 182, 0.08);
}

.linked-job-card {
  display: grid;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.linked-job-card:hover {
  border-color: rgba(214, 173, 106, 0.58);
  transform: translateY(-2px);
}

.linked-job-card strong {
  align-self: end;
  margin-top: 18px;
  color: var(--bronze-light);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.profession-detail-section {
  display: grid;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto 88px;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profession-detail-nav,
.profession-panel,
.profession-tree-card {
  border: 1px solid rgba(214, 173, 106, 0.24);
  background:
    linear-gradient(180deg, rgba(234, 216, 182, 0.11), rgba(31, 21, 14, 0.68)),
    rgba(24, 16, 11, 0.74);
  box-shadow: 0 22px 52px rgba(16, 10, 6, 0.22);
}

.profession-detail-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
  padding: 18px;
}

.profession-pill-list {
  display: grid;
  gap: 8px;
}

.profession-pill-list a,
.profession-pill-list span {
  border: 1px solid rgba(214, 173, 106, 0.22);
  padding: 10px 12px;
  color: rgba(244, 235, 215, 0.84);
  font-weight: 800;
  background: rgba(234, 216, 182, 0.08);
}

.profession-detail-content,
.profession-tree-list {
  display: grid;
  gap: 18px;
}

.profession-panel {
  padding: 24px;
}

.profession-panel h2,
.profession-tree-card h3 {
  margin-top: 0;
}

.profession-panel p,
.profession-tree-card p,
.blueprint-list span {
  color: rgba(244, 235, 215, 0.8);
  line-height: 1.65;
}

.profession-tree-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.blueprint-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blueprint-list li {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(214, 173, 106, 0.18);
  padding: 12px;
  background: rgba(16, 10, 6, 0.28);
}

.creature-public-section {
  display: grid;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto 88px;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.creature-filter-panel,
.creature-category-block,
.creature-public-card {
  border: 1px solid rgba(214, 173, 106, 0.24);
  background:
    linear-gradient(180deg, rgba(234, 216, 182, 0.11), rgba(31, 21, 14, 0.68)),
    rgba(24, 16, 11, 0.74);
  box-shadow: 0 22px 52px rgba(16, 10, 6, 0.22);
}

.creature-filter-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.creature-filter-panel label {
  display: grid;
  gap: 7px;
}

.creature-filter-panel span {
  color: var(--bronze-light);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.creature-filter-panel input,
.creature-filter-panel select {
  width: 100%;
  border: 1px solid rgba(214, 173, 106, 0.32);
  padding: 12px;
  color: var(--bone);
  font: inherit;
  background: rgba(16, 10, 6, 0.74);
}

.creature-public-list,
.creature-category-block,
.creature-tier-block {
  display: grid;
  gap: 18px;
}

.creature-category-block {
  padding: 22px;
}

.compact-heading {
  margin-bottom: 0;
}

.creature-tier-block h3 {
  margin: 0;
  color: var(--bronze-light);
}

.creature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.creature-public-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.creature-public-card div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.creature-public-card h4 {
  margin: 0;
}

.creature-public-card span {
  border: 1px solid rgba(214, 173, 106, 0.2);
  padding: 6px 8px;
  color: var(--bronze-light);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(234, 216, 182, 0.08);
}

.creature-public-card p {
  margin: 0;
  color: rgba(244, 235, 215, 0.78);
  line-height: 1.55;
}

.creator-hero {
  padding-bottom: 8px;
}

.creator-shell {
  width: 100%;
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(214, 173, 106, 0.28);
  background:
    linear-gradient(180deg, rgba(234, 216, 182, 0.12), rgba(31, 21, 14, 0.76)),
    rgba(24, 16, 11, 0.78);
  box-shadow: 0 24px 64px rgba(16, 10, 6, 0.34);
}

.creator-layout {
  display: grid;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto 86px;
  grid-template-columns: minmax(640px, 1.05fr) minmax(480px, 0.95fr);
  align-items: start;
  gap: 22px;
}

.creator-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.creator-controls label {
  display: grid;
  gap: 7px;
  color: rgba(244, 235, 215, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.creator-controls input,
.creator-controls select,
.bonus-input,
.export-field textarea {
  width: 100%;
  border: 1px solid rgba(214, 173, 106, 0.32);
  color: var(--bone);
  font: inherit;
  font-weight: 700;
  background: rgba(16, 10, 6, 0.54);
}

.creator-controls input,
.creator-controls select,
.bonus-input {
  min-height: 43px;
}

.creator-controls input,
.creator-controls select {
  padding: 0 12px;
}

.creator-controls option {
  color: var(--ink);
}

.creator-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.creator-summary div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(214, 173, 106, 0.2);
  background: rgba(234, 216, 182, 0.08);
}

.creator-summary span,
.sheet-table thead {
  color: rgba(244, 235, 215, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.creator-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--bronze-light);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.creator-summary strong.is-negative {
  color: #ffb1a2;
}

.sheet-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(214, 173, 106, 0.22);
}

.sheet-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.sheet-table th,
.sheet-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(214, 173, 106, 0.18);
  text-align: left;
}

.sheet-table tbody th {
  width: 38%;
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
}

.sheet-table td {
  color: rgba(244, 235, 215, 0.84);
  font-weight: 800;
}

.sheet-table tr:last-child th,
.sheet-table tr:last-child td {
  border-bottom: 0;
}

.bonus-input {
  max-width: 110px;
  padding: 0 10px;
}

.creator-notice {
  min-height: 24px;
  margin: 16px 0 0;
  color: rgba(244, 235, 215, 0.72);
  font-weight: 700;
}

.creator-notice:empty {
  display: none;
}

.player-rules,
.perk-rules {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 173, 106, 0.2);
  background: rgba(234, 216, 182, 0.08);
}

.player-rules strong,
.perk-rules strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bronze-light);
  font-family: Cinzel, Georgia, serif;
}

.player-rules p,
.perk-rules p {
  margin: 0;
  color: rgba(244, 235, 215, 0.78);
  line-height: 1.55;
}

.perk-shell {
  min-height: 100%;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.perk-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.required-perks {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 173, 106, 0.2);
  background: rgba(234, 216, 182, 0.08);
}

.required-perks span {
  display: block;
  margin-bottom: 6px;
  color: rgba(244, 235, 215, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.required-perks p {
  margin: 0;
  color: rgba(244, 235, 215, 0.78);
  line-height: 1.5;
}

.perk-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.perk-picker select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(214, 173, 106, 0.18);
  color: var(--bone);
  font: inherit;
  font-weight: 700;
  background: rgba(16, 10, 6, 0.34);
  padding: 0 12px;
}

.perk-picker option {
  color: var(--ink);
}

.selected-perk-panel {
  margin-top: 22px;
}

.selected-perk-list {
  display: grid;
  gap: 10px;
}

.selected-perk,
.empty-selection {
  border: 1px solid rgba(214, 173, 106, 0.18);
  background: rgba(16, 10, 6, 0.34);
}

.selected-perk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
}

.selected-perk span,
.selected-perk strong,
.selected-perk small {
  display: block;
}

.selected-perk strong {
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
}

.selected-perk small {
  margin-top: 4px;
  color: rgba(244, 235, 215, 0.58);
  font-weight: 800;
  text-transform: uppercase;
}

.selected-perk button {
  min-height: 36px;
  border: 1px solid rgba(214, 173, 106, 0.28);
  color: #ffd8c8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: rgba(99, 52, 58, 0.24);
}

.selected-perk button:hover {
  color: #fff3ec;
  background: rgba(99, 52, 58, 0.44);
}

.empty-selection {
  margin: 0;
  padding: 16px;
  color: rgba(244, 235, 215, 0.68);
}

.export-shell {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto 86px;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.export-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: rgba(244, 235, 215, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.export-field textarea {
  min-height: 180px;
  resize: vertical;
  padding: 14px;
  line-height: 1.55;
  text-transform: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 48px);
  color: rgba(244, 235, 215, 0.58);
  border-top: 1px solid rgba(214, 173, 106, 0.2);
  background: rgba(18, 12, 8, 0.74);
}

@media (max-width: 1180px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-title-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-title-lockup h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    white-space: normal;
  }

  .creator-layout {
    grid-template-columns: 1fr;
  }

  .rules-layout {
    grid-template-columns: 1fr;
  }

  .guides-layout {
    grid-template-columns: 1fr;
  }

  .lore-layout {
    grid-template-columns: 1fr;
  }

  .profession-detail-section {
    grid-template-columns: 1fr;
  }

  .creature-public-section {
    grid-template-columns: 1fr;
  }

  .rules-toc,
  .lore-toc,
  .guides-sidebar,
  .profession-detail-nav,
  .creature-filter-panel {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guides-sidebar input,
  .guide-nav {
    grid-column: 1 / -1;
  }

  .feature-grid,
  .feature-grid.two,
  .module-list,
  .guide-grid,
  .application-public-layout,
  .two-columns,
  .color-zone-grid,
  .jobs-grid,
  .quick-grid,
  .cheat-grid,
  .creator-controls,
  .creator-summary,
  .perk-summary,
  .perk-columns,
  .creature-card-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .main-nav a {
    padding: 8px 9px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-title-logo {
    width: 70px;
    height: 70px;
  }

  .content-section {
    padding: 68px 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
