/*
---------------
CSS Reset
---------------
*/

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

* {
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

/*
---------------
Fonts
---------------
*/

/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on September 8, 2025 */

@font-face {
  font-family: 'prataregular';
  src: url('assets/fonts/prata-regular-webfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'pinyon_scriptregular';
  src: url('assets/fonts/pinyonscript-regular-webfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* @link https://utopia.fyi/type/calculator?c=360,18,1.2,1728,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  /* Step -2: 12.5px → 12.8px */
  --step--2: clamp(0.7813rem, 0.7763rem + 0.0219vw, 0.8rem);
  /* Step -1: 15px → 16px */
  --step--1: clamp(0.9375rem, 0.9211rem + 0.0731vw, 1rem);
  /* Step 0: 18px → 20px */
  --step-0: clamp(1.125rem, 1.0921rem + 0.1462vw, 1.25rem);
  /* Step 1: 21.6px → 25px */
  --step-1: clamp(1.35rem, 1.2941rem + 0.2485vw, 1.5625rem);
  /* Step 2: 25.92px → 31.25px */
  --step-2: clamp(1.62rem, 1.5323rem + 0.3896vw, 1.9531rem);
  /* Step 3: 31.104px → 39.0625px */
  --step-3: clamp(1.944rem, 1.8131rem + 0.5818vw, 2.4414rem);
  /* Step 4: 37.3248px → 48.8281px */
  --step-4: clamp(2.3328rem, 2.1436rem + 0.8409vw, 3.0518rem);
  /* Step 5: 44.7898px → 61.0352px */
  --step-5: clamp(2.7994rem, 2.5322rem + 1.1875vw, 3.8147rem);
  /* Step 6: 53.7477px → 76.2939px */
  --step-6: clamp(3.3592rem, 2.9951rem + 1.6185vw, 4.7684rem);
}

* {
  font-size: var(--step-0);

  font-family: 'prataregular', serif;
  color: #111;
}

/*
---------------
Spacing variables
---------------
*/

/* @link https://utopia.fyi/space/calculator?c=360,18,1.2,1728,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  /* Space 3xs: 5px → 5px */
  --space-3xs: clamp(0.3125rem, 0.3125rem + 0vw, 0.3125rem);
  /* Space 2xs: 9px → 10px */
  --space-2xs: clamp(0.5625rem, 0.5461rem + 0.0731vw, 0.625rem);
  /* Space xs: 14px → 15px */
  --space-xs: clamp(0.875rem, 0.8586rem + 0.0731vw, 0.9375rem);
  /* Space s: 18px → 20px */
  --space-s: clamp(1.125rem, 1.0921rem + 0.1462vw, 1.25rem);
  /* Space m: 27px → 30px */
  --space-m: clamp(1.6875rem, 1.6382rem + 0.2193vw, 1.875rem);
  /* Space l: 36px → 40px */
  --space-l: clamp(2.25rem, 2.1842rem + 0.2924vw, 2.5rem);
  /* Space xl: 54px → 60px */
  --space-xl: clamp(3.375rem, 3.2763rem + 0.4386vw, 3.75rem);
  /* Space 2xl: 72px → 80px */
  --space-2xl: clamp(4.5rem, 4.3684rem + 0.5848vw, 5rem);
  /* Space 3xl: 108px → 120px */
  --space-3xl: clamp(6.75rem, 6.5526rem + 0.8772vw, 7.5rem);

  /* One-up pairs */
  /* Space 3xs-2xs: 5px → 10px */
  --space-3xs-2xs: clamp(0.3125rem, 0.2303rem + 0.3655vw, 0.625rem);
  /* Space 2xs-xs: 9px → 15px */
  --space-2xs-xs: clamp(0.5625rem, 0.4638rem + 0.4386vw, 0.9375rem);
  /* Space xs-s: 14px → 20px */
  --space-xs-s: clamp(0.875rem, 0.7763rem + 0.4386vw, 1.25rem);
  /* Space s-m: 18px → 30px */
  --space-s-m: clamp(1.125rem, 0.9276rem + 0.8772vw, 1.875rem);
  /* Space m-l: 27px → 40px */
  --space-m-l: clamp(1.6875rem, 1.4737rem + 0.9503vw, 2.5rem);
  /* Space l-xl: 36px → 60px */
  --space-l-xl: clamp(2.25rem, 1.8553rem + 1.7544vw, 3.75rem);
  /* Space xl-2xl: 54px → 80px */
  --space-xl-2xl: clamp(3.375rem, 2.9474rem + 1.9006vw, 5rem);
  /* Space 2xl-3xl: 72px → 120px */
  --space-2xl-3xl: clamp(4.5rem, 3.7105rem + 3.5088vw, 7.5rem);

  /* Custom pairs */
  /* Space s-l: 18px → 40px */
  --space-s-l: clamp(1.125rem, 0.7632rem + 1.6082vw, 2.5rem);
}

/*
---------------
Layout
---------------
*/

body {
  min-height: 100vh;

  background: #faf9f6;
}

.content-grid {
  --padding-inline: 1rem;
  --content-max-width: 900px;
  --breakout-max-width: 1200px;

  --breakout-size: calc(
    (var(--breakout-max-width) - var(--content-max-width)) / 2
  );

  display: grid;
  grid-template-columns:
    [full-width-start] minmax(var(--padding-inline), 1fr)
    [breakout-start] minmax(0, var(--breakout-size))
    [content-start] min(
      100% - (var(--padding-inline) * 2),
      var(--content-max-width)
    )
    [content-end]
    minmax(0, var(--breakout-size)) [breakout-end]
    minmax(var(--padding-inline), 1fr) [full-width-end];
}

nav,
footer {
  grid-column: full-width;
}

nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-2xs);

  box-shadow: 0 4px 20px 2px rgba(0, 0, 0, 0.2);
}

.logo p {
  font-size: var(--step-3);

  font-family: 'pinyon_scriptregular', cursive;
}

.navbar-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 900px);
  padding: var(--space-2xs);
  gap: var(--space-s);
}

.navbar-list a {
  font-size: var(--step--1);
  padding: var(--space-3xs);

  white-space: nowrap;
}

.navbar-list a:hover,
.navbar-list a.active {
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
}

.navbar-toggle {
  display: none;
  background: transparent;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;

  background-color: #111;
  transition: all 0.3 ease-in-out;
}

footer {
  background-color: #111;
}

footer p {
  padding: var(--space-xs);
  font-size: var(--step--2);
  text-align: center;

  color: #faf9f6;
}

footer a {
  font-size: var(--step--2);
  color: #faf9f6;
}

footer a:hover {
  border-bottom: 1px solid #faf9f6;
}

/*
~~~~
Home Page
~~~~
*/

.announcement {
  grid-column: full-width;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url(assets/imgs/couple2.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.announcement h1 {
  text-align: center;
  font-size: var(--step-6);
  margin: 0 var(--space-l);

  font-family: 'pinyon_scriptregular', cursive;
  color: #faf9f6;
}

.video-and-date-container {
  grid-column: breakout;

  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-3xl) var(--space-s);
}

video {
  border-radius: 5px;
}

.date-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.couple p {
  font-size: var(--step-5);
  text-align: center;

  font-family: 'pinyon_scriptregular', cursive;
}

.date {
  font-size: var(--step-2);
  text-align: center;
}

.countdown {
  grid-column: full-width;
  height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);

  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url(assets/imgs/couple3.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

.countdown h2,
.countdown h3,
.countdown p {
  color: #faf9f6;
  text-align: center;
}

.countdown h2 {
  font-size: var(--step-4);
}

.countdown h3 {
  font-size: var(--step-3);
}

.timebox {
  display: flex;
  padding: var(--space-s);
  gap: var(--space-m);
}

/*
~~~~
Schedule Page
~~~~
*/

h1.schedule {
  font-size: var(--step-2);
  padding: var(--space-m);
  margin: var(--space-xl) 0;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container {
  padding: 10px 50px;
  position: relative;
  width: 50%;

  animation: movedown 1s linear forwards;
  opacity: 0;
}

@keyframes movedown {
  0% {
    opacity: 1;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

.timeline-container:nth-child(2) {
  animation-delay: 1s;
}
.timeline-container:nth-child(3) {
  animation-delay: 2s;
}
.timeline-container:nth-child(4) {
  animation-delay: 3s;
}
.timeline-container:nth-child(5) {
  animation-delay: 4s;
}
.timeline-container:nth-child(6) {
  animation-delay: 5s;
}

.text-box {
  text-align: center;
  position: relative;
  padding: 20px 30px;

  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 20px 2px rgba(0, 0, 0, 0.2);
}

.text-box h2 {
  font-size: var(--step-1);
  margin-bottom: 10px;
  white-space: nowrap;
}

.text-box h3 {
  font-size: var(--step-0);
}

.left-container {
  left: 0;
}

.right-container {
  left: 50%;
}

.timeline-container img {
  padding: 2px;
  position: absolute;
  width: 40px;
  right: -20px;
  top: 32px;
  z-index: 10;

  background-color: white;
  box-shadow: 0 4px 20px 2px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.right-container img {
  left: -20px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 100%;
  top: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -1;

  background-color: #111;
  animation: moveline 6s linear forwards;
}

@keyframes moveline {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}

.left-container-arrow {
  height: 0;
  width: 0;
  position: absolute;
  top: 28px;
  z-index: 1;
  right: -15px;

  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid #fff;
}

.right-container-arrow {
  height: 0;
  width: 0;
  position: absolute;
  top: 28px;
  z-index: 1;
  left: -15px;

  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid #fff;
}

.address {
  margin: var(--space-2xl) 0;
  padding: 30px 20px;
  text-align: center;
}

.address h4 {
  font-size: var(--step-1);
}

.address h4,
.address p {
  margin-bottom: var(--space-xs);
}

.church-address {
  margin-bottom: var(--space-2xl);
}

.address a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;

  text-decoration: none;
  color: #111;
  background-color: #fff;
  box-shadow: 0 4px 20px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

.address a:hover {
  box-shadow: 0 10px 20px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/*
~~~~
Dress Code Page
~~~~
*/

.dress-code {
  grid-column: content;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-l);
  text-align: center;
}

.dress-code {
  padding: var(--space-2xs);
}

.dress-code h1 {
  font-size: var(--step-2);
  margin-bottom: var(--space-s);
}

/*
~~~~
Hotel Page
~~~~
*/

.coming-soon {
  grid-column: content;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.coming-soon h1 {
  font-size: var(--step-2);
  text-align: center;
}

/*
~~~~
Gallery Page
~~~~
*/

.gallery-container {
  grid-column: breakout;
  margin: var(--space-m) 0;
}

.gallery-container h1 {
  font-size: var(--step-2);
  margin: var(--space-m) 0;
  text-align: center;
}

.photo-gallery {
  display: flex;
  gap: var(--space-2xs);
}

.column-container {
  display: flex;
  gap: var(--space-2xs);
}

.column {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.photo img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

/*
~~~~
Registry Page
~~~~
*/

.registry {
  grid-column: content;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  margin: var(--space-l) 0;
  padding: var(--space-m);
  gap: var(--space-m);
}

.registry h1 {
  font-size: var(--step-2);
  text-align: center;
}

.registry p {
  text-align: center;
}

.registry a {
  padding: 12px 24px;
  text-decoration: none;
  text-align: center;

  color: #111;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 20px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

.registry a:hover {
  box-shadow: 0 10px 20px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/*
~~~~
FAQ's Page
~~~~
*/

.faq {
  grid-column: content;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  margin: var(--space-l) 0;
  padding: var(--space-m);
  gap: var(--space-m);
}

.faq h1 {
  font-size: var(--step-2);
  text-align: center;
  margin-bottom: var(--space-l);
}

.faq h2 {
  font-size: var(--step-1);
  margin-bottom: var(--space-2xs);
}

/*
---------------
Media Queries
---------------
*/

/* navbar */
@media (max-width: 700px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .navbar-list {
    /* need this to toggle active class*/
    display: none;

    flex-direction: column;
    justify-content: start;
    align-items: start;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 999;
    height: 100vh;
    width: 70%;
    padding: var(--space-xl) var(--space-m);
    gap: var(--space-m);

    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    background: hsla(0, 0%, 100%, 0.1);
    backdrop-filter: blur(3rem);
  }

  .navbar-list.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
    z-index: 1000;
  }

  /* turn bars into X */
  .navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* home page */
@media (max-width: 1000px) {
  .video-and-date-container {
    flex-direction: column;
  }

  .date-container {
    order: -1;
    margin-bottom: var(--space-3xl);
  }
}

/* home page countdown */
@media (max-width: 415px) {
  .timebox {
    flex-direction: column;
  }
}

/* schedule page */
@media screen and (max-width: 600px) {
  .timeline {
    margin: 50px auto;
  }
  .timeline::after {
    left: 31px;
  }
  .timeline-container {
    width: 100%;
    padding-left: 80px;
    padding-right: 25px;
  }
  .right-container {
    left: 0;
  }
  .left-container img,
  .right-container img {
    left: 10px;
  }
  .left-container-arrow,
  .right-container-arrow {
    border-right: 15px solid #fff;
    border-left: 0;
    left: -15px;
  }
}

/* photo gallery */
@media screen and (max-width: 950px) {
  .column-container {
    flex-direction: column;
  }
}
