:root {
  /* palette taken from the Joy site: page #FCFBF7, text/links/buttons #82716D */
  --bg: #fcfbf7;
  --surface: #ffffff;
  --ink: #5f514d;         /* darker shade of the Joy taupe, for body-text contrast */
  --muted: #82716d;
  --accent: #82716d;      /* Joy link/button taupe */
  --accent-2: #b3a6a2;    /* lighter taupe */
  --line: #e6e0d8;
  --maxw: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
}
.sprite { position: absolute; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: "EB Garamond", Georgia, serif; font-weight: 400; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); letter-spacing: .02em; }
h2 { font-size: 2.1rem; text-align: center; margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin: 1.5rem 0 .25rem; color: var(--accent); }
.amp { font-style: normal; color: var(--accent); padding: 0 .1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.date, .venue { font-family: "Open Sans", sans-serif; letter-spacing: .15em; text-transform: uppercase; font-size: 1.2rem; color: var(--muted); }
.date { font-size: 1.5rem; font-weight: 500; margin: clamp(2rem, 8vw, 4rem) 0 clamp(1rem, 4vw, 2rem); }
.venue { font-size: 1rem; margin: 0 0 1.5rem; }
#welcome { text-align: center; }
.countdown { display: flex; justify-content: center; gap: clamp(.8rem, 4vw, 2rem); margin: 0 0 1.5rem; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 3rem; }
.countdown span { font-size: clamp(1.1rem, 4.2vw, 1.5rem); font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { font-family: "Open Sans", sans-serif; text-transform: uppercase; letter-spacing: .15em; font-size: .6rem; color: var(--muted); margin-top: .2rem; }
strong { font-weight: 600; }
p { margin: 0 0 1rem; }

/* decoration */
.deco { position: fixed; width: 220px; height: 330px; color: var(--accent-2); opacity: .22; pointer-events: none; z-index: 6; /* above the sticky tab bar (z-index 5) so it doesn't vanish behind it */ }
.deco-tl { top: -30px; left: -50px; transform: rotate(135deg); }
.deco-br { bottom: -30px; right: -50px; transform: rotate(-45deg); color: var(--accent); }
.deco-tr { top: -40px; right: -60px; transform: rotate(-135deg); }

button {
  margin-top: 1rem; padding: .65rem 2.25rem; font: inherit; letter-spacing: .15em; text-transform: uppercase; font-size: .95rem;
  background: var(--accent); color: #fcfbf7; border: 0; border-radius: 2px; cursor: pointer; transition: background .2s;
}
button:hover { background: #6b5d59; }

/* site */
.site { position: relative; min-height: 100vh; overflow-x: hidden; }
.masthead { position: relative; z-index: 1; text-align: center; padding: 3.5rem 1rem 1.5rem; }

.tabs {
  position: sticky; top: 0; z-index: 5; background: var(--bg);
  display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.5rem;
  padding: .75rem max(1rem, env(safe-area-inset-right)) .75rem max(1rem, env(safe-area-inset-left));
}
.tabs button {
  margin: 0; padding: .35rem .1rem; background: none; color: var(--muted); border-radius: 0;
  border-bottom: 2px solid transparent; font-family: "Raleway", system-ui, sans-serif; font-weight: 400; letter-spacing: .12em; font-size: .85rem;
}
.tabs button:hover { color: var(--ink); background: none; border-bottom-color: var(--accent-2); }
.tabs button[aria-selected="true"], .tabs button[aria-selected="true"]:hover { color: var(--accent); border-bottom-color: var(--accent); }
.tabs button:focus-visible { outline: none; border-bottom-color: var(--accent-2); }

main {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  padding: 2.5rem max(1.25rem, env(safe-area-inset-right)) 3rem max(1.25rem, env(safe-area-inset-left));
}
.panel { display: none; animation: fade .4s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lead { font-size: 1.3rem; font-style: italic; text-align: center; color: var(--accent); }
.sign { text-align: center; margin-top: 1.5rem; }

/* hero: four photos side by side, full width of the page */
.hero-strip { display: flex; width: 100vw; margin-left: calc(50% - 50vw); }
.hero-strip img { flex: 1 1 0; min-width: 0; width: 25%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }

/* image placeholders */
.img-placeholder {
  position: relative; aspect-ratio: 4 / 3; background: #f1ede6; border: 1px dashed #cfc5bd; border-radius: 2px;
  display: grid; place-items: center; color: var(--muted); font-size: 1rem; font-style: italic; overflow: hidden; margin: 0 0 1.5rem;
}
.img-placeholder::after { content: "[ " attr(data-label) " ]"; }
.img-placeholder.hero { aspect-ratio: 3 / 2; }
.img-placeholder.wide { aspect-ratio: 16 / 9; margin-top: 1.5rem; }
.img-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-placeholder:has(img)::after { content: none; }

.leaf-divider { display: flex; justify-content: center; gap: .5rem; margin: 2rem 0 1rem; color: var(--accent-2); }
.leaf-divider svg { width: 18px; height: 45px; }
.leaf-divider svg:nth-child(1) { transform: rotate(-25deg); }
.leaf-divider svg:nth-child(3) { transform: rotate(25deg); color: var(--accent); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); margin-left: .5rem; }
.timeline li { display: flex; gap: 1.5rem; padding: .6rem 0 .6rem 1.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 1.1rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.time { min-width: 5.5rem; color: var(--muted); letter-spacing: .08em; }

.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card .img-placeholder { margin-bottom: .5rem; }
.card h3 { margin-top: .25rem; }

details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: 1.1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.6rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: .6rem 0 0; color: var(--muted); }

footer { position: relative; z-index: 1; text-align: center; padding: 2rem 1rem calc(3rem + env(safe-area-inset-bottom)); color: var(--muted); letter-spacing: .15em; font-size: .9rem; }
.foot-leaf { width: 16px; height: 40px; color: var(--accent-2); display: block; margin: 0 auto .5rem; }

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .tabs {
    flex-wrap: nowrap; justify-content: safe center; gap: 1.25rem;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; white-space: nowrap; }
  .deco { width: 150px; height: 225px; }
  .timeline li { gap: 1rem; }
}
/* tablets: a little more breathing room */
@media (min-width: 521px) and (max-width: 1024px) {
  body { font-size: 1.1rem; }
  main { padding-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }

/* login page */
.login-page .login { min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.25rem; position: relative; z-index: 1; }
.login-page .date { margin: .75rem 0 0; font-size: 1.1rem; }
.login-page .leaf-divider { margin: 1.5rem 0 1rem; }
.login-intro { max-width: 22rem; }
#login-form { width: 100%; max-width: 20rem; display: flex; flex-direction: column; align-items: stretch; }
#login-form input {
  font: inherit; text-align: center; letter-spacing: .1em; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px; padding: .75rem 1rem; transition: border-color .2s;
}
#login-form input:focus { outline: none; border-color: var(--accent); }
#login-form button { align-self: center; }
.login-error { color: #9b4a3f; font-size: .95rem; margin: .75rem 0 0; }
