@font-face {
  font-family: 'Corinthia';
  src: url('assets/fonts/corinthia.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper:#f8f5ed;
  --paper-deep:#f0e9dd;
  --red:#a5342d;
  --red-dark:#852720;
  --ink:#393b31;
  --muted:#625f53;
  --line:#d9d3c5;
  --serif:'Cormorant Garamond',Georgia,serif;
  --sans:'Be Vietnam Pro',sans-serif;
  --ease:cubic-bezier(.16,1,.3,1)
}

* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:14px;
  font-weight:300;
  line-height:1.8
}
::selection {
  background:#e7c4b9;
  color:var(--red-dark)
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit;
  cursor:pointer
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button:focus-visible,a:focus-visible {
  outline:2px solid var(--red);
  outline-offset:6px
}
svg {
  width:20px;
  height:20px;
  stroke:currentColor;
  stroke-width:1.5;
  flex:none
}
h1,h2,h3,p {
  margin:0
}
h2 {
  font:400 clamp(38px,4.5vw,66px)/1.12 var(--serif);
  letter-spacing:-.025em;
  text-wrap:balance
}
h2 em {
  font-weight:400;
  color:var(--red)
}
.site-header {
  height:100px;
  margin:0 5.5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:24px
}
.monogram {
  position:relative;
  font:500 29px var(--serif);
  letter-spacing:-.06em;
  color:var(--red);
  padding:5px 12px
}
.monogram span {
  font-size:20px;
  font-style:italic;
  margin:0 1px
}
.monogram i {
  position:absolute;
  inset:-3px 0;
  border:1px solid #a5342d66;
  border-radius:50%;
  transform:rotate(-12deg)
}
nav {
  display:flex;
  gap:35px;
  font-size:12px;
  font-weight:400
}
nav a,.share-link {
  position:relative
}
nav a::after,.share-link::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-4px;
  height:1px;
  background:var(--red);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .4s var(--ease)
}
nav a:hover::after,.share-link:hover::after {
  transform:scaleX(1)
}
.header-date {
  font-size:12px;
  letter-spacing:.04em;
  color:var(--red);
  font-weight:500
}
.hero {
  padding:24px 5.5% 0;
  overflow:hidden
}
.hero-topline,.hero-footnote {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  letter-spacing:.04em;
  font-weight:400;
  color:var(--muted)
}
.hero-composition {
  position:relative;
  max-width:1440px;
  min-height:650px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center
}
.hero-copy {
  position:relative;
  z-index:2;
  padding:40px 0 50px
}
.invitation-line {
  font:italic 22px var(--serif);
  margin-bottom:30px;
  color:var(--muted)
}
h1 {
  font:400 clamp(76px,8.1vw,120px)/.95 var(--serif);
  color:var(--red);
  letter-spacing:-.04em;
  width:max-content;
  max-width:100%;
  position:relative
}
h1>span {
  display:block
}
h1 .name-and {
  font-style:italic;
  font-size:.58em;
  color:#9b8d70;
  margin:9px 0 10px 34%
}
h1 .bride-name {
  margin-left:50px;
  white-space:nowrap
}
.hero-bottom {
  display:flex;
  align-items:center;
  gap:55px;
  margin-top:48px
}
.hero-bottom p:first-child {
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted);
  margin-bottom:6px
}
.hero-date {
  font:500 23px var(--serif);
  letter-spacing:.04em
}
.hero-date span {
  padding:0 5px;
  color:#82745e;
  font-weight:400
}
.open-invitation {
  display:flex;
  align-items:center;
  gap:18px;
  font-size:12px;
  color:var(--red);
  border-bottom:1px solid #b88676;
  padding:10px 0
}
.open-invitation svg {
  width:15px;
  transition:transform .3s
}
.open-invitation:hover svg {
  transform:translateY(4px)
}
.hero-art {
  height:600px;
  position:relative;
  isolation:auto;
  margin-left:0
}

.art-ring {
  position:absolute;
  border:1px solid #cfc5ad;
  border-radius:50%;
  height:480px;
  width:350px;
  top:50px;
  left:20%;
  transform:rotate(24deg)
}
.art-ring::after {
  content:"";
  position:absolute;
  inset:10px -13px;
  border:1px solid #d6c9b3;
  border-radius:50%
}
.art-note {
  position:absolute;
  top:33px;
  left:52%;
  font:italic 23px/1.45 var(--serif);
  color:var(--muted);
  transform:rotate(5deg)
}
.art-signature {
  position:absolute;
  bottom:30px;
  right:12%;
  font:italic 21px var(--serif);
  letter-spacing:.03em;
  color:var(--red)
}
.hero-footnote {
  padding:20px 0 27px;
  border-top:1px solid var(--line);
  font-size:12px
}
.hero-footnote>span:last-child {
  display:flex;
  gap:12px;
  align-items:center
}
.hero-footnote svg {
  width:13px;
  height:13px
}
.section-pad {
  padding:100px max(6%,calc((100vw - 1200px)/2))
}
.invitation-section {
  position:relative;
  overflow:hidden;
  background:#f0ebe1;
  padding-top:90px;
  padding-bottom:90px
}
.invitation-paper {
  position:relative;
  max-width:780px;
  margin:auto;
  background:var(--paper);
  padding:65px 65px 55px;
  text-align:center;
  box-shadow:0 15px 50px #4e38200c
}
.paper-corner {
  position:absolute;
  width:42px;
  height:42px;
  border-color:#bcb196;
  border-style:solid
}
.corner-tl {
  left:18px;
  top:18px;
  border-width:1px 0 0 1px
}
.corner-br {
  right:18px;
  bottom:18px;
  border-width:0 1px 1px 0
}
.formal-intro {
  font-size:12px;
  letter-spacing:.04em;
  text-transform:none;
  line-height:2.1
}
.full-names {
  margin:28px 0 30px;
  font:italic 46px/1.15 var(--serif);
  color:var(--red)
}
.full-names>span {
  font-size:28px;
  color:#938366;
  display:block;
  padding:8px
}
.family-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin:30px 0 35px
}
.family-grid .family-title {
  font:italic 21px var(--serif);
  margin-bottom:12px;
  color:var(--muted)
}
.family-grid p:not(.family-title) {
  font-size:12px;
  line-height:2
}
.small-ornament {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:17px;
  color:var(--red);
  margin:0 auto 28px
}
.small-ornament>span {
  height:1px;
  width:45px;
  background:#b9a48b
}
.small-ornament svg {
  height:17px;
  width:17px
}
.invitation-paper h2 {
  font-size:40px
}
.invitation-message {
  max-width:470px;
  margin:25px auto;
  font-size:12px;
  line-height:2
}
.handwritten {
  font:italic 22px var(--serif);
  color:var(--red);
  margin-top:26px
}
.date-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  margin-bottom:65px
}
.date-heading>p {
  font-size:12px;
  color:var(--muted);
  padding-bottom:8px
}
.date-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10%;
  align-items:center
}
.calendar {
  max-width:460px
}
.calendar-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding-bottom:17px;
  font:400 32px var(--serif)
}
.calendar-heading>span:last-child {
  font-size:24px;
  color:var(--muted)
}
.weekdays,.calendar-days {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  text-align:center
}
.weekdays {
  padding:18px 0 8px;
  font-size:12px;
  color:var(--muted)
}
.calendar-days span {
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  font:400 19px var(--serif);
  position:relative
}
.calendar-days .outside {
  color:#756e5e
}
.calendar-days .wedding-day {
  color:var(--red);
  font-weight:600;
  font-size:25px
}
.wedding-day::before {
  content:"";
  position:absolute;
  inset:3px 5px;
  border:1px solid var(--red);
  border-radius:50%;
  transform:rotate(-14deg)
}
.wedding-day::after {
  content:"";
  position:absolute;
  inset:6px 3px;
  border:1px solid #a5342d44;
  border-radius:50%;
  transform:rotate(14deg)
}
.calendar-note {
  text-align:center;
  font:italic 17px var(--serif);
  margin-top:22px;
  color:var(--muted)
}
.event-summary {
  text-align:center
}
.event-weekday {
  font-size:12px
}
.event-time {
  font:400 clamp(75px,8vw,110px)/1 var(--serif);
  letter-spacing:-.04em;
  color:var(--red);
  margin:17px 0
}
.event-time>span {
  display:inline-block;
  transform:translateY(-6px);
  margin:0 4px;
  font-size:.7em
}
.event-description {
  font:400 25px var(--serif);
  margin-bottom:8px
}
.event-venue {
  font-size:12px;
  color:var(--muted);
  margin-bottom:30px
}
.button {
  display:inline-flex;
  gap:16px;
  align-items:center;
  justify-content:center;
  padding:15px 23px;
  min-height:50px;
  font-size:12px;
  letter-spacing:.015em;
  border:1px solid transparent;
  border-radius:0;
  transition:background .3s,color .3s,transform .3s
}
.button:hover {
  transform:translateY(-2px)
}
.button-red {
  background:var(--red);
  color:var(--paper)
}
.button-red:hover {
  background:var(--red-dark)
}
.button svg {
  width:17px;
  height:17px
}
.calendar-help {
  font-size:12px;
  color:var(--muted);
  margin-top:12px
}
.countdown-wrap {
  border-top:1px solid var(--line);
  margin-top:70px;
  padding-top:35px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px
}
.countdown-wrap>p {
  font:italic 24px var(--serif);
  max-width:250px;
  line-height:1.35;
  color:var(--muted)
}
.countdown {
  display:flex;
  align-items:flex-start;
  gap:26px;
  text-align:center
}
.countdown>div {
  min-width:57px
}
.countdown span {
  font:400 48px/1 var(--serif);
  color:var(--red);
  font-variant-numeric:tabular-nums
}
.countdown small {
  display:block;
  font-size:12px;
  letter-spacing:.04em;
  margin-top:10px;
  color:var(--muted)
}
.countdown b {
  font:400 30px var(--serif);
  color:#82745e
}
.venue-section {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:10%;
  background:#eee9df;
  align-items:center
}
.venue-visual {
  height:430px;
  border:1px solid #cbbfa8;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:30px;
  background:var(--paper)
}
.venue-initials {
  font:400 52px var(--serif);
  color:var(--red)
}
.venue-initials>span {
  font-style:italic;
  font-size:30px;
  color:#9a876b
}

.venue-visual>p {
  position:relative;
  z-index:1;
  font:400 30px/1.15 var(--serif)
}
.venue-visual>p>em {
  color:var(--red)
}
.venue-copy h2 {
  margin-bottom:32px
}
.venue-title {
  font-weight:500;
  font-size:16px;
  margin-bottom:8px
}
address {
  font-style:normal;
  font-size:12px;
  line-height:2;
  color:var(--muted)
}
.venue-detail {
  font-size:12px;
  margin-top:20px;
  margin-bottom:30px
}
.button-outline {
  border-color:#a5947c;
  color:var(--ink)
}
.button-outline:hover {
  background:var(--red);
  border-color:var(--red);
  color:var(--paper)
}
.closing {
  text-align:center;
  padding-top:90px;
  padding-bottom:70px
}
.closing h2 {
  font-size:clamp(33px,4vw,51px)
}
.closing>p:not(.closing-names) {
  font-size:12px;
  color:var(--muted);
  margin-top:25px;
  line-height:2
}
.share-link {
  display:inline-flex;
  align-items:center;
  gap:12px;
  background:none;
  border:0;
  border-bottom:1px solid #b49b85;
  color:var(--red);
  font-size:12px;
  padding:8px 0;
  margin-top:25px
}
.share-link svg {
  width:16px;
  height:16px
}
.closing-names {
  font:italic 32px var(--serif);
  color:var(--red);
  margin-top:50px
}
.closing-names>span {
  font-size:24px;
  margin:0 12px;
  color:#9b8d70
}
footer {
  border-top:1px solid var(--line);
  margin:0 5.5%;
  padding:25px 0;
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted)
}
footer a {
  color:var(--red)
}
footer a span {
  margin-left:12px
}
.skip-link {
  position:fixed;
  left:20px;
  top:-100px;
  background:var(--red);
  color:white;
  padding:12px 20px;
  z-index:100
}
.skip-link:focus {
  top:10px
}
#petals {
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:5
}
.petal {
  position:absolute;
  top:-30px;
  width:10px;
  height:16px;
  background:#dc9d92;
  border-radius:85% 15% 75% 25%;
  opacity:0;
  animation:fall var(--duration) linear infinite;
  animation-delay:var(--delay);
  left:var(--left)
}
.toast {
  position:fixed;
  left:50%;
  bottom:30px;
  transform:translate(-50%,15px);
  background:var(--ink);
  color:var(--paper);
  padding:13px 22px;
  max-width:calc(100% - 100px);
  width:max-content;
  font-size:12px;
  z-index:20;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s,transform .3s
}
.toast.visible {
  transform:translate(-50%,0);
  opacity:1
}
.hero-copy {
  animation:paper-reveal 1.3s var(--ease) both
}
.hero-art {
  animation:art-reveal 1.8s var(--ease) both
}
.invitation-paper.opened {
  animation:invitation-open 1.2s var(--ease)
}
@keyframes paper-reveal {
  from {
    clip-path:inset(0 0 100% 0)
  }
  to {
    clip-path:inset(0)
  }
  
}
@keyframes art-reveal {
  from {
    opacity:.3;
    transform:translateY(25px) rotate(3deg)
  }
  to {
    opacity:1;
    transform:translateY(0) rotate(0)
  }
  
}
@keyframes invitation-open {
  from {
    clip-path:inset(0 0 80% 0);
    transform:translateY(12px)
  }
  to {
    clip-path:inset(0);
    transform:translateY(0)
  }
  
}
@keyframes fall {
  0% {
    transform:translate3d(0,-30px,0) rotate(0);
    opacity:0
  }
  8% {
    opacity:.55
  }
  88% {
    opacity:.4
  }
  100% {
    transform:translate3d(110px,110vh,0) rotate(430deg);
    opacity:0
  }
  
}

@media(min-width:1500px) {
  .hero-composition {
    min-height:730px
  }
  .hero-art {
    height:650px
  }
  
}

@media(max-width:1000px) {
  .hero-composition {
    min-height:570px
  }
  .hero-art {
    height:500px;
    margin-left:0
  }
  .art-ring {
    height:390px;
    width:270px
  }
  .hero-bottom {
    gap:25px
  }
  h1 {
    font-size:91px
  }
  .art-note {
    left:45%;
    font-size:20px
  }
  .section-pad {
    padding:75px 6%
  }
  .date-layout {
    gap:6%
  }
  .venue-section {
    gap:7%
  }
  .venue-visual {
    height:400px
  }
  .countdown {
    gap:20px
  }
  
}

@media(max-width:700px) {
  html {
    scroll-padding-top:20px
  }
  .site-header {
    height:80px;
    margin:0 6%;
    gap:10px
  }
  .monogram {
    font-size:25px;
    padding:4px 10px
  }
  nav {
    gap:18px;
    font-size:12px
  }
  .header-date {
    display:none
  }
  .hero {
    padding:23px 6% 0
  }
  .hero-topline {
    font-size:12px;
    letter-spacing:.04em
  }
  .hero-topline>span:last-child {
    display:none
  }
  .hero-composition {
    display:block;
    min-height:0
  }
  .hero-copy {
    padding:40px 0 0;
    z-index:2
  }
  .invitation-line {
    font-size:21px;
    margin-bottom:26px
  }
  h1 {
    font-size:clamp(72px,15.3vw,105px);
    width:max-content
  }
  h1 .name-and {
    font-size:.58em;
    margin-top:7px;
    margin-bottom:7px;
    margin-left:40%
  }
  h1 .bride-name {
    margin-left:25px
  }
  .hero-bottom {
    margin-top:35px;
    justify-content:space-between;
    gap:16px
  }
  .hero-date {
    font-size:22px
  }
  .hero-bottom p:first-child {
    font-size:12px
  }
  .open-invitation {
    font-size:12px;
    gap:10px
  }
  .hero-art {
    height:245px;
    margin:0;
    z-index:0
  }
  
  .art-ring {
    height:230px;
    width:170px;
    left:35%;
    top:5px;
    transform:rotate(62deg);
    opacity:.6
  }
  .art-note {
    top:22px;
    left:auto;
    right:4%;
    font-size:17px
  }
  .art-signature {
    bottom:18px;
    right:5%;
    font-size:17px
  }
  .hero-footnote {
    font-size:12px;
    letter-spacing:.04em;
    padding:16px 0 21px
  }
  .hero-footnote>span:last-child {
    gap:5px
  }
  .hero-footnote svg {
    width:10px
  }
  .section-pad {
    padding:65px 6%
  }
  .invitation-section {
    padding:45px 5%
  }
  .invitation-paper {
    padding:45px 23px 40px
  }
  .formal-intro {
    font-size:12px;
    letter-spacing:.04em
  }
  .full-names {
    font-size:39px;
    margin:26px -10px
  }
  .full-names>span {
    font-size:24px
  }
  .family-grid {
    gap:20px
  }
  .family-grid p:not(.family-title) {
    font-size:12px
  }
  .family-grid .family-title {
    font-size:19px
  }
  .invitation-paper h2 {
    font-size:33px
  }
  .invitation-message {
    font-size:12px;
    margin-top:20px
  }
  .handwritten {
    font-size:20px
  }
  .date-heading {
    display:block;
    margin-bottom:36px
  }
  .date-heading h2 {
    font-size:43px
  }
  .date-heading>p {
    margin-top:20px;
    font-size:12px
  }
  .date-layout {
    grid-template-columns:1fr;
    gap:45px
  }
  .calendar {
    width:100%;
    max-width:420px;
    margin:auto
  }
  .calendar-heading {
    font-size:28px
  }
  .event-summary {
    border-top:1px solid var(--line);
    padding-top:35px
  }
  .event-time {
    font-size:95px
  }
  .countdown-wrap {
    display:block;
    text-align:center;
    margin-top:40px;
    padding-top:30px
  }
  .countdown-wrap>p {
    max-width:none;
    font-size:21px;
    margin-bottom:25px
  }
  .countdown {
    justify-content:center;
    gap:15px
  }
  .countdown>div {
    min-width:45px
  }
  .countdown span {
    font-size:41px
  }
  .countdown small {
    font-size:12px
  }
  .countdown b {
    font-size:24px
  }
  .venue-section {
    grid-template-columns:1fr;
    gap:36px
  }
  .venue-visual {
    height:330px;
    max-width:430px;
    width:100%;
    margin:auto;
    padding:23px
  }
  .venue-initials {
    font-size:43px
  }
  
  .venue-copy h2 {
    font-size:47px;
    margin-bottom:23px
  }
  .venue-copy {
    padding:0 5%
  }
  .venue-title {
    font-size:16px
  }
  .venue-copy .button {
    width:100%
  }
  .closing {
    padding-top:65px;
    padding-bottom:50px
  }
  .closing h2 {
    font-size:35px
  }
  .closing>p:not(.closing-names) {
    font-size:12px
  }
  .closing-names {
    font-size:30px;
    margin-top:36px
  }
  footer {
    flex-wrap:wrap;
    justify-content:space-between;
    margin:0 6%;
    padding:20px 0 75px;
    font-size:12px
  }
  footer>span:last-child {
    width:100%;
    text-align:center;
    padding-top:5px
  }
.toast {
    font-size:12px;
    bottom:65px;
    max-width:88%;
    text-align:center
  }
  
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
  #petals {
    display:none!important
  }
  
}


/* Body copy stays comfortable to read;
 compact labels retain the paper invitation rhythm. */
.invitation-message,.invitation-paper .family-grid p:not(.family-title),.event-weekday,.event-venue,.date-heading>p,.venue-detail,address,.closing>p:not(.closing-names) {
  font-size:14px
}
.button,.share-link {
  font-size:13px
}
.countdown small,footer {
  letter-spacing:.04em
}
nav a {
  min-height:40px;
  display:inline-flex;
  align-items:center
}
.button:active {
  transform:translateY(0)
}

@media(max-width:700px) {
  .hero-footnote {
    display:block
  }
  .hero-footnote>span {
    display:block
  }
  .hero-footnote>span:last-child {
    margin-top:10px;
    display:flex
  }
  .hero-topline {
    letter-spacing:.04em
  }
  .header-date {
    display:none
  }
  .full-names {
    font-size:36px
  }
  .family-grid {
    gap:14px
  }
  .invitation-paper .family-grid p:not(.family-title) {
    font-size:12px
  }
  .hero-bottom {
    gap:12px
  }
  .open-invitation {
    font-size:12px
  }
  .hero-bottom .hero-date {
    font-size:22px
  }
  .hero-date span {
    padding:0 2px
  }
  footer>span:first-child {
    max-width:60%
  }
  
}


@media(max-width:700px) {
  
  .art-note {
    top:16px;
    left:8%;
    right:auto;
    font-size:17px
  }
  .art-signature {
    bottom:0
  }
  
}


/* Restored native-resolution artwork: show the whole branch with its alpha intact. */
.hero-art img {
  position: absolute;
  inset: 15px 0 35px;
  width: 100%;
  max-width: 100%;
  height: calc(100% - 50px);
  object-fit: contain;
  object-position: center;
  z-index: 1;
}
.venue-flower {
  position: absolute;
  inset: 10px 10px 75px;
  background: url('assets/cay-dao.webp') center / contain no-repeat;
}
@media (max-width: 700px) {
  .hero-art { height: 390px; }
  .hero-art img {
    inset: 10px 0 30px;
    height: calc(100% - 40px);
  }
  .venue-flower { inset: 10px 10px 75px; }
}

/* The fuller tree fills the illustration area; the trunk anchors the canopy. */
.hero-art img { object-position: right center; }
.art-note { display: none; }
.art-signature { bottom: 0; right: 5%; }
.venue-initials { position: relative; z-index: 2; width: max-content; background: var(--paper); padding: 0 8px; }
@media (max-width: 700px) {
  .hero-art { margin-top: 20px; }
  .hero-art img { object-position: center; }
}

/* The hero is a camera-like crop into the canopy, with type in its natural clearing. */
.hero {
  position: relative;
  padding: 0;
  min-height: 760px;
  isolation: isolate;
}
.hero-composition {
  position: static;
  display: flex;
  align-items: center;
  min-height: 760px;
  max-width: none;
  margin: 0;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: -1;
  animation: none;
}
.hero-art img {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.hero-copy {
  width: min(510px, 42%);
  margin-left: 9%;
  padding: 190px 0 140px;
}
.hero h1 { font-size: clamp(76px, 7vw, 104px); }
.hero h1 .bride-name { margin-left: 20px; }
.hero-bottom { gap: 25px; margin-top: 36px; }
.art-signature { display: none; }
.hero-footnote {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  bottom: 0;
  z-index: 2;
  border-top: 0;
  padding: 16px 0;
}
@media (min-width: 1600px) {
  .hero-copy { margin-left: 12%; }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .hero-copy { margin-left: 6%; width: 49%; }
  .hero-art img { object-position: 32% center; }
  .hero h1 { font-size: 80px; }
  .hero-bottom { flex-wrap: wrap; gap: 15px; }
}
@media (max-width: 700px) {
  .hero, .hero-composition { min-height: 760px; }
  .hero-copy { width: 88%; margin: 0 auto; padding: 210px 0 140px; }
  .hero-art { height: 100%; margin: 0; }
  .hero-art img { object-position: 20% center; }
  .hero h1 { font-size: clamp(62px, 17vw, 85px); }
  .hero .invitation-line { font-size: 20px; margin-bottom: 24px; }
  .hero h1 .bride-name { margin-left: 20px; }
  .hero-bottom { margin-top: 28px; gap: 12px; }
  .hero-bottom .hero-date { font-size: 21px; }
  .hero-footnote { font-size: 11px; }
}

@media (min-width: 701px) {
  .hero-copy { padding-top: 150px; padding-bottom: 180px; }
}
.hero-bottom {
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  margin-left: -12px;
  background: var(--paper);
}

/* Preserve the names' placement after removing the overlaid introductory line. */
@media (min-width: 701px) { .hero-copy { padding-top: 206px; } }
@media (max-width: 700px) { .hero-copy { padding-top: 258px; } }

/* Open directly on the illustration, on the original ivory paper ground. */
.hero { background-color: var(--paper); }

/* The first fold is exactly the visible viewport, including mobile browser chrome. */
.hero {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
.hero-composition {
  height: 100%;
  min-height: 0;
}
.hero-copy {
  padding: 0;
  max-height: 100%;
}
.hero h1 {
  font-size: clamp(58px, min(7vw, 12dvh), 104px);
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(48px, min(17vw, 11dvh), 85px); }
  .hero-bottom { flex-wrap: wrap; gap: 10px; padding: 8px 10px; margin-left: -10px; }
  .hero-bottom .hero-date { font-size: clamp(18px, 5.4vw, 21px); }
  .hero .open-invitation { font-size: 11px; gap: 7px; }
}
@media (max-height: 480px) {
  .hero h1 { font-size: clamp(36px, 12dvh, 58px); }
  .hero h1 .name-and { margin-top: 4px; margin-bottom: 4px; }
  .hero-bottom { margin-top: 16px; }
}

/* Real paper fibre: multiply the material into the ivory surfaces. */
body, .invitation-section, .invitation-paper, .date-section,
.venue-section, .closing, footer, .hero-bottom, .map-caption {
  background-image: url('assets/paper-texture.webp');
  background-size: 620px 620px;
  background-blend-mode: multiply;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('assets/paper-texture.webp') 0 0 / 620px 620px repeat;
  mix-blend-mode: multiply;
  opacity: .75;
}
.venue-visual { padding: 0; }
.venue-visual iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}
.map-caption {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  background-color: var(--paper);
  font-size: 12px;
}
.map-caption a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.map-caption svg { width: 14px; height: 14px; }
@media (max-width: 700px) {
  .map-caption { gap: 8px; padding: 12px; }
}

/* User-selected Corinthia calligraphy for the hero names. */
.hero h1 {
  font-family: 'Corinthia', var(--serif);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  line-height: 1.12;
  letter-spacing: 0;
  font-kerning: normal;
}
.hero h1 > span { padding-inline: .06em; }
.hero h1 .name-and {
  font-family: var(--serif);
  padding: 0;
  font-size: .48em;
  line-height: 1;
  margin-block: 0;
}
