@font-face {
  font-family: "Song Myung";
  src: url("song-myung.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4e8d5;
  --ink: #24382e;
  --gold: #866539;
  --line: #a68b66;
  --gutter: clamp(1.4rem, 3.4vw, 3.8rem);
  --korean-serif: "Song Myung", "Songti SC", "AppleMyungjo", Batang, serif;
  --latin-serif: "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--paper) url("hanji.webp") repeat;
  font: 1rem/1.5 var(--korean-serif);
}

a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.masthead,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
}

.masthead {
  padding-block: .8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  width: fit-content;
  text-decoration: none;
}

.wordmark,
.site-footer,
.invitation-brand {
  font-family: var(--latin-serif);
}

.wordmark {
  display: block;
  width: fit-content;
  font-size: clamp(2.2rem, 4.85vw, 4.4rem);
  font-weight: 700;
  letter-spacing: .095em;
  line-height: .95;
  transform: scaleX(.79);
  transform-origin: left center;
}

.brand-name,
.opening {
  font-size: clamp(1rem, 1.8vw, 1.65rem);
  letter-spacing: .07em;
}

.brand-name { margin-top: .4rem; }
.opening { white-space: nowrap; }

.lobby {
  display: grid;
  grid-template:
    "intro photo" 1fr
    "invitation photo" 1fr
    / minmax(0, 2fr) minmax(0, 5fr);
  align-content: center;
  width: min(100%, 112rem);
  margin: auto;
  padding-block: clamp(1rem, 1.65vw, 1.8rem);
}

.introduction {
  grid-area: intro;
  align-self: end;
  padding: 0 clamp(1rem, 1.3vw, 1.6rem) 0 var(--gutter);
}

.introduction h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -.08em;
  line-height: 1.09;
  text-shadow: .015em 0 currentColor, -.008em .006em currentColor;
}

.introduction h1 span {
  display: block;
  white-space: nowrap;
  transform: scaleX(.94);
  transform-origin: left center;
}

.introduction p {
  margin: clamp(1.1rem, 2.4vw, 2.7rem) 0 0;
  font-size: clamp(1.15rem, 2.15vw, 2rem);
  line-height: 1.5;
  letter-spacing: -.035em;
}

.lobby-image {
  grid-area: photo;
  display: block;
  width: 100%;
  height: auto;
}

.key-tag {
  --tag-shape: polygon(10% 0, 90% 0, 100% 28%, 100% 72%, 90% 100%, 10% 100%, 0 72%, 0 28%);
  position: relative;
  isolation: isolate;
  grid-area: invitation;
  align-self: start;
  justify-self: start;
  min-height: 3rem;
  margin: clamp(1.5rem, 3.4vw, 3.5rem) .8rem 0 var(--gutter);
  padding: .53rem clamp(1.7rem, 3.5vw, 3.5rem);
  border: 0;
  background: transparent;
  font-size: clamp(1.15rem, 2.3vw, 2.15rem);
  letter-spacing: -.025em;
  white-space: nowrap;
  cursor: pointer;
}

.key-tag::before,
.key-tag::after {
  position: absolute;
  z-index: -1;
  clip-path: var(--tag-shape);
  content: "";
}

.key-tag::before {
  inset: 0;
  background: var(--gold);
}

.key-tag::after {
  inset: 2px;
  background: var(--paper) url("hanji.webp") repeat;
}

.key-tag:hover::after { background: #ecdbbe; }

.key-tag span::before,
.key-tag span::after {
  position: absolute;
  top: 50%;
  width: .34em;
  height: .34em;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
  content: "";
}

.key-tag span::before { left: .52em; }
.key-tag span::after { right: .52em; }

.site-footer {
  padding-block: .9rem;
  border-top: 1px solid var(--line);
  font-size: clamp(.95rem, 1.8vw, 1.55rem);
}

.site-footer p {
  margin: 0;
  letter-spacing: .11em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem clamp(.8rem, 3vw, 2.8rem);
}

.site-footer a {
  padding-block: .25rem;
  text-decoration: none;
  text-underline-offset: .2em;
}

.site-footer a:hover { text-decoration: underline; }

.invitation {
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1.6rem, 5vw, 2.7rem);
  border: 4px double var(--gold);
  background: var(--paper) url("hanji.webp") repeat;
  color: var(--ink);
  text-align: center;
}

.invitation::backdrop { background: rgb(24 35 29 / 68%); }
.invitation p { margin: 0 0 1rem; }
.invitation .invitation-brand { letter-spacing: .16em; }
.invitation h2 { margin: 0 0 1rem; font-size: 2rem; font-weight: 400; }
.invitation .signature { margin-bottom: 1.5rem; }

.invitation button {
  min-height: 44px;
  padding: .45rem 1.15rem;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
}

@media (max-width: 740px) {
  .lobby {
    grid-template:
      "intro" auto
      "photo" auto
      "invitation" auto / minmax(0, 1fr);
    gap: 1.35rem;
    padding: 1.6rem var(--gutter);
  }

  .introduction { padding: 0; }
  .introduction h1 { font-size: clamp(2.5rem, 9vw, 4.1rem); }
  .introduction p { margin-top: .8rem; }
  .key-tag { margin: 0; }
  .site-footer { flex-wrap: wrap; }
}
