:root {
  --paper: #fbfbf6;
  --ink: #151821;
  --muted: #5c6570;
  --line: #d8ded3;
  --teal: #1f6f63;
  --rose: #b84f72;
  --sky: #6aa8d8;
  --gold: #c79630;
  --plum: #6f3c7a;
  --mint: #e8f5ee;
  --blush: #fae7ef;
  --bluewash: #e7f2fb;
  --butter: #fff2bc;
  --white: #fffefa;
  --shadow: 0 18px 46px rgba(21, 24, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(31, 111, 99, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(184, 79, 114, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 54px 54px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(106, 168, 216, 0.12) 46% 49%, transparent 49% 100%) 7% 18% / 130px 70px no-repeat,
    linear-gradient(35deg, transparent 0 42%, rgba(199, 150, 48, 0.16) 42% 47%, transparent 47% 100%) 88% 14% / 160px 84px no-repeat,
    linear-gradient(155deg, transparent 0 44%, rgba(184, 79, 114, 0.12) 44% 49%, transparent 49% 100%) 82% 88% / 150px 82px no-repeat;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  border-bottom: 1px solid rgba(216, 222, 211, 0.9);
  background: rgba(251, 251, 246, 0.94);
  padding: 0 max(20px, calc((100% - 1180px) / 2));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 900;
  transform: rotate(-2deg);
}

.brand-text {
  max-width: 240px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.page-shell {
  min-height: calc(100vh - 76px);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 58px;
  align-items: center;
  min-height: 720px;
  padding: 76px 0 62px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.04;
}

h1 {
  max-width: 860px;
  font-size: 5.7rem;
}

h2 {
  font-size: 3.8rem;
}

h3 {
  font-size: 2.15rem;
}

p {
  margin: 0;
}

.intro {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions,
.button-row,
.admin-actions,
.toolbar,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 9px 15px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.rose {
  border-color: var(--rose);
  background: var(--blush);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-photo-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(21, 24, 33, 0), rgba(21, 24, 33, 0.22)),
    radial-gradient(circle at 30% 12%, rgba(255, 242, 188, 0.32), transparent 34%);
}

.hero-photo-card img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: 50% 44%;
}

.hero-photo-card .doodle,
.hero-photo-card .stage-note {
  z-index: 2;
}

.stage-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.3deg);
}

.stage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(184, 79, 114, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, rgba(31, 111, 99, 0.08) 25%, transparent 25%) 0 0 / 28px 28px;
}

.stage-curtain {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 42px;
  height: 94px;
  border: 3px solid var(--rose);
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
}

.stage-curtain::before,
.stage-curtain::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 3px;
  height: 130px;
  background: var(--rose);
}

.stage-curtain::before {
  left: 33%;
}

.stage-curtain::after {
  right: 33%;
}

.stage-floor {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 70px;
  height: 82px;
  border: 3px solid var(--teal);
  border-top: 0;
  transform: skewX(-8deg);
}

.stage-note {
  position: absolute;
  left: 44px;
  bottom: 48px;
  width: 150px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--butter);
  padding: 14px;
  font-weight: 900;
  transform: rotate(-5deg);
}

.stage-note small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.stage-pencil {
  position: absolute;
  right: 54px;
  bottom: 82px;
  width: 112px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--sky);
  transform: rotate(-25deg);
}

.stage-pencil::after {
  content: "";
  position: absolute;
  right: -23px;
  top: -2px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 23px solid var(--gold);
}

.doodle {
  position: absolute;
  pointer-events: none;
}

.doodle.star {
  width: 42px;
  height: 42px;
}

.doodle.star::before,
.doodle.star::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 3px;
  width: 4px;
  height: 36px;
  border-radius: 99px;
  background: var(--gold);
}

.doodle.star::after {
  transform: rotate(90deg);
}

.doodle.star span::before,
.doodle.star span::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 3px;
  width: 4px;
  height: 36px;
  border-radius: 99px;
  background: var(--gold);
  transform: rotate(45deg);
}

.doodle.star span::after {
  transform: rotate(-45deg);
}

.doodle.loop {
  width: 76px;
  height: 42px;
  border: 3px solid var(--teal);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-14deg);
}

.doodle.zig {
  width: 92px;
  height: 28px;
  background: linear-gradient(135deg, transparent 35%, var(--plum) 35%, var(--plum) 45%, transparent 45%) 0 0 / 24px 24px;
}

.doodle.one {
  right: 26px;
  top: 22px;
}

.doodle.two {
  left: -26px;
  top: 140px;
}

.doodle.three {
  right: -22px;
  bottom: 38px;
}

.welcome-band {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(232, 245, 238, 0.78);
  padding: 72px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.section-tile {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(21, 24, 33, 0.04);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.section-tile::before {
  content: "";
  position: absolute;
  inset: auto 16px 16px auto;
  width: 62px;
  height: 42px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: 0.22;
  transform: rotate(-18deg);
}

.section-tile[data-accent="rose"] {
  color: var(--rose);
}

.section-tile[data-accent="teal"] {
  color: var(--teal);
}

.section-tile[data-accent="sky"] {
  color: var(--sky);
}

.section-tile[data-accent="gold"] {
  color: var(--gold);
}

.section-tile strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.05rem;
  line-height: 1;
}

.section-tile span {
  display: block;
  margin-top: 22px;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 900;
}

.section-tile small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.section-tile:hover {
  border-color: currentColor;
  box-shadow: var(--shadow);
  transform: translateY(-3px) rotate(-0.4deg);
}

.section-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 96px 0 72px;
}

.section-hero::before {
  content: "";
  position: absolute;
  right: 8%;
  top: 44px;
  width: 160px;
  height: 96px;
  border: 3px solid var(--sky);
  border-left-color: transparent;
  border-radius: 50%;
  opacity: 0.45;
  transform: rotate(-22deg);
}

.section-title {
  max-width: 920px;
  font-size: 5.9rem;
}

.section-subtitle {
  max-width: 780px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.16rem;
}

.reading {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 92px;
}

.article {
  position: relative;
  display: grid;
  gap: 24px;
}

.article + .article {
  margin-top: 70px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.article-kicker {
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-body {
  color: #2f3640;
  font-size: 1.08rem;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body blockquote {
  margin: 28px 0;
  border-left: 4px solid var(--gold);
  padding: 10px 0 10px 20px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
}

.guide-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(21, 24, 33, 0.05);
}

.guide-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

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

.guide-list li {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px 10px 36px;
  color: var(--muted);
  font-weight: 700;
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 17px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.visual-card,
.gallery-placeholder,
.gallery-photo-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(21, 24, 33, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 24, 33, 0.05) 1px, transparent 1px),
    var(--butter);
  background-size: 24px 24px;
}

.visual-card[data-accent="rose"],
.gallery-placeholder[data-accent="rose"] {
  background-color: var(--blush);
}

.visual-card[data-accent="teal"],
.gallery-placeholder[data-accent="teal"] {
  background-color: var(--mint);
}

.visual-card[data-accent="sky"],
.gallery-placeholder[data-accent="sky"] {
  background-color: var(--bluewash);
}

.visual-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: 70%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
}

.doodle-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 120px;
  transform: translate(-50%, -50%) rotate(-4deg);
}

.doodle-icon::before,
.doodle-icon::after {
  content: "";
  position: absolute;
}

.doodle-icon.script::before {
  left: 18px;
  top: 16px;
  width: 104px;
  height: 78px;
  border: 3px solid var(--rose);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.65);
}

.doodle-icon.script::after {
  left: 38px;
  top: 38px;
  width: 70px;
  height: 28px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 15px 0 var(--ink);
}

.doodle-icon.spotlight::before {
  left: 20px;
  top: 18px;
  width: 64px;
  height: 48px;
  border: 3px solid var(--teal);
  border-radius: 999px 999px 40px 40px;
  transform: rotate(-20deg);
}

.doodle-icon.spotlight::after {
  left: 64px;
  top: 64px;
  width: 72px;
  height: 48px;
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  transform: skewX(-22deg);
}

.doodle-icon.pencil::before {
  left: 14px;
  top: 48px;
  width: 104px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--sky);
  transform: rotate(-18deg);
}

.doodle-icon.pencil::after {
  right: 10px;
  top: 38px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 32px solid var(--gold);
  transform: rotate(-18deg);
}

.doodle-icon.mask::before {
  left: 8px;
  top: 34px;
  width: 58px;
  height: 68px;
  border: 3px solid var(--rose);
  border-radius: 50% 50% 46% 46%;
}

.doodle-icon.mask::after {
  right: 12px;
  top: 28px;
  width: 58px;
  height: 72px;
  border: 3px solid var(--teal);
  border-radius: 50% 50% 46% 46%;
}

.doodle-icon.hammer::before {
  left: 26px;
  top: 28px;
  width: 88px;
  height: 26px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--gold);
  transform: rotate(12deg);
}

.doodle-icon.hammer::after {
  left: 72px;
  top: 44px;
  width: 18px;
  height: 82px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--teal);
  transform: rotate(12deg);
}

.doodle-icon.hanger::before {
  left: 36px;
  top: 28px;
  width: 72px;
  height: 44px;
  border-top: 4px solid var(--rose);
  border-left: 4px solid var(--rose);
  border-right: 4px solid var(--rose);
  border-radius: 80px 80px 0 0;
}

.doodle-icon.hanger::after {
  left: 28px;
  top: 70px;
  width: 96px;
  height: 44px;
  border: 4px solid var(--teal);
  border-top: 0;
  transform: skewX(-14deg);
}

.doodle-icon.wave::before {
  left: 4px;
  top: 48px;
  width: 132px;
  height: 36px;
  border-top: 5px solid var(--sky);
  border-radius: 50%;
}

.doodle-icon.wave::after {
  left: 10px;
  top: 68px;
  width: 126px;
  height: 34px;
  border-top: 5px solid var(--rose);
  border-radius: 50%;
}

.doodle-icon.megaphone::before {
  left: 18px;
  top: 46px;
  width: 96px;
  height: 48px;
  border: 3px solid var(--ink);
  background: var(--gold);
  clip-path: polygon(0 32%, 74% 0, 100% 0, 100% 100%, 74% 100%, 0 68%);
}

.doodle-icon.megaphone::after {
  left: 12px;
  top: 58px;
  width: 34px;
  height: 24px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
}

.doodle-icon.calendar::before {
  left: 24px;
  top: 20px;
  width: 102px;
  height: 88px;
  border: 3px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.7);
}

.doodle-icon.calendar::after {
  left: 24px;
  top: 42px;
  width: 102px;
  height: 3px;
  background: var(--rose);
  box-shadow: 22px 28px 0 var(--gold), 52px 28px 0 var(--gold), 82px 28px 0 var(--gold);
}

.doodle-icon.curtain::before {
  left: 16px;
  top: 24px;
  width: 118px;
  height: 74px;
  border: 4px solid var(--rose);
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
}

.doodle-icon.curtain::after {
  left: 52px;
  top: 36px;
  width: 4px;
  height: 88px;
  background: var(--rose);
  box-shadow: 42px 0 0 var(--rose);
}

.doodle-icon.clipboard::before {
  left: 34px;
  top: 24px;
  width: 82px;
  height: 92px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
}

.doodle-icon.clipboard::after {
  left: 58px;
  top: 18px;
  width: 34px;
  height: 18px;
  border: 3px solid var(--teal);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 38px 0 -7px var(--rose), 0 60px 0 -7px var(--gold);
}

.doodle-icon.camera::before {
  left: 24px;
  top: 42px;
  width: 104px;
  height: 66px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--sky);
}

.doodle-icon.camera::after {
  left: 58px;
  top: 56px;
  width: 36px;
  height: 36px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow: -22px -22px 0 -12px var(--gold);
}

.doodle-icon.film::before {
  left: 26px;
  top: 28px;
  width: 96px;
  height: 74px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--plum);
}

.doodle-icon.film::after {
  left: 38px;
  top: 39px;
  width: 12px;
  height: 12px;
  background: var(--paper);
  box-shadow: 0 22px 0 var(--paper), 0 44px 0 var(--paper), 62px 0 0 var(--paper), 62px 22px 0 var(--paper), 62px 44px 0 var(--paper);
}

.doodle-icon.spark::before,
.doodle-icon.spark::after {
  left: 70px;
  top: 18px;
  width: 6px;
  height: 92px;
  border-radius: 99px;
  background: var(--gold);
}

.doodle-icon.spark::after {
  transform: rotate(90deg);
}

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

.gallery-placeholder {
  margin: 0;
  min-height: 210px;
}

.gallery-photo-card {
  aspect-ratio: 4 / 3;
  margin: 0;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(21, 24, 33, 0.07);
}

.gallery-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder:nth-child(2n) {
  transform: rotate(0.7deg);
}

.gallery-placeholder:nth-child(3n),
.gallery-photo-card:nth-child(3n) {
  transform: rotate(-0.8deg);
}

.gallery-photo-card:nth-child(2n) {
  transform: rotate(0.7deg);
}

.gallery-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.92);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: 44px max(20px, calc((100% - 1180px) / 2));
}

.site-footer p,
.site-footer small {
  color: rgba(251, 251, 246, 0.72);
}

.site-footer small {
  grid-column: 1 / -1;
}

.footer-links {
  justify-content: flex-end;
  align-content: start;
}

.footer-links a {
  color: rgba(251, 251, 246, 0.86);
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

.back-to-top.is-visible {
  display: block;
}

.loading-state,
.not-found {
  width: min(840px, calc(100% - 40px));
  margin: 90px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 42px;
  box-shadow: var(--shadow);
}

.admin-body {
  background: #f7f5ef;
}

.admin-layout,
.login-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto;
}

.login-wrap {
  display: grid;
  min-height: calc(100vh - 84px);
  place-items: center;
}

.login-panel,
.admin-panel,
.editor-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-panel {
  width: min(520px, 100%);
  padding: 34px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  border: 1px solid #2b2f39;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 18px;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.admin-sidebar a,
.admin-sidebar button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(251, 251, 246, 0.76);
  padding: 10px 12px;
  text-align: left;
  font-weight: 850;
}

.admin-sidebar a:hover,
.admin-sidebar a.is-active,
.admin-sidebar button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}

.admin-main {
  display: grid;
  gap: 18px;
}

.admin-panel,
.editor-panel {
  padding: 26px;
}

.admin-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-title {
  font-size: 3.4rem;
}

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

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.admin-card h3,
.admin-card h2 {
  font-size: 1.65rem;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 11px 12px;
  color: var(--ink);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.toolbar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f8f3;
  padding: 8px;
}

.toolbar button,
.toolbar select,
.toolbar input,
.toolbar-file-button {
  width: auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 6px 9px;
  font-weight: 850;
}

.toolbar-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.toolbar input[type="color"] {
  width: 44px;
  padding: 3px;
}

.rich-editor {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  outline: none;
}

.rich-editor:empty::before {
  content: "Start writing here...";
  color: #9aa1a9;
}

.article-body figure,
.rich-editor figure {
  margin: 22px 0;
}

.article-body img,
.rich-editor img {
  width: 100%;
  max-height: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: var(--white);
}

.article-body figcaption,
.rich-editor figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.message {
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff7dc;
  padding: 12px 14px;
  color: #4f5760;
  font-weight: 750;
}

.message.error {
  border-left-color: var(--rose);
  background: #ffeef4;
}

.entry-list {
  display: grid;
  gap: 12px;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
}

.preview-box {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-top: 1px solid var(--line);
    padding: 10px 0;
  }

  .hero,
  .guide-grid,
  .site-footer,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1,
  .section-title {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 3rem;
  }

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

  .admin-sidebar {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-text {
    max-width: 190px;
  }

  h1,
  .section-title {
    font-size: 3.15rem;
  }

  h2,
  .admin-title {
    font-size: 2.45rem;
  }

  .hero-visual {
    min-height: 420px;
  }

  .stage-card {
    min-height: 390px;
  }

  .hero-photo-card,
  .hero-photo-card img {
    min-height: 430px;
    height: 430px;
  }

  .section-grid,
  .gallery-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-topline,
  .entry-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}
