@font-face{font-family:'Inknut Antiqua';font-style:normal;font-weight:400;font-display:swap;src:url('./inknut-regular.ttf') format('truetype')}
@font-face{font-family:'Inknut Antiqua';font-style:normal;font-weight:600;font-display:swap;src:url('./inknut-semibold.ttf') format('truetype')}
@font-face{font-family:'Inknut Antiqua';font-style:normal;font-weight:700;font-display:swap;src:url('./inknut-bold.ttf') format('truetype')}
/* Keep multiline carets close to the letters instead of the font's oversized vertical metrics. */
@font-face{font-family:'Inknut Antiqua Fields';font-style:normal;font-weight:400;font-display:swap;src:url('./inknut-regular.ttf') format('truetype');ascent-override:90%;descent-override:25%;line-gap-override:0%}
@font-face{font-family:Italianno;font-style:normal;font-weight:400;font-display:swap;src:url('./italianno.ttf') format('truetype')}

:root{color-scheme:light;--paper:#fade8a;--ink:#7d4e10;--panel:#efd073;--button:#ab8130;font-family:'Inknut Antiqua',Georgia,serif;color:var(--ink);background:var(--paper);font-size:100%}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
/* Keep momentum scrolling within the artwork's page boundary. Apply to the root scroller. */
html.invitation-page{overscroll-behavior-y:none}
h1,h2,p{margin:0}
p{font-size:clamp(.625rem,1.045vw,.9375rem);line-height:1.7}
p+p{margin-top:1.25rem}
a{color:inherit;text-underline-offset:.15em;font-weight:600}
input,textarea,button{font:inherit;color:inherit;border:1px solid var(--ink);border-radius:0;background:transparent}
input,textarea{display:block;width:100%;padding:.28rem .75rem;font-size:.72rem;line-height:1.7;min-height:2rem}
textarea{font-family:'Inknut Antiqua Fields','Inknut Antiqua',Georgia,serif;resize:vertical;min-height:3.25rem}
input::placeholder,textarea::placeholder{color:var(--ink);opacity:.7}
input:not([type=radio]):focus,textarea:focus{outline:none;box-shadow:none;background:rgb(125 78 16 / .06)}
button:focus-visible,a:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
input[aria-invalid=true],textarea[aria-invalid=true]{background:rgb(125 78 16 / .1)}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.6}
.submit-button{display:block;width:max-content;margin:1rem auto 0;padding:.1rem .9rem;font-size:.8rem;line-height:1.9;font-weight:700;background:var(--paper)}
.submit-button:hover{background:var(--panel)}
.sr-only,.honey{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.form-status{font-size:.7rem;line-height:1.65;margin-top:1rem;text-align:center;overflow-wrap:anywhere}
.form-status:empty{display:none}
.form-status:focus{outline:none}
.home-content>.form-status,.invitation-content>.form-status{margin-top:calc(1rem + 1lh);opacity:.65;font-style:italic;animation:confirmation-fade-in 1.5s ease-out both}
@keyframes confirmation-fade-in{from{opacity:0}to{opacity:.65}}
.validation-shake{animation:validation-shake 360ms ease-in-out}
.response-options label.validation-shake:nth-of-type(2){animation-delay:360ms}
.response-options label.validation-shake:nth-of-type(3){animation-delay:720ms}
@keyframes validation-shake{
  0%,100%{transform:translateX(0)}
  15%{transform:translateX(-6px)}
  30%{transform:translateX(6px)}
  45%{transform:translateX(-4px)}
  60%{transform:translateX(4px)}
  75%{transform:translateX(-2px)}
  90%{transform:translateX(2px)}
}

.home-content{width:min(36.5rem,calc(100% - 3rem));max-width:375px;margin:0 auto;padding-top:clamp(5rem,19vh,10rem);padding-bottom:3rem}
.home-content h1{font-size:2.9rem;line-height:1.55;letter-spacing:.025em;font-weight:600;white-space:nowrap;margin-bottom:.65rem}
.publication-copy{padding:0 .2rem}
.copy-form{width:12rem;max-width:100%;margin:1.85rem auto 0}
.copy-form>input,.copy-form>textarea{margin-bottom:.85rem}
.copy-form .form-status{width:160%;margin-left:-30%}

.invitation{position:relative;width:min(100%,1440px);margin:0 auto;min-height:calc(100svh + 23rem);padding:clamp(6rem,17.5vh,10rem) 0 6rem;overflow:hidden}
.invitation-content{position:relative;z-index:1;width:44.2%;margin-left:12.3%}
.invitation-heading{text-align:center;margin:0 -2rem 1.5rem}
.invitation-heading h1{font-size:2rem;line-height:1.5;font-weight:700;margin-bottom:1rem}
.event-details{font-size:.9rem;line-height:1.35}
.invitation-copy{padding:0 .45rem}
.invitation-copy p+p{margin-top:1.2rem}
.rsvp-form{container-type:inline-size;margin-top:1.6rem;padding:1rem 2.5rem 1.35rem;background:var(--panel);border:1px solid var(--ink);text-align:center}
.rsvp-form h2{font-size:.9rem;font-weight:700;margin-bottom:1.2rem}
.rsvp-fields{width:12rem;max-width:100%;margin:0 auto;display:grid;gap:1rem}
.response-options{display:flex;flex-wrap:nowrap;justify-content:center;gap:min(1rem,3cqw);border:0;padding:0;margin:2rem 0 1rem;min-width:0}
.response-options label{position:relative;display:block;flex:0 1 5.2rem;min-width:0;cursor:pointer}
.response-options input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.response-options span{display:flex;align-items:center;justify-content:center;background:var(--button);color:var(--paper);font-family:Italianno,cursive;font-size:min(1.65rem,10cqw);line-height:1.3;min-height:2.6rem;padding:.2rem min(.3rem,1cqw);border:1px solid var(--ink);white-space:nowrap}
.response-options input:hover+span{background:var(--ink)}
.response-options input:checked+span{background:var(--ink)}
.response-options input:focus-visible+span{text-decoration:underline;text-underline-offset:.15em}
.flower{position:absolute;z-index:0;width:34.5%;left:64.4%;top:48svh;bottom:0;pointer-events:none;container-type:inline-size}
.flower-head{position:relative;z-index:1;display:block;width:100%;height:auto;mask-image:linear-gradient(to bottom,#000 97%,transparent 100%)}
/* Match the original stem's width and tangent; blend only its final few pixels. */
.stem-continuation{position:absolute;top:97cqw;bottom:-1rem;left:20.924%;width:45.1272%;overflow:visible;container-type:size}
.stem-continuation img{height:100%;width:100%;display:block;object-fit:fill;transform-origin:top center;transform:skewX(atan2(calc(17.1cqw - 19.04cqh),100cqh))}
@media(min-width:1100px){.home-content{max-width:460px}.home-content h1{font-size:3.55rem}.home-content p{font-size:.875rem}.copy-form{width:15rem}.invitation-copy p{font-size:.875rem}.invitation-heading h1{font-size:2.4rem}.event-details{font-size:1rem}.rsvp-fields{width:15rem}.rsvp-form{padding:1.4rem 3rem 1.5rem}input,textarea{font-size:.85rem}.response-options label{flex-basis:6.5rem}.response-options span{font-size:min(2rem,10cqw);min-height:3rem}}
@media(max-width:700px){
  p{font-size:.82rem;line-height:1.7}
  .home-content{width:min(375px,calc(100% - 3rem));padding-top:4.5rem}
  .home-content h1{font-size:clamp(1.75rem,7.4vw,2.6rem);white-space:normal}
  .copy-form{width:min(100%,17rem)}
  input,textarea{font-size:1rem;min-height:2.75rem}
  .copy-form .form-status{width:auto;margin-left:0}
  .invitation{min-height:100svh;padding:3.5rem 1.5rem 0;overflow:hidden}
  .invitation-content{width:100%;max-width:440px;margin:0 auto}
  .invitation-heading{margin:0 0 2rem}
  .invitation-heading h1{font-size:clamp(1.7rem,7vw,2.3rem)}
  .event-details{font-size:.82rem;line-height:1.6}
  .invitation-copy{padding:0}
  .rsvp-form{margin-top:2rem;padding:1.3rem 1rem 1.5rem}
  .rsvp-fields{width:min(100%,17rem)}
  .response-options{gap:min(.7rem,3cqw);margin:1.5rem 0}
  .response-options span{font-size:min(1.9rem,10cqw);min-height:2.8rem}
  .submit-button{font-size:.85rem;min-height:2.75rem;margin-top:1.2rem}
  .form-status{font-size:.8rem}
  .flower{position:relative;left:auto;top:auto;bottom:auto;width:min(85%,330px);height:470px;margin:2.5rem auto 0}
}
