:root {
  color-scheme: light;
  --ink: #101e42;
  --body: #344657;
  --teal: #006663;
  --mint: #63bcb1;
  --paper: #fffdf8;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: #eff8fa;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { line-height: 1.85; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #a94910; outline-offset: 5px; }
.skip { position: absolute; z-index: 5; top: 0; left: 1rem; transform: translateY(-150%); padding: .6rem 1rem; background: white; }
.skip:focus { transform: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 55% 45%;
  grid-template-rows: 1fr auto;
  min-height: 27rem;
  aspect-ratio: 1672 / 941;
  isolation: isolate;
  background: #e7f4fc;
}
.hero-art { position: absolute; z-index: -1; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { padding: 4.5vw 0 0 4.6vw; }
h1, h2, h3, .button { font-weight: 750; }
.hero h1 {
  font-size: clamp(1.9rem, 4.85vw, 6.7rem);
  letter-spacing: -.055em;
  line-height: 1.4;
  text-shadow: 0 1px 10px #f4faff;
}
.hero h1::after {
  content: ""; display: block; width: 57%; height: .12em; margin: .14em 0 .28em .13em;
  background: var(--mint); border-radius: 70% 60% 70% 35%; transform: rotate(-2deg);
}
.hero-copy p { font-size: clamp(1rem, 1.95vw, 2.5rem); font-weight: 650; line-height: 1.5; padding-left: .22em; }
.action { display: grid; gap: .45rem; justify-items: center; width: fit-content; }
.action p { font-size: clamp(.8rem, 1.1vw, 1.1rem); font-weight: 700; letter-spacing: .07em; }
.action p::before, .action p::after { content: ""; display: inline-block; width: 18px; height: 2px; margin: 0 .65em; vertical-align: middle; background: var(--mint); }
.hero-action { grid-row: 2; margin: 0 0 4.8vw 4.9vw; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 1em; padding: .66em 1.55em;
  min-height: 48px; border-radius: 100px; line-height: 1.45; letter-spacing: .035em;
  color: white; background: linear-gradient(165deg, #00817c, #005b59);
  box-shadow: inset 0 1px 0 #8bcbc4, 0 3px 0 #004d4e, 0 7px 16px #18485222;
  text-decoration: none; font-size: clamp(1rem, 1.48vw, 1.6rem); transition: transform .18s, box-shadow .18s;
}
.hero-action .button { min-width: 35vw; font-size: clamp(1.05rem, 1.95vw, 2rem); }
.button span { line-height: .8; font-size: 1.5em; }
@media (hover: hover) { .button:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #8bcbc4, 0 4px 0 #004d4e, 0 9px 19px #18485237; } }
.button:active { transform: translateY(2px); }

.desk { padding: clamp(4rem, 7vw, 7.5rem) 5vw 0; background: linear-gradient(#e8f4fb, #f7fbf9 33%, #fffdf8 82%); }
.story { max-width: 1100px; margin: 0 auto clamp(2.3rem, 4vw, 4.6rem); display: grid; grid-template-columns: 1.04fr 1fr; gap: 5%; align-items: center; }
.story h2, .invite-copy h2 { font-size: clamp(1.45rem, 2.65vw, 2.65rem); letter-spacing: -.05em; line-height: 1.65; }
.story-text, .bio, .invite-copy > p { color: var(--body); font-size: clamp(1rem, 1.15vw, 1.15rem); }
.story-text p + p { color: var(--teal); margin-top: .8em; font-weight: 650; }
.notebook {
  position: relative; display: grid; align-content: center; gap: clamp(.8rem, 2vw, 2rem);
  min-height: 285px; aspect-ratio: 2 / 1; max-width: 1040px; margin: auto;
  background: #f8ecd8 url(images/notebook.webp) center / 100% 100% no-repeat;
  border-radius: 10px; box-shadow: 0 10px 28px #463a2112;
}
.notebook h3 { text-align: center; font-size: clamp(1rem, 1.7vw, 1.55rem); letter-spacing: .04em; }
.spread { display: grid; grid-template-columns: 1fr 1fr; padding: 0 11%; text-align: center; }
.spread > div { padding: .5rem; }
.spread p { color: #426662; font-size: clamp(.78rem, 1.14vw, 1.05rem); font-weight: 650; }
.spread strong { display: block; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 600; font-size: clamp(1.4rem, 2.65vw, 2.4rem); line-height: 1.55; margin-top: .5em; }
.profile { display: grid; grid-template-columns: auto minmax(0, 39rem); justify-content: center; align-items: center; gap: 6vw; padding: clamp(4rem, 7vw, 7rem) 6vw; background: linear-gradient(var(--paper),#f4faf8); }
.nameplate { display: flex; gap: 1rem; align-items: center; padding: 1.3rem 1.6rem; border: 1px solid #d4e1dc; border-bottom: 4px solid #bdcfc9; background: #fbfffe; border-radius: 5px; box-shadow: 0 6px 15px #38554d0c; }
.nameplate img { width: clamp(60px, 6vw, 86px); height: auto; border-radius: 50%; }
.nameplate h2 { font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.45; }
.nameplate h2 span { display: block; font-size: .57em; font-weight: 550; letter-spacing: .14em; }
.milestone { margin: .85em 0 .45em; }
.milestone strong { color: var(--teal); font-size: 1.28em; padding: 0 .12em; }
.threads, footer a { display: inline-flex; gap: .6em; align-items: center; min-height: 44px; font-weight: 650; }
.threads { color: var(--teal); }
.invitation { display: grid; grid-template-columns: 53% 47%; background: #e8f3ef; align-items: stretch; }
.seat { width: 100%; height: 100%; object-fit: cover; min-height: 350px; }
.invite-copy { padding: clamp(2rem, 4.5vw, 5.5rem); align-self: center; }
.invite-copy h2 { font-size: clamp(2rem, 3.2vw, 3.5rem); line-height: 1.45; margin-bottom: .5em; }
.invite-copy > p + p { margin-top: .55em; }
.invite-copy .action { margin-top: 1.7rem; }
footer { display: flex; align-items: center; justify-content: space-between; padding: 1rem 6vw; background: #d9ebe7; font-size: .83rem; }
footer > span { font-weight: 700; }
.narrow { display: none; }
@media (min-width: 681px) and (max-width: 950px) {
  .story { grid-template-columns: 1fr; gap: 1rem; }
  .profile { gap: 3vw; }
  .wide { display: none; }
}
@media (max-width: 680px) {
  .hero { aspect-ratio: 852 / 1846; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; }
  .hero-copy { padding: 4.8vw 2vw 0; }
  .hero h1 { font-size: clamp(1.55rem, 8.35vw, 3.4rem); line-height: 1.37; letter-spacing: -.055em; }
  .hero h1::after { margin: .17em auto .32em; width: 72%; }
  .hero-copy p { font-size: clamp(.93rem, 3.95vw, 1.45rem); line-height: 1.55; padding: 0; }
  .hero-action { margin: 0 0 4.8vw; width: 88%; }
  .hero-action .button { width: 100%; font-size: clamp(1.1rem, 5vw, 1.6rem); }
  .story { display: block; margin-bottom: 1.8rem; }
  .desk { padding: 3.4rem 6vw 0; }
  .story h2 { font-size: clamp(1.24rem, 5.2vw, 1.8rem); }
  .story-text { margin-top: 1.1rem; }
  .wide { display: none; }
  .notebook {
    aspect-ratio: auto; min-height: 0; padding: 1.65rem 1.45rem 1.85rem 1.85rem; gap: .7rem;
    background: linear-gradient(90deg, #e2ceb2, #f3e6cf 4%, #fffaf0 8%, #fbf2e2);
    border: 1px solid #e1d1b5; border-left: 6px solid #63998e; border-bottom: 4px double #cfbb98;
  }
  .notebook::after { content: ""; width: 12px; height: 20px; position: absolute; bottom: -13px; right: 17%; background: var(--teal); clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); }
  .notebook h3 { text-align: left; }
  .spread { display: block; padding: 0; text-align: left; }
  .spread > div { padding: .75rem 0; }
  .spread > div + div { border-top: 1px solid #d9cbb5; }
  .spread strong { font-size: clamp(1.12rem, 4.5vw, 1.5rem); line-height: 1.5; margin-top: .22em; }
  .spread br { display: none; }
  .profile { display: block; padding: 3.5rem 7vw; }
  .nameplate { width: fit-content; padding: .65rem 1.1rem; margin-bottom: 1.35rem; }
  .narrow { display: inline; }
  .invitation { display: block; }
  .seat { min-height: 0; height: auto; }
  .invite-copy { padding: 1.8rem 7vw 3rem; }
  .invite-copy h2 br { display: none; }
  .invite-copy h2 { font-size: clamp(1.55rem, 6.2vw, 2.4rem); }
  .invite-copy .action { width: 100%; }
  .invite-copy .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
