:root {
  --ink: #f5f3ed;
  --muted: #c1beb8;
  --line: #505050;
  --red: #e5b044;
  --bg: #333333;
}

body {
  background: #333333;
  color: #f5f3ed;
}

header {
  height: 82px;
  background: #262626;
  border-bottom-color: #505050;
}

.brand {
  color: #e5b044;
  letter-spacing: .08em;
  font-size: 22px;
}

main {
  max-width: 1200px;
}

.hero {
  min-height: 0;
  margin: 32px 0 42px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid #505050;
  border-left: 4px solid #e5b044;
  border-radius: 16px;
  background: #262626;
}

.events-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 20px;
  padding: 13px 18px;
  border-radius: 8px;
  background: #e5b044;
  color: #211d16;
  text-decoration: none;
  font-weight: 800;
  transition: background .15s ease, transform .15s ease;
}

.events-cta:hover {
  background: #f0c461;
  transform: translateY(-1px);
}

html { scroll-behavior: smooth; }

.hero h1,
.event-head h1 {
  max-width: 11ch;
  margin: 18px 0;
  font-size: clamp(46px, 6vw, 74px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-transform: none;
}

.hero p:not(.eyebrow),
.event-head > p {
  color: #d0ccc4;
  font-size: 18px;
  line-height: 1.55;
}

.eyebrow,
time {
  color: #e5b044;
  font-weight: 800;
}

.section-title {
  border-bottom-color: #505050;
}

.event-card {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid #505050;
  border-radius: 16px;
  background: #262626;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: #e5b044;
  background: #2b2b2b;
}

.cover {
  border-radius: 11px;
  background: #303030;
}

.event-card h3 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.04;
  text-transform: none;
}

.back {
  color: #e5b044;
  font-weight: 700;
}

.event-head {
  margin: 42px 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #505050;
  border-left: 4px solid #e5b044;
  border-radius: 16px;
  background: #262626;
}

.gallery button {
  padding: 6px;
  border: 1px solid #505050;
  border-radius: 12px;
  background: #262626;
}

.gallery img {
  border-radius: 8px;
}

footer {
  border-top-color: #505050;
  background: #262626;
}

.panel {
  border-color: #505050;
  border-radius: 16px;
  background: #262626;
  box-shadow: none;
}

input,
textarea {
  border-color: #6a6a6a;
  border-radius: 8px;
  background: #1b1b1b;
  color: #f5f3ed;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #e5b044;
  outline-offset: 2px;
}

.panel button,
.download {
  background: #e5b044;
  color: #211d16;
}

.panel button {
  border-radius: 8px;
  padding: 14px 18px;
}

.panel button:hover,
.download:hover {
  background: #f0c461;
}

.admin-event {
  display: block;
  border-bottom-color: #505050;
}

.admin-event-head,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-actions { justify-content: flex-end; }
.upload-button { margin: 0; padding: 13px 17px; border-radius: 8px; background: #484848; color: #f5f3ed; font-weight: 700; cursor: pointer; }
.upload-button input { display: none; }
.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; width: 100%; margin-top: 18px; }
.photo-admin-card { overflow: hidden; border: 1px solid #555; border-radius: 11px; background: #303030; }
.photo-admin-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-admin-card > div { display: grid; gap: 8px; padding: 10px; }
.photo-admin-card strong { padding: 8px; color: #e5b044; text-align: center; font-size: 12px; }
.photo-admin-card button { width: 100%; padding: 9px 10px; font-size: 12px; }
.photo-admin-card button.danger { background: #484848; color: #f5f3ed; }
.photo-admin-card button.danger:hover { background: #70423f; }

dialog {
  background: rgba(27, 27, 27, .98);
}

@media (max-width: 760px) {
  header { height: 68px; }
  .hero { min-height: 0; margin: 24px 0 36px; padding: 28px 22px; }
  .event-head { margin: 28px 0; padding: 28px 22px; }
  .hero h1, .event-head h1 { font-size: clamp(42px, 13vw, 66px); }
  .event-card { padding: 14px; }
}
