@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=EB+Garamond:ital@0;1&family=Alex+Brush&display=swap');

:root {
  --cream: #f7f5ef;
  --cream-deep: #f1efe7;
  --ink: #2b2b26;
  --ink-soft: #55534a;
  --sage: #7c8b74;
  --sage-deep: #5f6e57;
  --line: #d9d5c8;
  --max-width: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

.script {
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
  line-height: 1.1;
}

a { color: var(--ink); }

.header {
  text-align: center;
  padding: 56px 0 28px;
}

.header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--sage-deep);
  margin-bottom: 10px;
}

.header .names {
  font-size: 64px;
  margin: 4px 0 10px;
}

.header .date {
  font-size: 17px;
  color: var(--ink-soft);
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--line);
  margin: 28px auto;
}

.divider.leaf {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 200px;
  height: auto;
  background: none;
  margin-top: 0px;
}

.divider.leaf::before,
.divider.leaf::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider.leaf span {
  color: var(--sage);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-2px);
}

.card {
  background: var(--cream-deep);
  border-radius: 0;
  padding: 28px 24px;
  margin-bottom: 20px;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  letter-spacing: 0.04em;
  padding: 16px 20px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { background: var(--ink); color: var(--cream); }

.btn.primary {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
}

.btn.primary:active { background: var(--ink); border-color: var(--ink); }

.btn + .btn { margin-top: 12px; }

.btn[disabled] { opacity: 0.5; pointer-events: none; }

input[type="file"] { display: none; }

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input[type="text"] {
  width: 100%;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.field input[type="text"]:focus { outline: 1px solid var(--sage); }

.note {
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 0;
}

.thumbs:empty {
  margin: 0;
}

.thumbs .thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  background: #e9e6db;
}

.thumbs .thumb img, .thumbs .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbs .thumb .status {
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-family: 'EB Garamond', Georgia, serif;
}

.thumbs .thumb.done .status { display: none; }

.footer {
  text-align: center;
  padding: 12px 0 16px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}



/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 0 40px;
}

.gallery-grid .cell {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background: #e9e6db;
  cursor: pointer;
}

.gallery-grid .cell img, .gallery-grid .cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox img, .lightbox video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 2px;
}

.lightbox .close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #f7f5ef;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.coming-soon {
  text-align: center;
  padding: 80px 0;
}

.coming-soon .glyph {
  color: var(--sage);
  font-size: 28px;
  margin-bottom: 18px;
}

/* Admin */
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.switch input { display: none; }

.switch .track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.switch input:checked + .track { background: var(--sage-deep); }
.switch input:checked + .track::after { transform: translateX(22px); }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.admin-grid .cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background: #e9e6db;
}

.admin-grid .cell img, .admin-grid .cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-grid .del {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(20,19,16,0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 15px;
  cursor: pointer;
}

.login-box {
  max-width: 320px;
  margin: 80px auto;
  text-align: center;
}

.error {
  color: #a3413a;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}

.spinner {
  border: 2px solid var(--line);
  border-top-color: var(--sage-deep);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }
