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

@font-face {
  font-family: 'TenorSans';
  src: url('../font/TenorSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: 'TenorSans', Georgia, serif;
  line-height: 1.6;
  color: #243447;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
}

a {
  color: inherit;
}

p + p {
  margin-top: 0.75rem;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  line-height: 1.15;
}

h1 .amp {
  font-family: 'AerotisPlus', serif;
  font-size: 3rem;
}

@media (max-width: 480px) {
  h1 .amp {
    display: block;
    font-size: 2.5rem;
  }
}

h2 {
  font-size: 1.5rem;
  color: #567892;
  margin-bottom: 1rem;
  border-bottom: 1px solid #95B3C0;
  padding-bottom: 0.25rem;
}

.date {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  color: #567892;
}

#hero {
  text-align: center;
  padding: 3rem 0;
}

#hero-photo {
  display: none;
  margin-top: 2rem;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
}

#hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.7s ease;
}

.venue-name {
  font-weight: bold;
  color: #243447;
  font-size: 1.1rem;
}

.venue-address,
.ceremony-time {
  color: #567892;
  margin-top: 0.25rem;
}

.gps-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.gps-buttons button {
  padding: 0.25rem;
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: 8px;
  line-height: 0;
}

.gps-buttons button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.gps-buttons button img {
  width: 48px;
  height: 48px;
  display: block;
}

.gps-buttons button:has(img:not([src])),
.gps-buttons button:has(img[src=""]) {
  padding: 0.6rem 1.25rem;
  border: 1px solid #999;
  background: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.venue-photo {
  margin-top: 1.25rem;
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 3;
  overflow: hidden;
  border-radius: 8px;
  transform: translateZ(0);
}

.venue-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-photo:has(img[src=""]),
.venue-photo:has(img:not([src])) {
  display: none;
}

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline li {
  display: flex;
  gap: 1rem;
}

.timeline .time {
  flex-shrink: 0;
  min-width: 4rem;
  font-weight: bold;
  color: #243447;
}

.poi-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.poi-item {
  border: 1px solid #95B3C0;
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.poi-name {
  font-weight: bold;
  color: #243447;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.poi-desc {
  color: #567892;
  font-size: 0.95rem;
}

.poi-meta {
  color: #95B3C0;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

#reminder-card {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
  left: 1rem;
  right: 1rem;
  max-width: 480px;
  margin: 0 auto;
  transform: translateY(calc(100% + 3rem));
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 100;
  transition: transform 0.35s ease;
}

#reminder-card.visible {
  transform: translateY(0);
}

#reminder-card p {
  flex: 1;
  margin: 0;
}

#reminder-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #888;
  padding: 0.25rem;
  line-height: 1;
}

#reminder-dismiss:hover {
  color: #333;
}

#lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
}

#lang-select {
  font-family: 'TenorSans', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border: 1px solid #95B3C0;
  border-radius: 6px;
  color: #567892;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

#lang-select:focus {
  outline: 2px solid #567892;
  outline-offset: 2px;
}
