/* Shared royal styling for the invitation collection and demo workspace. */
@media screen {
  body {
    --paper: #fbf6ec;
    --ink: #25352f;
    --accent: #8b692d;
    --line: #a885494d;
    background: radial-gradient(ellipse at top, #fffdf7, transparent 65%), #f3eddf;
    color: var(--ink);
  }
  body.party {
    --paper: #22182b;
    --ink: #f8efdf;
    --accent: #dfbd7b;
    --line: #d6b57055;
    background: radial-gradient(ellipse at 85% 0, #583345, transparent 55%), #1c1423;
  }
  body.showcase, body.admin-login-page {
    --paper: #fffaf1;
    --ink: #34463b;
    --accent: #876432;
    --line: #b399694d;
    background:
      radial-gradient(ellipse at 8% 24%, #e2e9d980, transparent 38%),
      radial-gradient(ellipse at 95% 65%, #f2ded180, transparent 40%),
      linear-gradient(180deg, #fffdf8, #f8f2e7);
    color: var(--ink);
  }
  nav {
    align-items: center;
    flex-wrap: wrap;
    min-height: 82px;
    padding: 22px 5%;
    border-bottom: 1px solid var(--line);
  }
  nav a { padding-block: 5px; }
  nav a:hover { color: var(--accent); }
  .eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .24em; }
  .showcase-nav {
    padding-inline: max(5%, calc((100% - 1200px) / 2));
    background: #fffdf8cc;
    border-bottom-color: var(--line);
  }
  .wordmark { font-size: 32px; font-weight: 500; letter-spacing: .02em; }
  .wordmark span { color: var(--accent); }
  .showcase-main {
    position: relative;
    isolation: isolate;
    max-width: 1180px;
    padding: 66px 32px 72px;
  }
  .showcase-main::before, .showcase-main::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: clamp(100px, 18vw, 230px);
    height: 360px;
    background: url('botanical.svg') center / contain no-repeat;
    opacity: .24;
  }
  .showcase-main::before { top: 40px; left: 0; transform: rotate(-12deg); }
  .showcase-main::after { top: 80px; right: 0; transform: rotate(12deg) scaleX(-1); }
  .showcase, .admin-login-page {
    background-image:
      url('paper.svg'),
      radial-gradient(ellipse at 8% 24%, #e2e9d980, transparent 38%),
      radial-gradient(ellipse at 95% 65%, #f2ded180, transparent 40%),
      linear-gradient(180deg, #fffdf8, #f8f2e7);
  }
  .invitation-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto 24px;
    color: #9c7d45;
    font: 38px/1 Georgia, serif;
  }
  .invitation-ornament span {
    width: 65px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #baa16e);
  }
  .invitation-ornament span:last-child { transform: scaleX(-1); }
  .showcase-intro {
    position: relative;
    padding: 28px 26px 24px;
    border: 1px solid #baa16e40;
    border-radius: 180px 180px 4px 4px;
    background: linear-gradient(140deg, #fffdf7b3, #fffdf733);
  }
  .showcase-intro::before {
    content: '';
    position: absolute;
    inset: 8px;
    z-index: -1;
    border: 1px solid #baa16e30;
    border-radius: inherit;
    pointer-events: none;
  }
  .showcase-grid { position: relative; padding: 18px; }
  .showcase-grid::before, .showcase-grid::after {
    content: '';
    position: absolute;
    width: 86px;
    height: 86px;
    pointer-events: none;
    border-color: #b79a60;
    border-style: solid;
    opacity: .65;
  }
  .showcase-grid::before { top: 0; left: 0; border-width: 1px 0 0 1px; border-top-left-radius: 24px; }
  .showcase-grid::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; border-bottom-right-radius: 24px; }
  .showcase .card-photo::after {
    content: '';
    position: absolute;
    inset: 21px 21px 10px;
    border: 1px solid #f7e7baaa;
    border-radius: 160px 160px 0 0;
    pointer-events: none;
  }
  .showcase .card-info {
    position: relative;
    border-top: 1px solid #baa16e55;
    background-image: url('botanical.svg');
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: 65px auto;
  }
  .showcase .card-arrow { background: #fffaf1e6; }
  .showcase .footer-flourish { font: 32px/1 Georgia, serif; color: #9c7d45; margin: 0 0 14px; }
  .showcase-intro { max-width: 760px; margin: 0 auto 48px; }
  .showcase-intro::after {
    content: '';
    display: block;
    width: 110px;
    height: 1px;
    margin: 28px auto 0;
    background: linear-gradient(90deg, transparent, #b08b4b, transparent);
  }
  .showcase-intro h1 {
    font-size: clamp(64px, 8vw, 112px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.035em;
    margin: 22px 0;
  }
  .showcase-intro em { display: block; color: #7b6441; font-weight: 400; }
  .showcase-intro > p:last-child { color: #647064; font-size: 15px; }
  .showcase-grid { gap: 32px; }
  .invitation-card {
    border: 1px solid #c9a96388;
    border-radius: 180px 180px 3px 3px;
    background: #fffdf7;
    color: #25352f;
    box-shadow: 0 16px 44px #74603c12;
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .invitation-card:hover { transform: translateY(-5px); box-shadow: 0 24px 54px #74603c22; }
  .debut-card { background: #fbf0eb; color: #584049; }
  .card-photo { padding: 12px 12px 0; }
  .card-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: 170px 170px 0 0; }
  .card-category {
    left: 50%;
    top: auto;
    bottom: 18px;
    transform: translateX(-50%);
    white-space: nowrap;
    border: 1px solid #c6a564;
    background: #fbf5e8f2;
    color: #40351f;
    padding: 5px 17px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .18em;
  }
  .card-info { min-height: 125px; padding: 25px 28px; }
  .card-info h2 { font-size: clamp(30px, 3.3vw, 43px); font-weight: 500; }
  .card-info p { font-size: 12px; opacity: .8; }
  .card-arrow { border-color: #a88748; color: #96723a; }
  .debut-card .card-arrow { color: #926d40; }
  .showcase-footer {
    border-color: var(--line);
    background: #fffaf180;
    color: #647064;
    font-size: 11px;
    padding: 28px;
  }

  body .hero.invitation-hero {
    max-width: 1240px;
    margin-block: 42px;
    padding: 14px;
    gap: 12px;
    border: 1px solid var(--accent);
    background: var(--paper);
    box-shadow: 0 16px 70px #1d281212, inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--line);
  }
  .hero-photo { max-width: none; align-self: stretch; overflow: hidden; border-radius: 220px 220px 2px 2px; }
  .hero-photo img { height: 100%; object-fit: cover; object-position: center; }
  .hero-copy { align-self: center; padding: 54px 26px; }
  .hero-copy .crest { border-color: var(--accent); margin-bottom: 30px; }
  body .invitation-hero .names { font-weight: 400; letter-spacing: -.035em; font-size: clamp(68px, 7.3vw, 110px); }
  body.party .invitation-hero .names { font-size: clamp(118px, 12.5vw, 188px); color: #f5dfb5; }
  .hero-copy .intro { font-size: 22px; max-width: 380px; }
  .date { color: var(--accent); }
  .hero-copy .pill, .rsvp form button.pill, .admin-login form button.pill {
    border: 1px solid #b68f49;
    background: linear-gradient(110deg, #c49d56, #eed7a1, #c49d56);
    color: #292419;
    letter-spacing: .16em;
    padding: 16px 24px;
    font-weight: 600;
    box-shadow: 0 4px 14px #8d692918;
  }
  .pill:hover { letter-spacing: .16em; filter: brightness(1.04); }
  .band { color: var(--accent); font-size: 24px; padding: 30px 24px; background: #b5924608; }
  .section { padding-block: 80px; }
  .detail, .party .detail {
    border: 1px solid var(--line);
    outline: 1px solid var(--line);
    outline-offset: -8px;
    background: transparent;
    padding: 48px 30px;
  }
  .detail::before, .party .detail::before { color: var(--accent); }
  .rsvp, .party .rsvp {
    background: var(--paper);
    border: 1px solid var(--accent);
    box-shadow: 0 18px 70px #0000000c;
  }
  .rsvp input, .rsvp select, .rsvp textarea,
  .admin-login input, .admin-login select {
    border: 1px solid var(--line);
    background: #ffffff08;
    padding: 12px;
    border-radius: 2px;
  }
  .rsvp select option, .admin-login select option { background: var(--paper); }
  .organiser-toggle, #save-sample, #admin-logout { border-color: var(--accent); border-radius: 2px; }
  .admin-login-page { min-height: 100vh; }
  .admin-login-page nav { color: var(--ink); border-color: var(--line); }
  .admin-login {
    position: relative;
    isolation: isolate;
    margin: 54px auto;
    padding: 46px clamp(28px, 5vw, 46px);
    background: #fffdf7;
    border: 1px solid #c9a96388;
    border-radius: 120px 120px 4px 4px;
    box-shadow: 0 16px 44px #74603c12;
  }
  .admin-login::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 10px;
    border: 1px solid #baa16e40;
    border-radius: inherit;
    pointer-events: none;
  }
  .admin-login::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 22px;
    background: url('botanical.svg') left top / 85px auto no-repeat,
      url('botanical.svg') right bottom / 100px auto no-repeat;
    opacity: .13;
    pointer-events: none;
  }
  .admin-login h1 { font-weight: 400; letter-spacing: -.03em; text-align: center; margin-block: 24px; }
  .admin-login > p { font-size: 14px; text-align: center; }
  .admin-login > .eyebrow { font-size: 10px; }
  .demo-login-details { border-color: #c7a35d66; color: #647064; }
  body.organiser-page { --paper: #fbf6ec; --ink: #25352f; --accent: #88632d; --line: #a885494d; background: #f3eddf; color: var(--ink); }
  .organiser-page .organiser { border-top: 3px double var(--accent); padding-top: 24px; }
  .organiser-page .organiser > h2 { font-weight: 400; letter-spacing: -.025em; }
  .guest-list-actions button, #reset-demo, #admin-logout {
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 9px 14px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
  }
  .guest-list-actions button:hover, #reset-demo:hover { background: #efe1c5; }
  .organiser-page .floor-plan { background: #fcf9f2; border-color: var(--accent); }
  .guest-card { border-radius: 2px; }
  @media (max-width: 700px) {
    nav { min-height: 70px; padding: 18px 20px; }
    .showcase-main { padding: 40px 20px; }
    .showcase-intro { margin-bottom: 32px; }
    .showcase-intro { padding: 28px 14px 20px; border-radius: 110px 110px 4px 4px; }
    .showcase-grid { padding: 12px; }
    .showcase-main::before, .showcase-main::after { opacity: .16; }
    .showcase-grid { max-width: 440px; margin: auto; gap: 28px; }
    .card-photo img { aspect-ratio: 4 / 5; }
    .card-info { padding: 23px; min-height: 110px; }
    body .hero.invitation-hero { padding: 10px; gap: 0; margin-block: 20px; }
    .hero-photo { border-radius: 180px 180px 0 0; }
    .hero-photo img { height: auto; }
    .hero-copy { padding: 40px 18px; }
    .hero-copy .crest { display: grid; }
    .hero-copy .intro { font-size: 21px; }
    .section { padding-block: 50px; }
    .admin-login { margin-block: 28px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .invitation-card { transition: none; }
    .invitation-card:hover { transform: none; }
  }
}
