* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  color: #f4f1ea;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  text-align: center;
}

/* TOUCH START */

.touch-start {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #000;
  color: #f4f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.touch-start.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.touch-start p {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  letter-spacing: -1px;
}

.touch-start span {
  color: #c7b7aa;
  font-size: 11px;
  letter-spacing: 4px;
}

/* SOUND BUTTON */

.music-button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2500;

  width: 42px;
  height: 42px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.45);
  color: #f4f1ea;

  border: 1px solid rgba(244,241,234,0.4);
  border-radius: 50%;

  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0;

  backdrop-filter: blur(8px);
}

/* COVER */

.cover-section {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(18%) contrast(108%) brightness(78%);
}

.cover-dim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
  z-index: 1;
}

.cover-top {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 3px;
  line-height: 1.5;
  font-weight: 700;
}

.cover-top p,
.cover-bottom p,
.cover-names p {
  margin: 0;
}

.cover-title {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  line-height: 0.82;
  letter-spacing: -4px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.65);
}

.cover-names {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 148px;
  z-index: 2;
  font-size: 18px;
  letter-spacing: 3px;
  font-weight: 700;
}

.cover-bottom {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 42px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 3px;
  line-height: 1.8;
  font-weight: 700;
}

/* COMMON */

.section {
  padding: 82px 24px;
  background: #111;
  color: #f4f1ea;
}

.dark {
  background: #000;
}

.label {
  margin: 0 0 20px;
  color: #c7b7aa;
  font-size: 10px;
  letter-spacing: 4px;
  font-weight: 700;
}

h2 {
  margin: 0 0 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -1px;
}

.text {
  margin: 0 auto;
  max-width: 340px;
  font-size: 16px;
  line-height: 2;
}

.small-text {
  margin-bottom: 26px;
}

/* FAMILY */

.family {
  margin-top: 42px;
  color: #c7b7aa;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 1px;
}

.family strong {
  display: block;
  margin-bottom: 6px;
  color: #f4f1ea;
  font-size: 18px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 2px;
}

/* D-DAY */

.date-text {
  color: #c7b7aa;
  letter-spacing: 2px;
  font-size: 13px;
}

.dday-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 390px;
  margin: 34px auto 24px;
}

.dday-box div {
  border: 1px solid #3a3a3a;
  padding: 18px 6px;
}

.dday-box strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: #f4f1ea;
}

.dday-box span {
  display: block;
  margin-top: 6px;
  color: #c7b7aa;
  font-size: 11px;
  letter-spacing: 1px;
}

.dday-text {
  font-size: 14px;
  letter-spacing: 1px;
}

#dday {
  color: #c7b7aa;
  font-weight: 700;
}

/* GALLERY */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 430px;
  margin: 0 auto;
}

.photo-grid img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  display: block;
  filter: contrast(103%);
}

/* LOCATION */

.info-box {
  margin-bottom: 28px;
  line-height: 1.9;
}

.info-box p {
  margin: 6px 0;
}

.main-info {
  color: #fff;
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 700;
}

.map-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 420px;
  margin: 14px auto 0;
}

.map-buttons button {
  font-size: 11px;
  padding: 14px 4px;
}

/* BUTTON / FORM */

button {
  cursor: pointer;
  font-family: inherit;
}

.line-button,
.submit-button,
.map-buttons button {
  width: 100%;
  max-width: 420px;
  padding: 16px;
  background: transparent;
  border: 1px solid #f4f1ea;
  color: #f4f1ea;
  font-size: 13px;
  letter-spacing: 2px;
}

.submit-button {
  margin-top: 14px;

  background: #c7b7aa;
  color: #111;

  border: none;

  font-weight: 600;
  letter-spacing: 3px;

  transition: 0.3s;
}

.submit-button:active {
  transform: scale(0.98);
  opacity: 0.9;
}

input,
select,
textarea {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 9px auto;
  padding: 15px;
  border: 1px solid #555;
  border-radius: 0;
  background: transparent;
  color: #f4f1ea;
  font-size: 15px;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #c7b7aa;
  box-shadow: 0 0 0 1px rgba(199,183,170,0.3);
}

select option {
  color: #111;
}

textarea {
  height: 110px;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: #9f9a92;
}

/* ACCOUNT */

.accordion {
  max-width: 420px;
  margin: 12px auto;
  border: 1px solid #3a3a3a;
}

.accordion-title {
  width: 100%;
  padding: 18px;
  background: transparent;
  color: #f4f1ea;
  border: none;
  font-size: 14px;
  letter-spacing: 2px;
}

.accordion-content {
  display: none;
  padding: 18px;
  border-top: 1px solid #3a3a3a;
  text-align: left;
  line-height: 1.8;
}

.accordion-content p {
  margin: 6px 0;
}

.accordion-content button {
  margin: 8px 0 18px;
  padding: 10px 14px;
  background: transparent;
  color: #c7b7aa;
  border: 1px solid #c7b7aa;
  letter-spacing: 2px;
}

/* ENDING */

.ending h2 {
  margin-bottom: 24px;
}

.ending p {
  line-height: 1.8;
  letter-spacing: 2px;
  font-size: 13px;
}

.ending-small {
  margin-top: 40px;
  color: #c7b7aa;
  font-size: 10px !important;
  letter-spacing: 3px !important;
}

/* PHOTO MODAL */

.photo-modal {
  display: none;
  position: fixed;
  z-index: 2600;
  inset: 0;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.photo-modal img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* FILM */

.film-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.055;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,0,0,.25) 1px, transparent 1px);
  background-size: 6px 6px, 9px 9px;
  mix-blend-mode: overlay;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.flower-note {
  margin-top: 36px;
  color: #c7b7aa;
  font-size: 10px;
  line-height: 2.1;
  letter-spacing: 0.5px;
}

.accordion-content hr {
  border: none;
  border-top: 1px solid #3a3a3a;
  margin: 24px 0;
}

.accordion-content strong {
  color: #f4f1ea;
  font-weight: 600;
}
