/* ==========================================================
   Joe & Ksenia's Wedding v2 — Style Sheet
   ========================================================== */

/* --- Font Faces --- */
@font-face {
  font-family: 'KTF Metro';
  src: url('fonts/KTFMetro-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'CoFo Robert';
  src: url('fonts/CoFo_Robert-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'CoFo Robert';
  src: url('fonts/CoFo_Robert-Regular_Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: block;
}

/* --- Custom Properties --- */
:root {
  --color-bg: #f2ebe4;
  --color-text: #7f432c;
  --color-btn-bg: rgba(127, 67, 44, 0.08);
  --color-btn-border: rgba(127, 67, 44, 0.2);
  --font-heading: 'KTF Metro', Georgia, serif;
  --font-body: 'CoFo Robert', Georgia, serif;
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 18px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout --- */
.page {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 160px;
  padding-top: 136px;
  padding-bottom: 32px;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--color-bg);
  padding: 32px 32px 24px;
}

.top-cover {
  position: fixed;
  top: -200px;
  left: 0;
  right: 0;
  height: 200px;
  background: var(--color-bg);
  z-index: 100;
}

.site-header__inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.site-header__title,
.site-header__menu {
  margin: 0;
}

/* --- Menu Button --- */
.site-header__menu {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text);
  text-align: center;
  padding: 0;
}

.menu-label-close {
  display: none;
}

body.menu-open .menu-label-open {
  display: none;
}

body.menu-open .menu-label-close {
  display: inline;
}

/* --- Nav Overlay --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(242, 235, 228, 0.7);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease-out;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 30px;
  color: var(--color-text);
  text-decoration: none;
}

body.menu-open .site-nav {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}



/* --- Section --- */
.section {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
}

/* --- Section Label (small text above heading) --- */
.section-label {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 26px;
  text-align: center;
  margin: 0;
}

/* --- Section Heading --- */
.section-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

/* --- Label + Heading group (no gap between them) --- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: center;
}

/* --- Sub-heading (→ getting there) --- */
.section-subheading {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

/* --- Body Text --- */
.section p,
.section ul {
  margin: 0;
  width: 100%;
}

.section p + p,
.section p + ul,
.section ul + p {
  margin-top: 13px;
}

/* --- Hero --- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

.hero-photo {
  transform: rotate(-4deg);
  width: 80%;
  aspect-ratio: 2336 / 2846;
  border-radius: 1px;
  animation: hero-fade-in 500ms var(--ease-smooth) 300ms both;
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: rotate(-4deg) translateY(20px); }
  to   { opacity: 1; transform: rotate(-4deg) translateY(0); }
}

.hero-text.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero-text {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease-smooth) 300ms, transform 500ms var(--ease-smooth) 300ms;
}

.hero-text p {
  margin: 0 0 25px;
}

.hero-text p:last-child {
  margin-bottom: 0;
}

/* --- Lists --- */
ul {
  padding-left: 27px;
  margin: 0;
}

ul li {
  list-style: disc;
  margin-bottom: 8px;
  line-height: 26px;
}

ul li:last-child {
  margin-bottom: 0;
}

/* --- Schedule --- */
.schedule-list p {
  margin: 0 0 8px;
  line-height: 26px;
}

.section .schedule-list p + p {
  margin-top: 0;
}

.schedule-list p:last-child {
  margin-bottom: 0;
}

/* --- Video Embed --- */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Map Image --- */
.map-image {
  width: 100%;
  aspect-ratio: 329 / 185;
  object-fit: contain;
}

/* --- Button --- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px 16px;
  background: var(--color-btn-bg);
  border: 1px solid var(--color-btn-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 26px;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
}

/* --- Footer --- */
.footer {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
}
