:root {
  color-scheme: light;
  --cream: #f8f0e3;
  --cream-deep: #eadccb;
  --paper: rgba(255, 252, 246, 0.97);
  --ink: #24372e;
  --ink-soft: #5d6f65;
  --spruce: #315847;
  --spruce-dark: #26483a;
  --berry: #b9566b;
  --lupine: #765b91;
  --marigold: #d39a3f;
  --lake: #4f7d84;
  --line: rgba(103, 82, 67, 0.25);
  --error: #a13e4c;
  --card-radius: 1.75rem;
  --field-radius: 0.9rem;
  --masthead-block: calc(2.09rem + 3vh);
  --shadow: 0 30px 84px rgba(62, 43, 30, 0.14);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(185, 86, 107, 0.18), transparent 29rem),
    radial-gradient(circle at 89% 12%, rgba(118, 91, 145, 0.15), transparent 30rem),
    radial-gradient(circle at 92% 90%, rgba(79, 125, 132, 0.18), transparent 34rem),
    linear-gradient(145deg, var(--cream), var(--cream-deep));
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.42;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.confetti-canvas {
  position: fixed;
  z-index: 110;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-masthead {
  position: relative;
  isolation: isolate;
  width: min(1520px, calc(100% - 2.5rem));
  min-height: 0;
  margin: 0 auto;
  padding: 1.5vh 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.site-masthead-title {
  position: relative;
  z-index: 1;
  max-width: min(100%, 46rem);
  margin: 0;
  color: var(--spruce);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-masthead-title span {
  color: var(--marigold);
  letter-spacing: 0.06em;
}

.masthead-floral {
  position: absolute;
  z-index: 0;
  top: 50%;
  width: 8.5rem;
  height: auto;
  opacity: 0.72;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0 62%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0 62%, transparent 100%);
  transform: translateY(-50%);
}

.masthead-floral-left {
  left: clamp(0.3rem, 3vw, 3.1rem);
}

.masthead-floral-right {
  right: clamp(0.3rem, 3vw, 3.1rem);
  transform: translateY(-50%) scaleX(-1);
}

.page-shell {
  width: min(1520px, calc(100% - 2.5rem));
  min-height: calc(100svh - var(--masthead-block));
  margin: 0 auto;
  padding: 0 0 clamp(1rem, 2.5vh, 1.75rem);
  display: grid;
  grid-template-columns: minmax(41rem, 1.18fr) minmax(25rem, 0.82fr);
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  align-items: center;
}

.form-panel,
.place-panel {
  position: relative;
  min-width: 0;
  height: min(calc(100svh - var(--masthead-block) - 0.9rem), 850px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: panel-arrival 620ms var(--spring) both;
}

.form-panel {
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 98% 2%, rgba(211, 154, 63, 0.1), transparent 12rem),
    radial-gradient(circle at 1% 99%, rgba(185, 86, 107, 0.08), transparent 13rem),
    var(--paper);
}

.form-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1.1rem;
  left: -1.3rem;
  width: min(64%, 35rem);
  height: clamp(14rem, 25vw, 20rem);
  background: url("assets/sun-clouds.webp?v=17") left top / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.form-scroll-region {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: clamp(1.25rem, 2.2vw, 2.25rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--berry) rgba(49, 88, 71, 0.08);
}

.form-scroll-region::-webkit-scrollbar {
  width: 0.72rem;
}

.form-scroll-region::-webkit-scrollbar-track {
  margin-block: 1.6rem;
  background: rgba(49, 88, 71, 0.07);
  border-radius: 999px;
}

.form-scroll-region::-webkit-scrollbar-thumb {
  min-height: 3.5rem;
  background: linear-gradient(180deg, var(--berry), var(--lupine), var(--marigold));
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 999px;
}

.form-scroll-region::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c66779, #846aa0, #dda84f);
  background-clip: padding-box;
  border: 2px solid transparent;
}

.mobile-photo-card {
  display: none;
}

.mobile-date-card {
  display: none;
}

.place-name-stacked {
  display: none;
}

.place-panel {
  display: grid;
  grid-template-rows: 34% 66%;
  background: var(--spruce);
  border: none !important;
  border-color: rgba(35, 71, 57, 0.8);
  animation-delay: 90ms;
}

.form-intro,
form,
.success-state {
  position: relative;
  z-index: 2;
}

.section-kicker {
  margin: 0 0 0.45rem;
  color: var(--berry);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  gap: clamp(1rem, 2vw, 1.65rem);
  align-items: center;
}

.intro-copy {
  min-width: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.form-question {
  max-width: 18ch;
  margin-bottom: 0.42rem;
  font-size: clamp(2rem, 3.15vw, 3.35rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.25rem;
  font-size: 1.08rem;
}

.welcome-copy {
  max-width: 55ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.date-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 9.3rem;
  padding: 0.72rem 0.8rem 0.67rem;
  display: grid;
  place-content: center;
  justify-items: center;
  align-self: center;
  color: var(--ink);
  text-align: center;
  background: linear-gradient(135deg, var(--berry), var(--marigold), var(--lupine));
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px rgba(77, 49, 37, 0.1);
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  cursor: pointer;
  -webkit-transform: rotate(1.2deg);
  transform: rotate(1.2deg);
  transition: transform 300ms var(--spring);
}

.date-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 2px;
  background: rgba(255, 252, 246, 0.98);
  border-radius: calc(1.25rem - 2px);
  pointer-events: none;
}

.date-card > * {
  position: relative;
  z-index: 1;
}

.wedding-date {
  display: grid;
  place-content: center;
  justify-items: center;
  font-family: var(--display);
  line-height: 1.04;
}

.wedding-date span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wedding-date strong {
  display: block;
  margin: 0.16rem 0;
  color: var(--berry);
  font-size: 1.47rem;
  font-weight: 600;
  white-space: nowrap;
}

.date-note {
  max-width: 27ch;
  margin-top: 0.45rem;
  padding-top: 0.42rem;
  color: var(--spruce);
  border-top: 1px solid rgba(49, 88, 71, 0.2);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.18;
}

.date-card:hover {
  -webkit-transform: rotate(-0.4deg);
  transform: rotate(-0.4deg);
}

.date-card:focus-visible {
  outline: 3px solid rgba(118, 91, 145, 0.72);
  outline-offset: 4px;
  -webkit-transform: rotate(-0.4deg);
  transform: rotate(-0.4deg);
}

form {
  margin-top: 0.92rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.62rem 0.72rem;
}

form[hidden] {
  display: none;
}

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: 1 / -1; }

.field {
  min-width: 0;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: start;
}

label,
legend {
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 780;
  line-height: 1.25;
}

label {
  min-height: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.address-field {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.address-grid {
  min-width: 0;
  padding-block: 0.28rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.5rem 0.72rem;
}

.address-field label {
  min-height: 2.15rem;
  margin-bottom: 0.28rem;
  flex-wrap: wrap;
  align-content: flex-end;
  align-items: flex-end;
}

.optional {
  color: var(--ink-soft);
  font-size: 0.59rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.53rem 0.72rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(120, 95, 76, 0.42);
  border-radius: var(--field-radius);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

select {
  appearance: none;
  padding-right: 2.2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--spruce) 50%),
    linear-gradient(135deg, var(--spruce) 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) 50%,
    calc(100% - 0.75rem) 50%;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  background-repeat: no-repeat;
}

input:hover,
select:hover,
input:focus-visible,
select:focus-visible {
  background-color: #fff;
  border-color: var(--lupine);
  box-shadow: 0 0 0 4px rgba(118, 91, 145, 0.22);
}

input:focus-visible,
select:focus-visible {
  outline: 2px solid transparent;
}

.field:has(input:hover) > label,
.field:has(select:hover) > label {
  color: var(--berry);
}

.field:focus-within > label {
  color: var(--lupine);
}

.field > label {
  transition: color 180ms ease;
}

.field.has-error input,
.field.has-error select {
  background-color: #fff9f8;
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(161, 62, 76, 0.14);
}

.field-error {
  min-height: 1.35em;
  margin: 0.22rem 0 0;
  color: var(--error);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.3;
}

.field-error:empty {
  visibility: hidden;
}


.text-button,
.edit-confirmation {
  color: var(--berry);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  cursor: pointer;
  font-weight: 780;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 220ms var(--spring);
}

.text-button:hover,
.text-button:focus-visible,
.edit-confirmation:hover,
.edit-confirmation:focus-visible {
  color: var(--spruce);
  background: rgba(49, 88, 71, 0.08);
  border-color: rgba(49, 88, 71, 0.12);
  box-shadow: 0 0 0 3px rgba(49, 88, 71, 0.08);
  outline: none;
  transform: scale(1.05);
}

.form-footer {
  margin-top: 0.12rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.form-message {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.clear-all {
  min-height: 2.8rem;
  padding: 0.55rem 0.8rem;
}

.submit-address {
  min-width: 11.5rem;
  min-height: 2.8rem;
  padding: 0.6rem 1.2rem;
  color: #fff;
  background: var(--spruce);
  border: 2px solid var(--spruce);
  border-radius: 0.95rem;
  box-shadow: 0 8px 18px rgba(49, 88, 71, 0.15);
  cursor: pointer;
  font-weight: 780;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 220ms var(--spring);
}

.submit-address:hover,
.submit-address:focus-visible {
  background: var(--spruce-dark);
  border-color: var(--spruce-dark);
  box-shadow: 0 0 0 4px rgba(49, 88, 71, 0.18);
  outline: none;
  transform: scale(1.05);
}

.submit-address:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.submit-busy {
  display: none;
}

.submit-address.is-submitting .submit-ready {
  display: none;
}

.submit-address.is-submitting .submit-busy {
  display: inline;
}

.form-message {
  min-height: 1rem;
}

.form-message.is-error {
  color: var(--error);
  font-weight: 700;
}

.trap-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success-state {
  min-height: 68%;
  padding: 2.2rem 1rem;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  animation: success-bloom 440ms var(--spring) both;
}

.success-state[hidden] {
  display: none;
}

.success-state h2 {
  max-width: none;
  white-space: nowrap;
}

.success-flower {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 0.45rem;
  object-fit: contain;
}

.confirmation-lead {
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.confirmation-address {
  min-width: min(100%);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.08rem;
  color: var(--ink);
  background: rgba(185, 86, 107, 0.07);
  border: 1px solid rgba(185, 86, 107, 0.2);
  border-radius: 1rem;
  font-style: normal;
}

.confirmation-edit-note {
  max-width: 48ch;
  margin: 0.85rem 0 0.4rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.edit-confirmation {
  padding: 0.48rem 0.7rem;
}

.calendar-save {
  width: min(100%, 38rem);
  margin-top: 1rem;
  padding: 0.9rem 1rem 1rem;
  color: var(--ink);
  background: rgba(211, 154, 63, 0.08);
  border: 1px solid rgba(211, 154, 63, 0.24);
  border-radius: 1.15rem;
}

.calendar-save-kicker {
  margin: 0 0 0.15rem;
  color: var(--berry);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.calendar-save h3 {
  margin: 0;
  color: var(--spruce);
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.08;
}

.calendar-save > p:not(.calendar-save-kicker) {
  max-width: 46ch;
  margin: 0.32rem auto 0.68rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.calendar-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.48rem;
}

.calendar-button {
  min-height: 2.45rem;
  padding: 0.54rem 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--spruce);
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(49, 88, 71, 0.22);
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(49, 88, 71, 0.07);
  font-size: 0.7rem;
  font-weight: 780;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 220ms var(--spring);
}

.calendar-button:hover,
.calendar-button:focus-visible {
  color: var(--berry);
  background: #fffaf2;
  border-color: rgba(185, 86, 107, 0.42);
  box-shadow: 0 0 0 3px rgba(185, 86, 107, 0.1), 0 8px 18px rgba(49, 88, 71, 0.1);
  outline: none;
  transform: scale(1.05);
}

.calendar-button:active {
  transform: scale(0.99);
}

.noscript-message {
  position: relative;
  z-index: 3;
  margin: 0.8rem 0 0;
  color: var(--error);
  font-weight: 700;
}

.place-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--spruce);
  border-bottom: 1px solid rgba(255, 252, 246, 0.16);
}

.place-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.place-photo > img[hidden],
.place-photo > #secondary-photo {
  display: none;
}

.photo-focus-top { object-position: center top; }
.photo-focus-centre { object-position: center center; }
.photo-focus-bottom { object-position: center bottom; }

.place-content {
  position: relative;
  z-index: 2;
  min-height: 0;
  padding: clamp(1.2rem, 2.1vw, 1.8rem);
  padding-bottom: clamp(5.8rem, 7vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fffdf8;
  background: var(--spruce);
}

.meadow-wildflowers {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(5.1rem, 6vw, 6.2rem);
  overflow: hidden;
  pointer-events: none;
}

.meadow-wildflowers > img {
  position: absolute;
  bottom: -0.35rem;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  display: block;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.place-heading {
  margin-bottom: 0.7rem;
}

.place-heading h2 {
  max-width: 15ch;
}

.place-heading > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.73);
}

.light-kicker {
  margin-bottom: 0.28rem;
  color: #f4c568;
}

.travel-window {
  padding: 0.92rem 1rem;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.2rem;
  box-shadow: 0 16px 36px rgba(17, 35, 29, 0.18);
}

.travel-welcome {
  margin-bottom: 0.68rem;
  color: var(--ink-soft);
}

.travel-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.travel-facts > div {
  padding: 0.62rem;
  background: #f2e8db;
  border-radius: 0.9rem;
}

.travel-facts dt {
  margin-bottom: 0.18rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--berry);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.travel-icon {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.travel-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.36;
}

.late-summer-note {
  margin-top: 0.62rem;
  padding: 0.64rem 0.72rem;
  background: rgba(118, 91, 145, 0.08);
  border-radius: 0.9rem;
}

.late-summer-note h3 {
  color: var(--spruce);
}

.late-summer-heading {
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.late-summer-heading img {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.late-summer-heading h3 {
  margin-bottom: 0;
}

.late-summer-note p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.travel-links {
  margin-top: 0.64rem;
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem 0.75rem;
}

.travel-links a,
.contact-note a {
  color: var(--spruce);
  border-radius: 0.3rem;
  font-size: 0.68rem;
  font-weight: 780;
  text-decoration-color: rgba(49, 88, 71, 0.4);
  text-underline-offset: 0.16rem;
  transition: color 160ms ease, background-color 160ms ease, text-decoration-color 160ms ease;
}

.travel-links a:hover,
.travel-links a:focus-visible,
.contact-note a:hover,
.contact-note a:focus-visible {
  color: var(--berry);
  background: rgba(185, 86, 107, 0.07);
  text-decoration-color: var(--berry);
  outline: 2px solid transparent;
}

.contact-note {
  margin-top: 0.78rem;
  padding-top: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.contact-note p {
  margin-bottom: 0.34rem;
}

.contact-note address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem 0.72rem;
  font-style: normal;
}

@keyframes panel-arrival {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes success-bloom {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1240px) {
  body {
    font-size: 0.94rem;
  }

  .site-masthead {
    width: min(46rem, calc(100% - 1.5rem));
    min-height: 0;
  }

  .page-shell {
    width: min(46rem, calc(100% - 1.5rem));
    min-height: auto;
    padding: 0.75rem 0 1.5rem;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .form-panel,
  .place-panel {
    height: auto;
  }

  .form-panel {
    overflow: hidden;
  }

  .form-scroll-region {
    height: auto;
    overflow: visible;
  }

  .mobile-photo-card:not([hidden]) {
    position: relative;
    height: clamp(18rem, 50svh, 25rem);
    min-height: 18rem;
    display: block;
    overflow: hidden;
    color: #fffdf8;
    background: var(--spruce);
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    animation: panel-arrival 520ms var(--spring) both;
  }

  .mobile-photo-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .mobile-photo-card > img[hidden] {
    display: none;
  }

  .mobile-photo-caption {
    position: absolute;
    z-index: 3;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: fit-content;
    max-width: calc(100% - 2rem);
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    text-shadow:
      0 1px 2px rgba(14, 35, 28, 0.95),
      0 4px 15px rgba(14, 35, 28, 0.78);
  }

  .mobile-photo-caption .section-kicker {
    margin-bottom: 0.12rem;
    color: #f4c568;
  }

  .mobile-photo-caption h2 {
    margin: 0 0 0.06rem;
    color: #fffdf8;
    font-size: clamp(1.9rem, 6.8vw, 3rem);
    line-height: 0.98;
  }

  .mobile-photo-caption > p:last-child {
    margin: 0;
    color: rgba(255, 253, 248, 0.88);
    font-size: 0.72rem;
  }

  .mobile-date-card {
    position: absolute;
    z-index: 4;
    top: 1rem;
    right: 1rem;
    width: min(13rem, 42vw);
    min-height: 7.55rem;
    padding: 0.34rem 0.48rem;
    display: grid;
    margin: 0;
    background: linear-gradient(135deg, var(--berry), var(--marigold), var(--lupine));
    box-shadow: 0 10px 26px rgba(18, 38, 31, 0.24);
  }

  .mobile-date-card::before {
    background: rgba(255, 252, 246, 0.96);
  }

  .mobile-date-card .wedding-date strong {
    font-size: 1.3rem;
  }

  .mobile-date-card .date-note {
    max-width: 25ch;
    font-size: 0.61rem;
  }

  body.has-primary-photo .form-panel .date-card {
    display: none;
  }

  body.has-primary-photo .form-panel .intro-grid {
    grid-template-columns: 1fr;
  }

  body.has-primary-photo .form-panel .form-question {
    max-width: 66%;
    font-size: 3rem;
  }

  .place-content {
    justify-content: flex-start;
  }

  .place-heading h2 {
    max-width: 100%;
  }

  .place-heading .place-heading-full,
  .place-name-full {
    display: none;
  }

  .place-name-stacked {
    display: inline;
  }

  body.has-primary-photo:not(.has-secondary-photo) .place-panel {
    grid-template-rows: 1fr;
  }

  body.has-primary-photo:not(.has-secondary-photo) .place-panel .place-photo {
    display: none;
  }

  body.has-primary-photo:not(.has-secondary-photo) .place-panel .place-content {
    grid-row: 1;
  }

  body.has-primary-photo.has-secondary-photo .place-panel #primary-photo {
    display: none;
  }

  body.has-primary-photo.has-secondary-photo .place-panel #secondary-photo:not([hidden]) {
    display: block;
  }

  .place-panel {
    min-height: 52rem;
    grid-template-rows: 19rem auto;
  }

  .travel-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-masthead {
    width: min(100% - 1rem, 42rem);
    min-height: 0;
  }

  .site-masthead-title {
    font-size: 0.95rem;
    letter-spacing: 0.075em;
    line-height: 1.1;
  }

  .masthead-floral {
    display: none;
  }

  .page-shell {
    width: min(100% - 1rem, 42rem);
    gap: 0.85rem;
    padding-top: 0.5rem;
  }

  .form-panel,
  .place-panel {
    border-radius: 1.35rem;
  }

  .form-panel {
    padding: 0;
  }

  .form-scroll-region {
    padding: 1.05rem;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.82rem;
    text-align: center;
  }

  .form-question {
    max-width: 18ch;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  body.has-primary-photo .form-panel .form-question {
    max-width: 17ch;
    font-size: 3rem;
  }

  .welcome-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .date-card {
    width: min(100%, 12.5rem);
    margin: 0 auto;
  }

  .mobile-date-card {
    top: 0.72rem;
    right: 0.72rem;
    width: min(11.5rem, 47vw);
    min-height: 7.25rem;
    padding: 0.28rem 0.4rem;
    margin: 0;
  }

  .mobile-photo-caption {
    right: 0.72rem;
    bottom: 0.82rem;
    left: 0.72rem;
    max-width: calc(100% - 1.44rem);
  }

  form {
    gap: 0.62rem;
  }

  .col-2,
  .col-3,
  .col-4,
  .col-6,
  .col-8,
  .col-12 {
    grid-column: 1 / -1;
  }

  .address-field label {
    min-height: 1.05rem;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
  }

  .submit-address {
    width: 100%;
  }

  .clear-all {
    width: 100%;
  }

  .calendar-actions {
    width: min(100%, 18rem);
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: 1fr;
  }

  .calendar-button {
    min-height: 2.65rem;
  }

  .place-panel {
    min-height: 60rem;
    grid-template-rows: 17rem auto;
  }

  .place-content {
    padding: 1.05rem 1.05rem 6.1rem;
  }

  .place-heading h2 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }

  .travel-window {
    padding: 0.82rem;
  }

  .travel-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .place-panel {
    min-height: 63rem;
  }

  .contact-note address {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .success-state h2 {
    max-width: 18ch;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #3e4d45;
    --line: rgba(36, 55, 46, 0.55);
  }

  input,
  select {
    border-width: 2px;
  }
}
