:root {
  --ink: #191714;
  --muted: #666056;
  --paper: #fbf7ef;
  --surface: #ffffff;
  --line: rgba(25, 23, 20, 0.16);
  --green: #29483a;
  --tomato: #d4533c;
  --gold: #e5ad43;
  --blue: #4e7892;
  --shadow: 0 18px 60px rgba(25, 23, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
textarea {
  font: inherit;
}

.hero {
  min-height: 94vh;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  color: white;
  background: #1b241e;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 22, 17, 0.78), rgba(20, 22, 17, 0.3) 55%, rgba(20, 22, 17, 0.15)),
    linear-gradient(0deg, rgba(20, 22, 17, 0.62), rgba(20, 22, 17, 0.04) 45%);
}

.hero-media img {
  display: block;
}

.hero-collage {
  background: #18231d;
}

.hero-photo {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.hero-photo-main {
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: 52% 40%;
  box-shadow: none;
}

.hero-photo-party {
  width: min(22vw, 260px);
  aspect-ratio: 4 / 5;
  right: 7vw;
  top: 16vh;
  transform: rotate(4deg);
}

.hero-photo-beach {
  width: min(27vw, 340px);
  aspect-ratio: 4 / 3;
  right: 18vw;
  bottom: 12vh;
  transform: rotate(-3deg);
}

.hero-photo-fun {
  width: min(19vw, 230px);
  aspect-ratio: 3 / 4;
  right: 4vw;
  bottom: 7vh;
  transform: rotate(2deg);
}

.topbar,
.hero-content,
.event-strip {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navlinks a {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 70px 0 120px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  max-width: 760px;
  font-size: clamp(4.2rem, 11vw, 10.6rem);
  line-height: 0.84;
  font-weight: 400;
}

.lead {
  max-width: 620px;
  margin: 30px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--tomato);
  color: white;
  box-shadow: 0 12px 34px rgba(139, 42, 27, 0.26);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
}

.event-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.event-strip div {
  padding: 18px;
}

.event-strip div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.26);
}

.event-strip span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-strip strong {
  display: block;
  font-size: 1rem;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro,
.split,
.practical,
.upload-section,
.attendees-section,
.rsvp {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}

.section-kicker {
  color: var(--tomato);
}

h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  line-height: 0.92;
  font-weight: 400;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.intro p:last-child,
.attendees-section p,
.upload-section p,
.rsvp p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.photo-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr 1fr;
  gap: 14px;
  padding-bottom: 42px;
}

.photo-band img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(25, 23, 20, 0.12);
}

.photo-band img:nth-child(2) {
  height: 360px;
  margin-top: -28px;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 22px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--green);
  font-weight: 900;
}

.timeline p,
.idea-grid p,
.info-grid p {
  margin: 0;
  color: var(--muted);
}

.ideas,
.guest-info {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: #eef1e6;
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.idea-grid,
.info-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.idea-grid article,
.info-grid article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(41, 72, 58, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.idea-grid article:nth-child(2n) {
  border-top: 5px solid var(--gold);
}

.idea-grid article:nth-child(2n + 1) {
  border-top: 5px solid var(--blue);
}

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

.checklist label {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 700;
}

.checklist input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.rsvp {
  border-top: 1px solid var(--line);
}

.attendees-section {
  border-top: 1px solid var(--line);
}

.attendees-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(25, 23, 20, 0.08);
}

.attendees-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.attendees-summary strong {
  color: var(--green);
  font-size: 2.6rem;
  line-height: 1;
}

.attendees-summary span {
  color: var(--muted);
  font-weight: 800;
}

.attendees-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attendees-list li {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(41, 72, 58, 0.16);
  border-radius: 8px;
  background: #fbf7ef;
  font-weight: 800;
}

.upload-section {
  border-top: 1px solid var(--line);
}

.rsvp-form,
.upload-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(25, 23, 20, 0.08);
}

.rsvp-form label,
.upload-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea,
.upload-form input,
.upload-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
  color: var(--ink);
}

.rsvp-form select {
  appearance: auto;
}

.rsvp-form textarea,
.upload-form textarea {
  resize: vertical;
}

.guest-list {
  display: grid;
  gap: 14px;
}

.guest-card {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(41, 72, 58, 0.2);
  border-radius: 8px;
  background: #fbf7ef;
}

.guest-card legend {
  padding: 0 6px;
  color: var(--green);
  font-weight: 900;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder,
.upload-form input::placeholder,
.upload-form textarea::placeholder {
  color: rgba(102, 96, 86, 0.72);
}

.rsvp-form .button,
.upload-form .button {
  justify-self: start;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer strong {
  color: var(--ink);
}

.admin-page {
  background: #f5efe5;
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-header h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  font-weight: 400;
}

.admin-back {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.admin-summary article,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(25, 23, 20, 0.07);
}

.admin-summary article {
  padding: 18px;
}

.admin-summary span,
.admin-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: 2.2rem;
}

.admin-section {
  margin-top: 34px;
}

.admin-header.compact {
  margin-bottom: 18px;
}

.admin-section h2 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-card {
  padding: 18px;
}

.admin-card header {
  margin-bottom: 14px;
}

.admin-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.admin-card li strong {
  display: block;
}

.admin-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.admin-card a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
}

.todo-lead {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.todo-progress {
  height: 12px;
  margin: -14px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 23, 20, 0.1);
}

.todo-embed {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.todo-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tomato), var(--gold));
  transition: width 0.2s ease;
}

.todo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.todo-filters button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.todo-filters button.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.todo-groups {
  display: grid;
  gap: 34px;
}

.todo-group > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.todo-group h2 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.todo-group > header > span {
  color: var(--muted);
  font-weight: 900;
}

.todo-list {
  display: grid;
  gap: 10px;
}

.todo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(25, 23, 20, 0.06);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.todo-card label {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
}

.todo-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.todo-check {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border: 2px solid rgba(41, 72, 58, 0.42);
  border-radius: 7px;
  background: #fffdf8;
}

.todo-card input:checked + .todo-check {
  border-color: var(--green);
  background:
    linear-gradient(135deg, transparent 42%, white 42% 56%, transparent 56%),
    linear-gradient(45deg, transparent 45%, white 45% 58%, transparent 58%),
    var(--green);
}

.todo-content {
  display: grid;
  gap: 7px;
}

.todo-content strong {
  font-size: 1.02rem;
}

.todo-content > span:last-child {
  color: var(--muted);
}

.todo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.todo-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f5efe5;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.todo-meta .priority-høy {
  background: rgba(212, 83, 60, 0.13);
  color: #9f321f;
}

.todo-meta .priority-medium {
  background: rgba(229, 173, 67, 0.2);
  color: #77540d;
}

.todo-meta .priority-lav {
  background: rgba(78, 120, 146, 0.14);
  color: #31566d;
}

.todo-card.is-done {
  opacity: 0.62;
}

.todo-card.is-done .todo-content strong,
.todo-card.is-done .todo-content > span:last-child {
  text-decoration: line-through;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(760px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.login-shell h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.88;
  font-weight: 400;
}

.login-shell p {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(25, 23, 20, 0.08);
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
  color: var(--ink);
}

@media (max-width: 820px) {
  .hero {
    min-height: 92vh;
  }

  .topbar {
    align-items: flex-start;
  }

  .navlinks {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-content {
    padding: 48px 0 70px;
  }

  .hero-collage .hero-photo-party,
  .hero-collage .hero-photo-beach,
  .hero-collage .hero-photo-fun {
    display: none !important;
  }

  .hero-photo-main {
    object-position: 52% 34%;
  }

  .event-strip,
  .intro,
  .split,
  .practical,
  .upload-section,
  .attendees-section,
  .rsvp,
  .photo-band,
  .idea-grid,
  .info-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .photo-band {
    padding-bottom: 20px;
  }

  .photo-band img,
  .photo-band img:nth-child(2) {
    height: 280px;
    margin-top: 0;
  }

  .event-strip div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.26);
  }

  .section {
    padding: 58px 0;
  }

  .idea-grid article,
  .info-grid article {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }

  .admin-header,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .todo-group > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .navlinks a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 4.55rem;
  }

  .lead {
    font-size: 1.16rem;
  }

  .hero-actions .button,
  .rsvp-form .button,
  .upload-form .button {
    width: 100%;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .attendees-list {
    grid-template-columns: 1fr;
  }
}
