@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #1d1a15;
  --paper: #f4ead8;
  --paper-light: #fbf4e8;
  --forest: #0d3929;
  --forest-2: #173b2a;
  --gold: #d59a2e;
  --gold-soft: #e8bd66;
  --red: #b72c20;
  --muted: #6f675c;
  --line: #d9c9ad;
  --card: #fffaf1;
  --shadow: 0 8px 30px rgba(70, 45, 20, .08);
  --content: min(1230px, calc(100% - 56px));
  --heading: Cinzel, Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .45), transparent 25%),
    linear-gradient(180deg, #f7efdf 0%, #efe2cb 100%);
  font-family: var(--body);
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 88px;
  display: grid;
  grid-template-columns: 145px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(24px, 5vw, 72px);
  background: rgba(249, 240, 224, .98);
  border-bottom: 1px solid rgba(81, 55, 23, .12);
  backdrop-filter: blur(12px);
}
.brand-mark {
  position: absolute;
  top: 0;
  left: -160px;
  width: 292px;
  height: 142px;
  padding-left: 0;
  padding-right: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  overflow: visible;
  background: rgba(249, 240, 224, .98);
  border: 1px solid rgba(81, 55, 23, .12);
  border-top: 0;
  border-radius: 0 0 146px 146px;
  text-decoration: none;
  transform: translateY(0);
}
.brand-mark img {
  width: 172px;
  height: 126px;
  margin-bottom: 40px;
  object-fit: contain;
  transform: translateX(128px);
}
.main-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(4px, .8vw, 12px);
  height: 100%;
}
.main-nav a {
  position: relative;
  padding: 34px clamp(34px, 3.4vw, 50px) 30px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .035em;
  white-space: nowrap;
}
.main-nav a:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 0;
  bottom: 24px;
  width: 1px;
  background: rgb(221, 201, 168);
}
.main-nav a:hover::after,
.main-nav .nav-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--gold);
}
.header-cta {
  grid-column: 3;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 19px;
  background: var(--forest);
  color: #fff9ed;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.header-cta:hover { background: #194533; }
.menu-button { display: none; }

.home-hero {
  position: relative;
  min-height: 365px;
  display: grid;
  grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.3fr);
  overflow: hidden;
  background: #10140f;
  color: #fff9ed;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 7, .96) 0%, rgba(5, 10, 7, .88) 30%, rgba(5, 10, 7, .36) 54%, rgba(5, 10, 7, .06) 76%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 66px 20px 58px max(32px, calc((100vw - 1220px) / 2));
}
.hero-kicker {
  margin: 0 0 12px;
  color: var(--gold-soft);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.hero-kicker.dark { color: #8b681d; }
.hero-copy h1,
.page-heading h1,
.event-detail h1,
.detail-card h2,
.signup-card h2,
.admin-title h1,
.login-card h1,
.event-card h3,
.feature-strip h3,
.footer-inner h4 {
  font-family: var(--heading);
}
.hero-copy h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(43px, 4.25vw, 68px);
  line-height: .98;
  letter-spacing: .03em;
  font-weight: 600;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.ornament {
  display: grid;
  grid-template-columns: 150px 18px 90px;
  align-items: center;
  gap: 9px;
  margin: 19px 0 17px;
  color: var(--gold);
}
.ornament span { height: 1px; background: rgba(213, 154, 46, .75); }
.ornament b { font-size: 12px; text-align: center; }
.hero-description {
  max-width: 520px;
  margin: 0;
  color: #eee6d9;
  font-size: 15px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.hero-primary,
.hero-ghost {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 5px;
  font-size: 12px;
}
.hero-primary {
  color: #142419;
  background: linear-gradient(180deg, #e4ad47, #cf8f1f);
  box-shadow: 0 7px 20px rgba(196, 129, 17, .18);
}
.hero-ghost {
  color: #fff9ed;
  border: 1px solid rgba(230, 177, 77, .9);
  background: rgba(7, 14, 10, .25);
}
.hero-art {
  min-height: 365px;
  background-image: url("/assets/images/hero-caravana.png");
  background-size: cover;
  background-position: center right;
  filter: saturate(.94) contrast(1.03);
}

.events-section {
  padding: 18px 0 20px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, .55), transparent 34%),
    linear-gradient(180deg, #fbf4e8, #f0e2c9);
}
.content-shell,
.feature-strip-inner,
.footer-inner,
.footer-bottom,
.page-shell,
.event-detail,
.admin-shell {
  width: var(--content);
  margin-inline: auto;
}
.events-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}
.events-heading h2 {
  margin: 0;
  font-family: var(--heading);
  text-transform: uppercase;
  font-size: clamp(31px, 3vw, 42px);
  letter-spacing: .035em;
  font-weight: 600;
}
.mini-ornament {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  color: var(--gold);
}
.mini-ornament span {
  width: 90px;
  height: 2px;
  background: var(--gold);
}
.mini-ornament b { font-size: 10px; }
.all-events-link {
  margin-bottom: 8px;
  color: var(--forest);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.events-carousel {
  position: relative;
}
.events-carousel .events-grid {
  display: grid;
  grid-auto-columns: calc((100% - 36px) / 3);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.events-carousel .events-grid::-webkit-scrollbar {
  display: none;
}
.events-carousel .event-card {
  scroll-snap-align: start;
}
.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 201, 168, .8);
  border-radius: 50%;
  background: var(--forest);
  color: #fff9ed;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.carousel-prev { left: -19px; }
.carousel-next { right: -19px; }
.carousel-button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.events-grid-page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(92, 70, 38, .16);
  border-radius: 9px;
  background: rgba(255, 250, 241, .94);
  box-shadow: 0 5px 17px rgba(85, 54, 20, .06);
}
.event-image-wrap {
  position: relative;
  height: 110px;
  overflow: hidden;
  background: #23372e;
}
.event-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.event-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .18));
}
.system-badge,
.capacity-badge {
  position: absolute;
  z-index: 3;
  top: 11px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.system-badge {
  left: 12px;
  background: rgba(17, 55, 36, .94);
  color: white;
}
.capacity-badge {
  right: 12px;
  background: #e7f1d2;
  color: #22331e;
}
.full-badge { background: var(--red); color: white; }
.event-card-body {
  position: relative;
  min-height: 142px;
  padding: 12px 14px 14px;
}
.event-card h3 {
  margin: 0 0 9px;
  padding-right: 115px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
}
.event-meta {
  display: grid;
  gap: 5px;
  padding-right: 108px;
}
.event-meta p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #2c2924;
  font-size: 11.5px;
  line-height: 1.25;
}
.card-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-width: 92px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 5px;
  background: var(--forest);
  color: white;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.feature-strip {
  background: #0d3929;
  color: #f9f1df;
  border-top: 1px solid rgba(221, 201, 168, .26);
  border-bottom: 1px solid rgba(221, 201, 168, .26);
}
.feature-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 19px 0;
}
.feature-strip article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  min-height: 96px;
  padding: 0 26px;
  border-right: 1px solid rgba(221, 201, 168, .35);
}
.feature-strip article:first-child { padding-left: 0; }
.feature-strip article:last-child {
  border-right: 0;
  padding-right: 0;
}
.feature-icon {
  padding-top: 3px;
  color: #e8a226;
  font-size: 38px;
  line-height: 1;
}
.feature-strip h3 {
  margin: 0 0 5px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}
.feature-strip p {
  margin: 0 0 12px;
  color: #fff8ea;
  font-size: 12px;
  line-height: 1.38;
}
.feature-strip span {
  display: inline-block;
  color: #f0a329;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}

.page-shell,
.event-detail {
  padding: 54px 0 70px;
}
.page-heading {
  max-width: 760px;
  margin-bottom: 30px;
}
.page-heading h1 {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 52px;
}
.page-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.event-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: end;
  padding: 55px;
  border-radius: 14px;
  color: white;
  background: #102d20;
}
.event-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 20, 13, .95), rgba(7, 20, 13, .55));
}
.event-detail-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-detail-hero > div {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.event-detail-hero h1 {
  margin: 0 0 15px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1;
}
.event-detail-hero p {
  font-size: 16px;
  line-height: 1.6;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  margin-top: 28px;
}
.detail-card,
.signup-card,
.login-card,
.admin-form,
.admin-table-wrap,
.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.detail-card,
.signup-card,
.admin-form {
  padding: 28px;
}
.admin-form + .admin-table-wrap {
  margin-top: 22px;
}
.admin-form .form-button {
  margin-top: 18px;
}
.image-picker {
  margin: 0;
  padding: 0;
  border: 0;
}
.image-picker legend {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}
.image-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.image-picker-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.image-picker-option input {
  position: absolute;
  opacity: 0;
}
.image-picker-option img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border: 3px solid transparent;
  border-radius: 7px;
}
.image-picker-option input:checked + img {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--forest);
}
.image-picker-option input:focus-visible + img {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
}
.detail-card h2,
.signup-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
}
.event-map-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.map-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.map-card-heading .hero-kicker { margin-bottom: 5px; }
.map-card-heading h2 { margin-bottom: 0; }
.map-card-heading a {
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}
.event-map {
  width: 100%;
  height: 320px;
  display: block;
  border: 0;
  border-radius: 8px;
  background: #e5dccb;
}
dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  margin: 20px 0 0;
}
dt {
  color: var(--forest);
  font-weight: 800;
}
dd { margin: 0; }
.signup-card form,
.login-card form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
label span {
  color: var(--muted);
  font-weight: 400;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cdbd9f;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
input[type="color"] {
  height: 52px;
  padding: 4px;
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 4px;
}
input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 4px;
}
textarea { resize: vertical; }
.field-error input,
.field-error textarea {
  border-color: var(--red);
  background: #fff6f4;
  box-shadow: 0 0 0 2px rgba(183, 44, 32, .12);
}
.field-error-message {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}
.form-button,
.primary,
.secondary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--forest);
  color: white;
}
.danger-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--red);
  color: white;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.form-actions .form-button {
  margin-top: 0;
}
.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.muted { color: var(--muted); }
.alert,
.success-box,
.note-box,
.form-error,
.warning-box {
  padding: 12px 14px;
  border-radius: 7px;
  line-height: 1.5;
}
.alert.success,
.success-box,
.note-box {
  border: 1px solid #aac8b8;
  background: #edf6f0;
  color: #24451e;
}
.alert.error,
.form-error {
  border: 1px solid #e7a99a;
  background: #fff0ed;
  color: #8e2f1d;
}
.warning-box {
  border: 1px solid #ead39a;
  background: #fff8e7;
}
.empty-state {
  padding: 30px;
  color: var(--muted);
  border-style: dashed;
}

.site-footer {
  padding: 14px 0 5px;
  background: linear-gradient(rgb(250, 241, 223), rgb(243, 230, 207));
  color: var(--ink);
}
.footer-inner {
  display: grid;
  grid-template-columns: 220px minmax(300px, 1fr) 250px 210px;
  align-items: center;
  gap: 20px;
}
.footer-inner > div {
  min-height: 108px;
  padding: 14px 28px;
  border-right: 1px solid rgb(221, 201, 168);
}
.footer-inner > div:last-child {
  border-right: 0;
}
.footer-inner h4 {
  margin: 0 0 4px;
  text-transform: uppercase;
  color: var(--ink);
  font-family: var(--heading);
  letter-spacing: .035em;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.footer-inner a,
.footer-inner p {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}
.footer-comments,
.footer-newsletter {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer-comments form {
  display: grid;
  gap: 7px;
}
.footer-comments textarea {
  min-height: 48px;
  max-height: 54px;
  padding: 7px 9px;
  border: 1px solid rgb(221, 201, 168);
  border-radius: 4px;
  background: rgba(255, 250, 241, .72);
  color: var(--ink);
  font-size: 12px;
  resize: none;
}
.footer-comments button {
  width: 86px;
  height: 28px;
  justify-self: end;
  border: 1px solid var(--forest);
  border-radius: 4px;
  background: var(--forest);
  color: #fff9ed;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.footer-newsletter p {
  margin-bottom: 8px;
  text-align: center;
}
.footer-newsletter form {
  display: grid;
  grid-template-columns: 1fr 120px;
  max-width: 422px;
  margin-inline: auto;
}
.footer-newsletter input {
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(221, 201, 168);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: rgba(255, 250, 241, .72);
  color: var(--ink);
  font-size: 12px;
}
.footer-newsletter button {
  height: 34px;
  border: 1px solid var(--forest);
  border-radius: 0 4px 4px 0;
  background: var(--forest);
  color: #fff9ed;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.footer-social {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 10px !important;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
}
.social-links a,
.social-links button {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(232, 207, 156);
  color: var(--forest);
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.social-links img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.footer-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.footer-bottom {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}

.admin-body {
  min-height: 100vh;
  background: #efe4d1;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 5vw;
  background: #102d20;
  color: white;
}
.admin-header div { display: grid; }
.admin-header span {
  color: #dbc89f;
  font-size: 12px;
}
.admin-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.admin-header a {
  color: white;
  text-decoration: none;
}
.admin-shell { margin-block: 40px; }
.admin-shell.narrow { max-width: 900px; }
.admin-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.admin-title h1 {
  margin: 0;
  font-size: 44px;
}
.compact { min-height: 38px; }
.admin-table-wrap { overflow: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td,
.registration-table th,
.registration-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee1cc;
  text-align: left;
  vertical-align: top;
}
.admin-table th,
.registration-table th {
  background: #f7edda;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
}
.admin-table small {
  display: block;
  margin-top: 4px;
  color: #756c60;
}
.admin-table tr:last-child td,
.registration-table tr:last-child td {
  border-bottom: 0;
}
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e7efdd;
  color: #24533d;
  font-size: 11px;
  font-weight: 800;
}
.status-pill.waitlisted,
.status-pill.waitlist { background: #fff3d8; color: #765717; }
.status-pill.cancelled { background: #f3e8e5; color: #844032; }
.signup-account-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ead39a;
  border-radius: 8px;
  background: #fff8e7;
}
.signup-account-box p {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.login-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.player-panel {
  display: grid;
  gap: 30px;
}
.panel-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.panel-hero h1 {
  margin: 0;
  font-family: var(--heading);
  text-transform: uppercase;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}
.panel-hero p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}
.player-event-list {
  display: grid;
  gap: 16px;
}
.player-event-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(230px, .42fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.player-event-card > img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  background: #23372e;
}
.player-event-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}
.player-event-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.system-badge.static {
  position: static;
  display: inline-block;
}
.player-event-card h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: 26px;
  line-height: 1.1;
}
.player-event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.character-sheet-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px dashed #d2bd91;
  border-radius: 9px;
  background: #fff8e7;
}
.character-sheet-card h4 {
  margin: 0;
  font-family: var(--heading);
  font-size: 20px;
  line-height: 1.15;
}
.character-sheet-card p {
  margin: 0;
  font-size: 13px;
}
.character-summary-panel,
.sheet-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.character-summary-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}
.character-summary-panel h2 {
  margin: 0 0 6px;
  font-family: var(--heading);
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 36px);
}
.character-summary-panel p {
  margin: 0;
  color: var(--muted);
}
.character-page {
  display: grid;
  gap: 22px;
}
.character-hero {
  align-items: center;
}
.character-sheet-form {
  display: grid;
  gap: 18px;
}
.sheet-section {
  padding: 22px;
}
.sheet-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eadcc2;
  padding-bottom: 12px;
}
.sheet-section-heading h2 {
  margin: 0;
  font-family: var(--heading);
  text-transform: uppercase;
  font-size: 25px;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}
.stats-grid label {
  min-width: 0;
}
.stats-grid input {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}
.sticky-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #d7c49e;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 250, 241, .96);
  box-shadow: 0 -8px 22px rgba(70, 45, 20, .08);
}
.sticky-save-bar span {
  color: var(--muted);
  font-size: 13px;
}
.pdf-sheet-form {
  width: min(100%, 980px);
  margin-inline: auto;
}
.pdf-sheet-page {
  position: relative;
  width: 100%;
  aspect-ratio: 1224 / 1584;
  overflow: hidden;
  border: 1px solid #b8aa92;
  border-radius: 4px;
  background-color: white;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 10px 30px rgba(70, 45, 20, .12);
}
.pdf-sheet-page + .pdf-sheet-page {
  margin-top: 24px;
}
.pdf-sheet-page.page-one {
  background-image: url("/assets/sheets/hoja-personaje-page-1.png");
}
.pdf-sheet-page.page-two {
  background-image: url("/assets/sheets/hoja-personaje-page-2.png");
}
.pdf-sheet-page.page-mausritter {
  background-image: url("/assets/sheets/hoja-mausritter-page-1.png");
}
.pdf-field {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  min-height: 0;
  padding: .18em .28em;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #1d1a15;
  font-family: var(--body);
  font-size: clamp(7px, .92vw, 12px);
  font-weight: 600;
  line-height: 1.15;
  outline: 0;
  resize: none;
  box-shadow: none;
  overflow: hidden;
}
input.pdf-field {
  display: flex;
  align-items: center;
}
.pdf-field:hover {
  background: rgba(255, 244, 168, .24);
}
.pdf-cover-field {
  background: rgba(255, 255, 255, .94);
}
.pdf-field:focus {
  border-color: #2f62a6;
  background: rgba(255, 252, 218, .86);
  box-shadow: 0 0 0 2px rgba(47, 98, 166, .18);
}
.pdf-title-field {
  text-align: center;
  font-size: clamp(9px, 1.18vw, 16px);
  font-weight: 700;
  text-transform: uppercase;
}
.mausritter-name-field {
  font-size: clamp(7px, .9vw, 12px);
}
.pdf-inventory-slot {
  padding: .12em .2em;
  font-size: clamp(6px, .72vw, 10px);
}
.pdf-inventory-notes,
.pdf-equipment-notes {
  font-size: clamp(5px, .62vw, 9px);
  line-height: 1.05;
}
.pdf-big-field {
  text-align: center;
  font-size: clamp(16px, 2.4vw, 31px);
  font-weight: 800;
}
.pdf-center-field,
.pdf-stat {
  text-align: center;
}
.pdf-stat {
  border-radius: 50%;
  padding: 0;
  font-size: clamp(18px, 3.2vw, 38px);
  font-weight: 800;
}
.pdf-stat-score {
  border-radius: 50%;
  padding: 0;
  text-align: center;
  font-size: clamp(12px, 1.9vw, 22px);
  font-weight: 800;
}
.pdf-check-field {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  min-height: 0;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 1.5px solid #295a9e;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.pdf-check-field:checked {
  background: #295a9e;
  box-shadow: inset 0 0 0 2px white;
}
.pdf-check-field:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(47, 98, 166, .28);
}
.pdf-check-field:checked:focus {
  box-shadow: inset 0 0 0 2px white, 0 0 0 2px rgba(47, 98, 166, .28);
}
.pdf-save-field {
  padding: 0;
  text-align: center;
  font-size: clamp(8px, 1.05vw, 13px);
  font-weight: 800;
}
.pdf-area {
  white-space: pre-wrap;
}
.pdf-compact-field {
  font-size: clamp(6px, .82vw, 10.5px);
  line-height: 1.1;
}
.pdf-number-field {
  padding: 0;
  font-size: clamp(12px, 1.8vw, 24px);
  font-weight: 800;
}
.pdf-list-field {
  font-size: clamp(6px, .82vw, 10.5px);
  line-height: 1.35;
}
.pdf-table-field {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(5.5px, .72vw, 9.2px);
  line-height: 1.55;
  white-space: pre;
}
.pdf-attack-field {
  tab-size: 8;
}
.pdf-spells-field {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(5px, .68vw, 8.8px);
  line-height: 1.72;
  white-space: pre;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.span-2 { grid-column: span 2; }
.login-card {
  width: min(430px, calc(100% - 36px));
  margin: 8vh auto;
  padding: 28px;
}
.login-card img {
  width: 170px;
  height: 120px;
  display: block;
  object-fit: contain;
  margin: auto;
}
.login-card h1 {
  margin: 10px 0 20px;
  text-align: center;
}
.login-card > a {
  display: block;
  margin-top: 18px;
  color: var(--forest);
  text-align: center;
}
.login-card > .create-player-link span {
  display: inline-block;
  transform: translateY(10px);
}
.inline-form {
  display: flex;
  gap: 7px;
}
.inline-form button,
.text-button {
  padding: 6px 9px;
  border: 1px solid #cab998;
  border-radius: 5px;
  background: #fff8eb;
  color: var(--ink);
  cursor: pointer;
}
button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 125px 1fr auto;
    padding-inline: 22px;
  }
  .brand-mark { width: 160px; }
  .main-nav {
    justify-content: space-evenly;
    gap: clamp(22px, 3vw, 34px);
  }
  .main-nav a { font-size: 15px; }
  .header-cta {
    padding-inline: 16px;
    font-size: 11px;
  }
  .feature-strip article { padding-inline: 14px; }
  .feature-icon { font-size: 32px; }
}

@media (max-width: 900px) {
  :root { --content: min(100% - 30px, 1230px); }
  .site-header {
    grid-template-columns: 1fr auto;
    height: 76px;
    padding-inline: 18px;
  }
  .brand-mark {
    left: -136px;
    width: 248px;
    height: 118px;
    padding-left: 0;
    justify-content: flex-start;
    border-radius: 0 0 124px 124px;
    transform: translateY(0);
  }
  .brand-mark img {
    width: 144px;
    height: 72px;
    transform: translateX(108px);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    height: auto;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    background: #fbf2e2;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px; }
  .header-cta { display: none; }
  .menu-button {
    grid-column: 2;
    display: block;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 25px;
    cursor: pointer;
  }
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 560px;
  }
  .home-hero::after {
    background: linear-gradient(180deg, rgba(5, 10, 7, .40), rgba(5, 10, 7, .93) 58%);
  }
  .hero-art {
    grid-row: 1;
    min-height: 560px;
    background-position: 66% center;
  }
  .hero-copy {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 30px 48px;
  }
  .events-grid,
  .events-grid-page,
  .detail-grid,
  .form-grid,
  .character-grid,
  .player-event-card {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-event-card > img { height: 210px; }
  .events-carousel .events-grid {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
  .feature-strip-inner,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner > div:nth-child(2) {
    border-right: 0;
  }
  .feature-strip article {
    padding: 20px;
    border-bottom: 1px solid rgba(221, 201, 168, .35);
  }
  .feature-strip article:nth-child(2) { border-right: 0; }
  .feature-strip article:nth-child(3),
  .feature-strip article:nth-child(4) { border-bottom: 0; }
  .span-2 { grid-column: auto; }
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .character-summary-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  :root { --content: calc(100% - 28px); }
  .site-header { padding-inline: 12px; }
  .brand-mark {
    left: -98px;
    width: 184px;
    height: 98px;
    padding-left: 0;
    justify-content: flex-start;
    border-radius: 0 0 92px 92px;
    transform: translateY(0);
  }
  .brand-mark img {
    width: 110px;
    height: 56px;
    transform: translateX(76px);
  }
  .home-hero,
  .hero-art {
    min-height: 590px;
  }
  .hero-copy {
    padding: 0 22px 36px;
  }
  .hero-copy h1 { font-size: 42px; }
  .hero-description { font-size: 14px; }
  .ornament { grid-template-columns: 110px 18px 55px; }
  .events-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .all-events-link { margin: 0; }
  .event-card h3 {
    padding-right: 0;
    font-size: 19px;
  }
  .event-meta {
    padding-right: 0;
    padding-bottom: 48px;
  }
  .events-carousel .events-grid {
    grid-auto-columns: 100%;
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .feature-strip-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner > div {
    border-right: 0;
  }
  .footer-newsletter form {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .footer-newsletter input,
  .footer-newsletter button {
    border-radius: 4px;
    border: 1px solid rgb(221, 201, 168);
  }
  .footer-newsletter button {
    border-color: var(--forest);
  }
  .feature-strip article {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(221, 201, 168, .35) !important;
  }
  .feature-strip article:last-child { border-bottom: 0 !important; }
  .page-heading h1 { font-size: 39px; }
  .event-detail-hero {
    min-height: 380px;
    padding: 28px;
  }
  .sheet-section {
    padding: 18px;
  }
  .sheet-section-heading,
  .sticky-save-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  dl {
    grid-template-columns: 1fr;
    gap: 3px 0;
  }
  dd { margin-bottom: 12px; }
  .map-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-card-heading a { text-align: left; }
  .event-map { height: 250px; }
  .admin-shell { width: calc(100% - 24px); }
}
