* { box-sizing: border-box; }
    html { background: #dceffa; }
    body { margin: 0; color: #28552e; font-family: "Gill Sans", sans-serif; line-height: 1.6; background: #dceffa; }
    header { max-width: 1000px; margin: auto; padding: 18px 24px; text-align: right; }
    a { color: #28552e; text-underline-offset: 5px; }
    a:focus-visible { outline: 3px solid #b82068; outline-offset: 5px; }
    .wedding-link { font-size: 14px; }
    .signup { margin: 0 0 28px; padding: 20px 24px; background: #f6ed70; border-radius: 0; box-shadow: 5px 5px 0 #eb91b3; }
    .signup label { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 22px; cursor: pointer; }
    .signup input { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: #28552e; cursor: pointer; }
    .signup input:focus-visible { outline: 3px solid #b82068; outline-offset: 5px; }
    .signup .comment-label { margin-top: 16px; font-size: 18px; }
    .signup textarea { display: block; width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid #638448; border-radius: 0; color: #28552e; background: #e0edcf; font: inherit; resize: vertical; }
    .signup textarea:focus-visible { outline: 3px solid #b82068; outline-offset: 3px; }
    .signup input[type="tel"], .signup input[type="text"] { display: block; width: 100%; height: auto; min-height: 48px; padding: 12px 14px; border: 1px solid #638448; border-radius: 0; color: #28552e; background: #e0edcf; font: inherit; cursor: text; }
    .signup .companions { margin-bottom: 16px; }
    .signup-attendance { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .signup-attendance input[type="text"] { flex: 0 1 160px; width: 160px; min-width: 100px; max-width: 160px; }
    .signup button, .signup-confirmation button { margin-top: 20px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 0; background: #28552e; color: #fffdf5; font: inherit; cursor: pointer; }
    .signup button:focus-visible, .signup-confirmation button:focus-visible { outline: 3px solid #b82068; outline-offset: 3px; }
    .signup :disabled { cursor: default; opacity: 0.75; }
    .signup p { margin: 12px 0 0; }
    .signup-bed-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .signup-bed-row p { margin: 0; }
    .signup select { display: block; width: 100%; max-width: 320px; min-height: 48px; padding: 10px 14px; border: 1px solid #638448; border-radius: 0; color: #28552e; background: #e0edcf; font: inherit; }
    .signup select:focus-visible { outline: 3px solid #b82068; outline-offset: 3px; }
    .signup-confirmation { margin: 0 0 28px; padding: 24px; background: #f6ed70; border-radius: 0; box-shadow: 5px 5px 0 #eb91b3; font-size: 22px; }
    .signup-confirmation p { margin: 0; }
    .signup-confirmation:not([hidden]) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
    .signup-confirmation button { margin: 0; }
    .signup .privacy-note { font-size: 14px; }
    main { max-width: 1000px; margin: auto; padding: 12px 28px 80px; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .invitation { padding-bottom: 36px; }
    .invitation img { display: block; width: 100%; height: auto; }
    .invitation-title { max-width: 780px; margin: 0 auto 28px; transform: rotate(-2deg); }
    /* Preserve the original artwork; reveal the page around the balloon and paper. */
    .invitation-title { clip-path: polygon(0% 13%, 83% 13%, 82.8% 10%, 83% 7%, 83.6% 4.4%, 84.5% 2.7%, 85.7% 1.8%, 87% 1.7%, 88.5% 2.2%, 90% 3.5%, 91% 5.7%, 91.7% 8.2%, 91.8% 10.5%, 91.5% 13%, 100% 13%, 100% 96%, 0% 96%); }
    .invitation-collage { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: center; }
    .invitation-house { grid-column: 1; transform: rotate(-2deg); }
    .invitation-history { grid-column: 2; grid-row: 1 / span 2; max-width: 290px; justify-self: center; transform: rotate(2deg); }
    .invitation-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
    .invitation-notes img:first-child { transform: rotate(2deg); }
    .invitation-notes img:last-child { transform: rotate(-3deg); }
    h2, h3 { color: #e21919; font-family: "Gill Sans", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.035em; line-height: 1.2; }
    h2 { color: #e21919; font-size: clamp(30px, 5vw, 46px); margin: 56px 0 26px; }
    .day-plan { background: #f6ed70; padding: 28px 32px; border-radius: 0; box-shadow: 7px 7px 0 #eb91b3; }
    .day-plan h2 { margin: 0 0 20px; }
    .schedule-date { margin: 0 0 12px; color: #e21919; font-size: clamp(24px, 4vw, 34px); font-weight: 500; line-height: 1.2; }
    .schedule-address { margin: 0 0 24px; font-size: clamp(16px, 2.5vw, 20px); line-height: 1.5; }
    .schedule-note { text-transform: none; letter-spacing: normal; font-family: "Gill Sans", sans-serif; font-size: 0.48em; font-weight: 700; display: inline-block; }
    .schedule-welcome { margin: -8px 0 20px; color: #e21919; font-family: "Gill Sans", sans-serif; font-size: clamp(14.4px, 2.4vw, 22.08px); font-weight: 300; font-style: italic; line-height: 1.5; }
    .schedule { list-style: none; margin: 0; padding: 0; }
    .schedule li { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid #28552e40; font-size: 20px; }
    .schedule li:last-child { border: 0; }
    .schedule-activity-note { margin-left: 12px; font-size: 0.85em; font-style: italic; font-weight: 300; }
    .time { flex: 0 0 140px; font-weight: bold; font-variant-numeric: tabular-nums; }
    .task { background: #e0edcf; border: 2px solid #638448; border-radius: 0; padding: 24px; margin-bottom: 30px; box-shadow: 6px 6px 0 #d6db79; }
    .task:nth-of-type(even) { background: #ffe5ef; border-color: #b82068; box-shadow: 6px 6px 0 #eeabcb; }
    .task h3 { font-size: 27px; margin: 0 0 20px; }
    .task-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .task-photos { display: grid; gap: 16px; align-content: start; }
    .task-description { padding: 22px; background: #f6ed7040; border: 1px dashed #638448; border-radius: 0; font-size: 18px; }
    .task-description p { margin: 0; }
    .food-choice { display: flex; align-items: center; gap: 12px; margin-top: 20px; min-height: 44px; font-size: 20px; cursor: pointer; }
    .food-choice input { width: 24px; height: 24px; margin: 0; accent-color: #28552e; }
    .food-details label { display: block; margin: 12px 0 8px; }
    .food-details input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #638448; border-radius: 0; background: #e0edcf; color: #28552e; font: inherit; }
    .food-task button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 0; background: #28552e; color: white; font: inherit; cursor: pointer; }
    .food-task input:focus-visible, .food-task button:focus-visible { outline: 3px solid #b82068; outline-offset: 3px; }
    .food-save-note { font-size: 15px; margin-bottom: 0; }
    .task-images img { display: block; width: 100%; height: auto; border-radius: 3px; }
    .task-images img.portrait-square { aspect-ratio: 1; object-fit: cover; }
    .family-photo { position: relative; container-type: inline-size; max-width: 560px; margin: 56px auto 0; }
    .family-photo img { display: block; width: 100%; height: auto; }
    .family-photo figcaption { position: absolute; top: 88px; left: 9%; color: #ff1493; font-size: 23.2cqw; font-weight: 500; line-height: 1.2; text-align: left; transform: rotate(-20deg); text-shadow: 4px 4px 0 #fff; pointer-events: none; }
    main img[role="button"] { cursor: zoom-in; }
    main img[role="button"]:focus-visible { outline: 3px solid #b82068; outline-offset: 5px; }
    html.viewer-open { overflow: hidden; }
    .image-viewer { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: white; background: #111; }
    .image-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
    .image-viewer::backdrop { background: #111; }
    .viewer-toolbar, .viewer-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); }
    .viewer-toolbar { padding-top: max(12px, env(safe-area-inset-top)); }
    .viewer-navigation { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .image-viewer button { min-width: 48px; min-height: 48px; padding: 8px 16px; border: 1px solid #ffffff70; border-radius: 8px; color: white; background: #292929; font: inherit; cursor: pointer; }
    .image-viewer button:hover { background: #444; }
    .image-viewer button:focus-visible { outline: 3px solid #f6ed70; outline-offset: 3px; }
    .viewer-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 12px; touch-action: pan-y pinch-zoom; user-select: none; }
    .viewer-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
    .viewer-hint { margin: 0; text-align: center; font-size: 14px; color: #ccc; }
    @media (max-width: 600px) {
      .signup-bed-row { flex-direction: column; align-items: flex-start; gap: 0; }
      main { padding: 8px 20px 56px; }
      .invitation-title { margin-bottom: 24px; }
      .invitation-collage { grid-template-columns: 1fr; gap: 28px; }
      .invitation-house, .invitation-history { grid-column: auto; grid-row: auto; }
      .invitation-history { max-width: 250px; order: 2; }
      .invitation-notes { gap: 14px; }
      .day-plan { padding: 24px 20px; }
      .schedule li { flex-direction: column; gap: 2px; }
      .time { flex-basis: auto; }
      .task { padding: 18px; }
      .task-images { grid-template-columns: 1fr; }
    }
