@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-greek-400-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/noto-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/noto-sans-greek-600-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/noto-serif-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/noto-serif-greek-500-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --paper: #f3efe6;
  --paper-2: #e7e0d2;
  --ink: #1c2420;
  --muted: #5c675f;
  --line: #ddd4c4;
  --brand: #243024;
  --accent: #b45309;
  --on-brand: #fffaf3;
  --on-accent: #fffaf3;
  --serif: "Noto Serif", Georgia, serif;
  --sans: "Noto Sans", "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(36, 48, 36, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(180, 83, 9, 0.08), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 5vw, 4.4rem); margin: 0 0 0.4em; }
h2 { font-size: 1.6rem; margin: 1.4em 0 0.4em; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--brand);
  color: var(--on-brand);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(560px, 100%); }
.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.lead { font-size: 1.15rem; max-width: 38rem; }

.topbar, .site-footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar { min-height: 64px; }
.brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.topnav, .row-actions, .hero-actions, .print-toolbar, .row-between, .copyline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.topnav a, .linkish {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.topnav a:hover, .linkish:hover { border-bottom-color: var(--ink); }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.site-footer {
  padding: 48px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer a { margin-right: 16px; }

.hero { padding: 28px 0 10px; }
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  background: rgba(255, 250, 243, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}
.steps strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.note {
  margin-top: 28px;
  padding: 20px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 250, 243, 0.55);
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn.danger { border-color: #9f1239; color: #9f1239; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.banner {
  background: #f4e1c4;
  border: 1px solid #e0c08a;
  padding: 12px 14px;
  border-radius: 12px;
}
.banner.ok { background: #e5f0e4; border-color: #b7d0b4; }
.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span, .check span { font-size: 0.92rem; }
input[type="text"], input[type="email"], input[type="date"], input[type="datetime-local"], input[type="file"], input:not([type]) {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffaf3;
  color: var(--ink);
}
input[type="color"] { width: 100%; height: 44px; border: 0; background: transparent; padding: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 4px; width: 1.1rem; height: 1.1rem; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cover {
  background: var(--brand) center/cover no-repeat;
  color: var(--on-brand);
  padding: 22px 0 28px;
}
.cover-inner { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.cover-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cover h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.cover-meta { margin: 0.2rem 0; opacity: 0.9; }
.logo { height: 42px; width: auto; object-fit: contain; }
.quiet { color: inherit; opacity: 0.85; }
.guest-layout { width: min(1080px, calc(100% - 32px)); margin: 18px auto 0; display: grid; gap: 22px; }
.upload-card {
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.drop {
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  cursor: pointer;
  gap: 6px;
}
.drop strong { font-size: 1.05rem; }
.drop span, .expiry-line { color: var(--muted); font-size: 0.92rem; }
.drop.over { border-color: var(--accent); background: #fff7ee; }
.queue { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.queue li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.92rem;
}
.bar { height: 4px; background: var(--paper-2); border-radius: 99px; overflow: hidden; grid-column: 1 / -1; }
.bar span { display: block; height: 100%; background: var(--accent); width: 0; }
.album-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.tile {
  display: block;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 22px solid var(--on-brand);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.play { background: var(--brand); }
.cap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 2px 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retract {
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  min-height: 32px;
}
.empty { color: var(--muted); padding: 24px 0; }
[hidden] { display: none !important; }
@media (min-width: 720px) {
  .album-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .guest-layout { grid-template-columns: 1fr 320px; align-items: start; }
  .upload-card { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
  .guest-layout > section:last-child { grid-column: 1; grid-row: 1; }
  .album-grid { grid-template-columns: repeat(3, 1fr); }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #0d100e;
  color: white;
}
.lightbox img, .lightbox video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d100e;
}
.lightbox button, .lightbox a.lb {
  position: absolute;
  z-index: 2;
  border: 0;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; }
.lb-next { right: 10px; top: 50%; }
.lb-bar {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  align-items: center;
}
.lb-name {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(0,0,0,.55);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.upload-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: 28px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.upload-banner i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  width: 0;
}

.event-list, .mod-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.event-list li, .mod-list li {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.75);
}
.event-list a { text-decoration: none; display: grid; }
.event-list code { font-size: 0.82rem; color: var(--muted); }
.badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  background: white;
}
.badge-open { background: #e5f0e4; }
.badge-closed, .badge-expired, .badge-deleted { background: #f6e4e4; }
.badge-upcoming { background: #f4e1c4; }
.row-between { justify-content: space-between; margin-top: 12px; }
.copyline input { flex: 1; min-width: 0; }
.preview, .cover-preview { max-height: 88px; border-radius: 12px; }
.cover-preview { width: 100%; max-height: 160px; object-fit: cover; }
.prose { padding-top: 12px; }
.prose h2 { font-size: 1.35rem; }
.prose li { margin: 0.3em 0; }

.print-toolbar { width: min(420px, calc(100% - 32px)); margin: 16px auto; }
.invite {
  width: min(420px, calc(100% - 32px));
  margin: 0 auto 32px;
  background: #fffaf3;
  border: 1px solid var(--line);
  min-height: 560px;
  padding: 0 28px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.invite-band {
  margin: 0 -28px 18px;
  background: var(--brand);
  color: var(--on-brand);
  padding: 22px 16px 16px;
}
.invite-band p { margin: 8px 0 0; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.invite h1 { font-size: 2.1rem; }
.invite-meta { margin: 0; color: var(--muted); }
.qr { margin: 18px auto; width: fit-content; background: white; padding: 10px; }
.qr svg { display: block; width: 210px; height: 210px; }
.invite-hint { color: var(--muted); }
.invite-url { color: var(--accent); word-break: break-all; }

@media print {
  body { background: white; }
  .print-toolbar, .site-footer, .skip, .print-hide, .banner { display: none !important; }
  .invite { box-shadow: none; border: 0; margin: 0; width: auto; }
  @page { size: A5 portrait; margin: 12mm; }
}
@media (max-width: 640px) {
  .row-between, .copyline { align-items: stretch; }
  .row-actions { width: 100%; }
  .row-actions .btn { flex: 1; }
}
