@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Great+Vibes&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --ink: #284F68;
  --heading: var(--ink);
  --text: var(--ink);
  --muted: var(--ink);
  --name-blue: #55788F;
  --accent: #286881;
  --silver: #65707b;
  --silver-line: #959faa;
  --line: #b7cfd9;
  --paper: #edf7f9;
  --surface: #fff;
  --surface-inset: #cfe3ed;
  --card-radius: 20px;
  --serif: "Playfair Display", Georgia, serif;
  --script: "Great Vibes", "Edwardian Script ITC", "Segoe Script", cursive;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper) url("./papier.png") center / 100% 100% no-repeat;
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}
#main { position: relative }
.side-motif { display: none }
@media (min-width: 1370px) {
  .side-motif {
    position: absolute;
    top: clamp(16rem, 24vw, 21rem);
    display: block;
    color: #578499;
    opacity: .31;
    pointer-events: none;
  }
  .side-motif-left { left: calc((100% - 1120px) / 4 - 36px) }
  .side-motif-right { right: calc((100% - 1120px) / 4 - 36px) }
  .side-motif .icon { width: 72px; height: 72px; stroke-width: .8 }
}
h1, h2, h3 { color: var(--heading) }
a { color: inherit }
button, input { font: inherit }
button { cursor: pointer }
button:disabled { opacity: .58; cursor: default }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px }
[hidden] { display: none !important }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto }

.top { background: #ffffff52; border-bottom: 1px solid #35607520 }
.top .wrap { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 24px }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 500 1.17rem var(--serif); white-space: nowrap }
.logo svg { width: 23px; height: 23px; color: var(--ink) }
nav { display: flex; align-items: center; gap: clamp(17px, 3vw, 36px); flex-wrap: wrap }
nav a { text-decoration: none; font-size: .9rem; color: var(--muted); position: relative; padding: 10px 0 }
nav a[aria-current] { color: var(--ink); font-weight: 700 }
nav a[aria-current]::after { content: ""; height: 1px; background: var(--silver); position: absolute; bottom: 4px; inset-inline: 0 }

.hero {
  display: grid;
  place-items: center;
  min-height: 387px;
  text-align: center;
}
.hero-inner { max-width: 100%; padding: 46px 24px 44px }
.kicker { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700 }
.hero .kicker { color: var(--ink) }
.hero h1 { font: 400 clamp(3rem, 6vw, 5rem)/1.14 var(--serif); letter-spacing: -.035em; margin: 0 0 12px; text-wrap: balance }
.hero h1.names { color: var(--name-blue); font: 400 clamp(4.5rem, 10vw, 8rem)/1.1 var(--script); letter-spacing: 0; margin: .2em 0 .11em; padding-inline: .12em }
.names span { display: inline-block }
.names em { font: 400 .57em/1 var(--serif); color: var(--ink); font-style: italic; vertical-align: .12em; padding-inline: .13em }
.hero p { margin: 14px 0 0; color: var(--text); font-size: 1rem }
.hero-mark { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto 15px; color: var(--silver) }
.anchor-mark { color: var(--ink) }
.hero-mark::before, .hero-mark::after { content: ""; width: 46px; height: 1px; background: currentColor; opacity: .4 }
.hero-mark svg { width: 26px; height: 26px }
.date { display: block; color: var(--heading); font: 500 clamp(1.14rem, 2.7vw, 1.48rem)/1.3 var(--serif); margin-top: 13px }

.photo-panel { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(32px, 5vw, 62px); align-items: center; margin-top: 16px; padding: 30px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius) }
.photo-panel h2, .section-title { font: 500 clamp(1.95rem, 3.8vw, 2.68rem)/1.17 var(--serif); letter-spacing: -.035em; margin: 0 0 12px }
.photo-panel p, .card p, .subheading p, .empty p, .info-grid p { color: var(--muted); margin: 0 }
.photo-panel p { max-width: 42ch }
.drop { background: var(--surface); border: 1px dashed #85acba; border-radius: 14px; min-height: 182px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px }
.drop.drag { border-color: var(--accent); background: #edf5fa }
.icon { width: 24px; height: 24px; display: block; flex: none }
.drop .icon-badge { margin-bottom: 4px }
.drop .icon-badge .icon { width: 23px; height: 23px }
.drop strong { font-size: .93rem }
small { font-size: .84rem; color: var(--muted) }
.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #93b4c6; border-radius: 8px; background: var(--surface-inset); color: var(--ink); padding: 8px 17px; font-size: .9rem; font-weight: 700; text-decoration: none }
.btn:hover { background: #c3dce8 }
.drop .btn { margin-top: 6px }
.secondary { border-color: #a4c0cd }
.status { margin-top: 9px; color: var(--ink); font-size: .92rem }
.status:empty { display: none }
.file-list { list-style: none; padding: 0; margin: 13px 0 0; display: grid; gap: 5px; font-size: .9rem }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; overflow-wrap: anywhere }
.remove { border: 0; background: none; color: var(--ink); text-decoration: underline; font-size: .88rem }
.upload-actions { display: flex; justify-content: flex-end; margin-top: 12px }
.upload-fallback { margin-top: 10px; font-size: .9rem }

.explore { margin-block: 36px 56px }
.explore .section-title { margin-bottom: 17px }
.cards, .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.card, .info-grid article, .empty, .table-card, .admin-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 21px }
.card { display: block; text-decoration: none; transition: border-color .15s }
.card:hover { border-color: #8db4c4 }
.card:hover h3 { text-decoration: underline; text-underline-offset: .17em }
.icon-badge, .timeline-icon { display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff }
.icon-badge { width: 38px; height: 38px; margin-bottom: 11px }
.icon-badge .icon { width: 20px; height: 20px }
.card h3, .info-grid h2, .table-card h2 { font: 500 1.38rem/1.25 var(--serif); margin: 0 0 5px }
.card p, .info-grid p { font-size: .94rem }
.footer { margin-top: auto; border-top: 1px solid #35607532; padding: 24px 0; color: var(--ink) }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(9px, 4vw, 46px); text-align: center }
.footer-brand { display: grid; justify-items: center; gap: 6px; font: 500 1.13rem var(--serif); text-decoration: none; white-space: nowrap }
.footer-brand .icon { width: 19px; height: 19px; color: var(--ink) }
.footer-greeting { margin: 0; font: italic 400 clamp(.85rem, 2vw, 1.06rem)/1.35 var(--serif); color: var(--ink) }

.subhero { min-height: 216px }
.subhero .hero-inner { padding: 29px 20px }
.subhero p { margin-top: 0 }
.subheading { margin: 28px 0 16px }
.subcontent { min-height: 280px; padding-bottom: 51px }
.info-grid { margin-top: 28px }
.schedule { max-width: 430px }
.schedule-note { margin: 0 0 18px; color: var(--muted); text-align: center }
.timeline {
  --track: 24px;
  --step-gap: 10px;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--step-gap);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 0 calc(var(--track) + 7px);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.timeline li::before, .timeline li::after {
  content: "";
  position: absolute;
  left: calc(0px - var(--track));
}
.timeline li::before {
  top: 50%;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 0 1px var(--silver-line);
  transform: translate(-50%, -50%);
}
.timeline li::after {
  top: -1px;
  bottom: calc(-1px - var(--step-gap));
  width: 1px;
  background: var(--silver-line);
  transform: translateX(-50%);
}
.timeline li:first-child::after { top: 50% }
.timeline li:last-child::after { bottom: 50% }
.timeline li:only-child::after { display: none }
.timeline-icon {
  width: 48px;
  height: 48px;
}
.timeline-icon .icon { width: 32px; height: 32px }
.timeline-time { display: block; margin-bottom: 2px; color: var(--heading); font-size: .88rem; font-weight: 700 }
.timeline h2 { margin: 0; font: 500 1.35rem var(--serif) }
.timeline p { margin: 2px 0 0; color: var(--muted); overflow-wrap: anywhere }
.table-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 21px 0 }
.field { border: 1px solid #9aafbf; background: var(--surface); border-radius: 4px; padding: 8px 11px; color: var(--ink); width: min(100%, 310px) }
.tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.tables ul { padding-left: 20px; margin-bottom: 0 }
.empty strong { display: block; margin-bottom: 4px }
.admin-box { margin-top: 20px }
.admin-box ul { padding-left: 20px; overflow-wrap: anywhere }

@media (max-width: 780px) {
  .wrap { width: min(1120px, calc(100% - 38px)) }
  .photo-panel { gap: 23px; padding: 24px }
  .hero { min-height: 348px }
  .subhero { min-height: 204px }
  .info-grid, .tables { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 580px) {
  :root {
    color-scheme: only light;
    --silver: #526371;
  }
  .wrap { width: calc(100% - 32px) }
  .top { background: #f9fcfd }
  .top .wrap { flex-direction: column; gap: 3px; padding: 10px 0 7px }
  .logo { font-size: 1.13rem }
  .logo svg { width: 21px; height: 21px }
  nav { width: 100%; max-width: 400px; justify-content: space-between; gap: 2px 6px }
  nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 5px;
    border-radius: 8px;
    font-size: .875rem;
  }
  nav a[aria-current] { background: #e6f0f5 }
  nav a[aria-current]::after { display: none }
  .hero { min-height: 0 }
  .hero-inner { padding: 26px 0 22px }
  .hero h1.names { font-size: clamp(2.8rem, 12vw, 4.4rem); padding-inline: 0 }
  .hero-mark { gap: 12px; margin-bottom: 8px }
  .hero-mark::before, .hero-mark::after { width: 32px }
  .hero-mark svg { width: 23px; height: 23px }
  .date { margin-top: 6px }
  .hero p { margin-top: 6px }
  .subhero .hero-inner { padding: 23px 0 17px }
  .subhero h1 { font-size: clamp(2.36rem, 9.5vw, 3.4rem) }
  .photo-panel { margin-top: 6px; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 17px }
  .photo-panel h2, .section-title { font-size: 1.65rem; margin-bottom: 8px }
  .drop { min-height: 0; padding: 13px; background: #eff7fa }
  .drop strong { display: none }
  .drop small { order: 1; margin-top: 4px }
  .drop .btn { margin-top: 0 }
  .btn { min-height: 44px }
  .upload-actions .btn { width: 100% }
  .explore { margin-block: 24px 32px }
  .cards, .info-grid, .tables { grid-template-columns: 1fr }
  .card { padding: 17px }
  .subcontent { padding-bottom: 32px }
  .info-grid, .subheading { margin-top: 12px }
  .timeline { --track: 17px }
  .timeline li { gap: 9px; padding: 11px 12px }
  .timeline-icon { width: 43px; height: 43px }
  .timeline-icon .icon { width: 28px; height: 28px }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px }
  .footer-brand { grid-column: 1 / -1; grid-row: 1; font-size: 1rem }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important } }
