:root {
  color-scheme: light;
  --ink: #10213f;
  --ink-soft: #32415f;
  --night: #101d34;
  --night-2: #1b2f4e;
  --gold: #c59a46;
  --gold-bright: #efcf83;
  --paper: #f8f3ea;
  --paper-2: #fffaf0;
  --mist: rgba(255, 250, 240, 0.82);
  --line: rgba(197, 154, 70, 0.42);
  --shadow: 0 24px 80px rgba(5, 12, 28, 0.3);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: 4.75rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(239, 207, 131, 0.18), transparent 22rem),
    linear-gradient(135deg, #0e1a30 0%, #243e62 38%, #f7efe2 39%, #fff8eb 100%);
  font-family:
    Optima,
    Candara,
    "Segoe UI",
    system-ui,
    sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.couple-silhouette {
  position: absolute;
  top: clamp(5.5rem, 9vw, 8rem);
  left: max(0.5rem, calc((100vw - 1180px) / 2 - 4rem));
  width: min(35rem, 46vw);
  aspect-ratio: 310 / 330;
  background-image: url("assets/couple-silhouette.png");
  background-position: center bottom;
  background-size: cover;
  filter: grayscale(1) contrast(1.45) brightness(0.42) sepia(0.35)
    hue-rotate(170deg) saturate(1.5);
  opacity: 0.48;
  mix-blend-mode: screen;
  transform: translateX(-7%);
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 58%,
    #000 0%,
    #000 48%,
    transparent 76%
  );
  mask-image: radial-gradient(
    ellipse at 50% 58%,
    #000 0%,
    #000 48%,
    transparent 76%
  );
}

.sky::before,
.sky::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 243, 205, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(239, 207, 131, 0.82) 0 0.08rem, transparent 0.18rem);
  background-position:
    18px 42px,
    72px 88px,
    34px 18px;
  background-size:
    132px 128px,
    184px 176px,
    96px 104px;
  opacity: 0.45;
}

.star {
  position: absolute;
  width: 0.18rem;
  height: 0.18rem;
  background: #fff3cd;
  border-radius: 50%;
  box-shadow: 0 0 18px 7px rgba(239, 207, 131, 0.72);
}

.star::before,
.star::after {
  position: absolute;
  inset: 50% auto auto 50%;
  content: "";
  background: linear-gradient(90deg, transparent, #fff3cd, transparent);
  transform: translate(-50%, -50%);
}

.star::before {
  width: 2.2rem;
  height: 1px;
}

.star::after {
  width: 1px;
  height: 2.2rem;
}

.star-a {
  top: 6rem;
  left: 7vw;
}

.star-b {
  top: 13rem;
  left: 51vw;
}

.star-c {
  right: 12vw;
  top: 9rem;
}

.star-d {
  right: 22vw;
  bottom: 11rem;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 4.5rem;
  margin: 0;
  padding: 0.8rem max(1rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(239, 207, 131, 0.2);
  background: rgba(14, 26, 48, 0.86);
  backdrop-filter: blur(14px);
  color: var(--paper-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: 0;
}

.brand strong {
  color: var(--gold-bright);
  font-size: 0.95em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(239, 207, 131, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
}

.nav a {
  min-width: 4.3rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  color: var(--paper-2);
  font-size: 0.92rem;
  text-align: center;
  text-decoration: none;
}

.nav a:focus-visible,
.nav a:hover {
  background: rgba(239, 207, 131, 0.18);
  outline: none;
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: stretch;
  min-height: calc(100svh - 9.25rem);
  padding: clamp(1.5rem, 4vw, 4rem) 0 3rem;
}

.invitation-panel {
  position: relative;
  display: grid;
  gap: 0.82rem;
  min-height: min(43rem, calc(100svh - 8rem));
  align-content: start;
  padding: clamp(1.1rem, 3vw, 2.15rem);
  border: 1px solid rgba(239, 207, 131, 0.58);
  background:
    linear-gradient(180deg, rgba(16, 29, 52, 0.72), rgba(16, 29, 52, 0.38)),
    rgba(255, 250, 240, 0.05);
  color: var(--paper-2);
  box-shadow: var(--shadow);
}

.invitation-panel::before {
  position: absolute;
  inset: -0.65rem;
  content: "";
  border: 1px solid rgba(239, 207, 131, 0.52);
  pointer-events: none;
}

.invitation-panel::after {
  width: 0.24rem;
  height: 0.24rem;
  position: absolute;
  top: 2.2rem;
  right: 2.6rem;
  content: "";
  border-radius: 50%;
  background: #fff8d8;
  box-shadow:
    0 0 0.7rem 0.22rem rgba(239, 207, 131, 0.74),
    -3.7rem 3.8rem 0 -0.03rem rgba(255, 250, 240, 0.78),
    -6.8rem 1.3rem 0 -0.04rem rgba(239, 207, 131, 0.68),
    2.5rem 5.6rem 0 -0.05rem rgba(255, 250, 240, 0.72);
}

.upload-panel {
  border: 1px solid rgba(197, 154, 70, 0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(248, 243, 234, 0.88)),
    var(--paper);
  box-shadow: 0 18px 70px rgba(5, 12, 28, 0.18);
}

.upload-panel {
  display: grid;
  align-content: start;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: #936b26;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  color: inherit;
  font-size: clamp(3.2rem, 7vw, 5.9rem);
  line-height: 0.88;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.4rem);
  line-height: 1;
}

.intro {
  max-width: 35rem;
  margin: 1rem 0 1.5rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.65;
}

.invitation-text {
  max-width: 32rem;
  margin: 0;
  color: rgba(255, 250, 240, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.75vw, 1.22rem);
  line-height: 1.55;
}

.parents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(239, 207, 131, 0.36);
}

.parents p {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.parents span {
  color: rgba(255, 250, 240, 0.74);
}

.parents strong {
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}

.date-mark {
  display: inline-grid;
  justify-self: start;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 0 0.7rem;
  color: var(--gold-bright);
  line-height: 0.9;
}

.date-mark span {
  grid-row: span 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 5.6vw, 4.5rem);
}

.date-mark strong {
  color: var(--paper-2);
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.date-mark em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-style: normal;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.event-cards article {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(239, 207, 131, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.08);
}

.event-cards .eyebrow {
  margin-bottom: 0.2rem;
}

.event-cards strong {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.event-cards p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 250, 240, 0.76);
  font-size: 0.9rem;
  line-height: 1.42;
}

.event-cards a {
  align-self: end;
  color: #fff8ec;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration-color: rgba(239, 207, 131, 0.72);
  text-underline-offset: 0.18rem;
}

.upload-form {
  display: grid;
  gap: 0.95rem;
}

.upload-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--ink);
  font-weight: 750;
}

.upload-form label > span {
  font-size: 0.92rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 33, 63, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
  padding: 0.82rem 0.95rem;
}

textarea {
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 154, 70, 0.22);
}

.dropzone {
  position: relative;
  display: grid;
  min-height: 8.25rem;
  place-items: center;
  border: 1.5px dashed rgba(197, 154, 70, 0.8);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 33, 63, 0.05), rgba(197, 154, 70, 0.14)),
    rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.dropzone:hover,
.dropzone.is-dragging,
.dropzone:focus-visible {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  outline: none;
  transform: translateY(-1px);
}

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

.dropzone-copy {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  text-align: center;
}

.dropzone-copy strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.dropzone-copy span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.preview-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.7rem;
}

.preview-tile,
.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(197, 154, 70, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.preview-tile {
  aspect-ratio: 1;
}

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

.preview-tile button {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 33, 63, 0.82);
  color: #fff;
  cursor: pointer;
}

.checkline {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem !important;
  width: fit-content;
}

.checkline input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--gold);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #10213f, #28446c 58%, #c59a46);
  color: #fff9ed;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(16, 33, 63, 0.22);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  border: 1px solid rgba(197, 154, 70, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.78);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.secondary-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.progress {
  overflow: hidden;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(16, 33, 63, 0.1);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--night-2));
  transition: width 220ms ease;
}

.status {
  min-height: 1.45rem;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.status.is-error {
  color: #9f2f2f;
}

.status.is-success {
  color: #1f6d4d;
}

.gallery-section {
  padding: 3rem 0 4rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  color: var(--paper-2);
}

.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.gallery-card {
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  box-shadow: 0 16px 40px rgba(5, 12, 28, 0.16);
}

.gallery-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.7rem 0.85rem 0.85rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(5, 12, 28, 0.78));
}

.gallery-card strong,
.gallery-card span {
  display: block;
}

.gallery-card span {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 1.4rem;
  border: 1px solid rgba(239, 207, 131, 0.44);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.84);
  color: var(--ink-soft);
}

.admin-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.archive-page {
  width: min(1180px, calc(100% - 2rem));
}

.admin-hero {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 4rem) 0 4rem;
}

.archive-hero {
  grid-template-columns: minmax(18rem, 0.72fr) minmax(20rem, 1fr);
  align-items: start;
  gap: clamp(1.2rem, 4vw, 3rem);
}

.admin-title {
  max-width: 52rem;
  border: 1px solid rgba(239, 207, 131, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 29, 52, 0.9), rgba(16, 29, 52, 0.72)),
    rgba(16, 29, 52, 0.82);
  color: var(--paper-2);
  padding: clamp(1.15rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.admin-title h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  line-height: 0.9;
}

.admin-title .intro {
  color: rgba(255, 250, 240, 0.9);
  margin-bottom: 0;
}

.archive-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.archive-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(239, 207, 131, 0.36);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 850;
}

.admin-panel {
  border: 1px solid rgba(197, 154, 70, 0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(248, 243, 234, 0.9)),
    var(--paper);
  box-shadow: 0 18px 70px rgba(5, 12, 28, 0.18);
  padding: clamp(1.2rem, 4vw, 2rem);
  overflow: hidden;
}

#loginView {
  max-width: 34rem;
  justify-self: end;
  width: 100%;
}

.login-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.login-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.login-heading h2 {
  color: var(--ink);
}

.admin-panel[hidden] {
  display: none;
}

.admin-dashboard {
  display: grid;
  gap: 1rem;
}

.admin-toolbar,
.admin-summary,
.admin-photo-meta,
.admin-card-actions {
  display: flex;
  align-items: center;
}

.admin-toolbar {
  justify-content: space-between;
  gap: 1rem;
}

.admin-actions {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(11rem, 0.34fr) auto;
  gap: 0.75rem;
}

.admin-summary {
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-summary span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 850;
}

.admin-summary span {
  border: 1px solid rgba(197, 154, 70, 0.34);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink-soft);
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 20rem));
  gap: 1rem;
  align-items: start;
  justify-content: start;
}

.admin-photo-card {
  display: grid;
  overflow: hidden;
  width: 100%;
  max-width: 20rem;
  border: 1px solid rgba(197, 154, 70, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 14px 36px rgba(5, 12, 28, 0.11);
}

.admin-photo-card img {
  width: 100%;
  height: 13rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(16, 33, 63, 0.12);
}

.admin-photo-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
}

.admin-photo-meta {
  justify-content: space-between;
  gap: 0.65rem;
}

.admin-photo-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.badge-public {
  background: rgba(31, 109, 77, 0.13);
  color: #1f6d4d;
}

.badge-hidden {
  background: rgba(159, 47, 47, 0.12);
  color: #9f2f2f;
}

.admin-photo-body p,
.admin-photo-body small {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.admin-photo-body small {
  overflow-wrap: anywhere;
}

.admin-card-actions {
  gap: 0.5rem;
}

.admin-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  flex: 1;
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
}

.admin-card-actions button:first-child {
  border: 1px solid rgba(16, 33, 63, 0.16);
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
}

.admin-card-actions button:last-child {
  border: 0;
  background: var(--ink);
  color: #fff9ed;
}

.photo-dialog {
  width: min(860px, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f1c32;
  color: #fff8ec;
  padding: 0;
  box-shadow: var(--shadow);
}

.photo-dialog::backdrop {
  background: rgba(5, 12, 28, 0.72);
  backdrop-filter: blur(6px);
}

.photo-dialog img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: #0b1324;
}

.photo-dialog p {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
}

.dialog-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 880px) {
  .couple-silhouette {
    top: 8rem;
    left: 50%;
    width: min(32rem, 92vw);
    opacity: 0.3;
    transform: translateX(-50%);
  }

  .topbar {
    padding-inline: max(0.5rem, calc((100vw - 48rem) / 2));
  }

  .nav a {
    min-width: auto;
    padding-inline: 0.65rem;
  }

  main {
    width: min(100% - 1rem, 48rem);
  }

  .admin-main {
    width: min(100% - 1rem, 48rem);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1rem;
    align-items: start;
  }

  .archive-hero {
    grid-template-columns: 1fr;
  }

  #loginView {
    max-width: none;
    justify-self: stretch;
  }

  .invitation-panel {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5.6rem);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .admin-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    justify-content: stretch;
  }

  .admin-photo-card {
    max-width: none;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    padding-top: 4.55rem;
  }

  .topbar {
    align-items: center;
    gap: 0.65rem;
    min-height: auto;
    padding: 0.65rem 0.75rem;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 1.35rem;
    line-height: 1.05;
  }

  .nav {
    width: 9.4rem;
    margin-left: auto;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.2rem;
  }

  .nav a {
    flex: 1;
    min-height: 2.35rem;
    padding: 0.48rem 0.55rem;
    font-size: 0.9rem;
  }

  .hero {
    gap: 1rem;
    padding-top: 0.9rem;
  }

  main,
  .admin-main,
  .archive-page {
    width: min(100% - 1.25rem, 48rem);
  }

  .upload-panel {
    padding: 1.15rem;
  }

  .upload-panel h2 {
    font-size: clamp(2.05rem, 9.6vw, 2.5rem);
    line-height: 0.96;
  }

  .upload-panel .intro {
    margin: 0.75rem 0 1.05rem;
    font-size: 1rem;
    line-height: 1.52;
  }

  .upload-form {
    gap: 0.85rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    padding: 0.72rem 0.8rem;
  }

  .dropzone {
    min-height: 7.2rem;
  }

  .dropzone-copy {
    padding: 0.8rem;
  }

  .dropzone-copy strong {
    font-size: 1.15rem;
  }

  .dropzone-copy span {
    font-size: 0.9rem;
  }

  .admin-title h1 {
    font-size: clamp(2.7rem, 17vw, 4.6rem);
  }

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

  .parents {
    grid-template-columns: 1fr;
  }

  .event-cards {
    grid-template-columns: 1fr;
  }
}
