/* Variables */
:root {
  --grey: rgba(0, 0, 0, 0.6);
  --grey-ko: rgba(0, 0, 0, 0.5);
  --blush: #fedfd7;
  --spice: #c4a296;
  --spice-light: rgba(196, 162, 150, 0.1);
  --midnight: rgba(0, 0, 0, 0.8);
  --white: #fff;
  --black: #000;
}

/* Global Styles */
body {
  color: var(--midnight);
  background-color: var(--white);
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.25rem;
  text-align: center;
  letter-spacing: 0.04rem;
  overflow-wrap: break-word;
}

/* Typography */
p {
  margin: 0;
}

.names {
  font-family: "Abril Fatface", serif;
  font-size: 7em;
  font-weight: 400;
  line-height: 100%;
  margin-bottom: 0.25em;
  text-transform: uppercase;
}

.korean {
  color: var(--grey);
  font-family: "Gothic A1", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.125em;
}

.section-header {
  color: var(--midnight);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

.emphasis {
  color: var(--midnight);
  font-family: "Abril Fatface", serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  line-height: 100%;
}

.menu {
  color: var(--midnight);
  font-size: 1rem;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
}

.address {
  color: var(--midnight);
  font-size: 1rem;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
}

.small-print {
  color: var(--grey);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.small-print-korean {
  color: var(--grey-ko);
  font-family: "Gothic A1", sans-serif;
  font-size: 0.7rem;
  margin-top: 1rem;
}

/* Layout */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
  max-width: 40em;
  width: 75%;
  margin: 6rem auto;
}

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  margin-bottom: 4rem;
}

.section-divider {
  width: 2.5rem;
  height: 0.1875rem;
  background-color: var(--spice);
  margin: 0 auto;
}

/* Navigation */
.navigation {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.tabs {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tab {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.tab.active {
  border-bottom: 3px solid var(--midnight);
  font-weight: 400;
}

.content {
  margin-top: 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Images */
.logo-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.logo {
  width: 64px;
  height: auto;
  fill: blue;
}

.portrait-0 {
  width: 23.25rem;
  height: 27rem;
}

#portraits {
  width: 16.625rem;
  height: 24rem;
  cursor: pointer;
  margin: 2rem auto;
}

#displayedPortrait {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease-in-out;
}

/* Form */
.rsvp-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  margin-top: 2em;
}

.rsvp-container button {
  margin-top: 1em;
}

.password-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

input,
textarea {
  width: 14.5rem;
  padding: 1rem;
  border: 2px solid var(--spice);
  background-color: var(--spice-light);
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  text-align: left;
}

input {
  margin-bottom: 1em;
}

textarea {
  height: 5rem;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--spice);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--midnight);
  color: var(--midnight);
}

input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent;
}

button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16.75rem;
  height: 3rem;
  padding: 0;
  margin: 0;
  border: 2px solid var(--spice);
  background-color: var(--spice);
  color: var(--white);
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
  cursor: pointer;
}

button:active {
  border-color: var(--midnight);
  background-color: var(--midnight);
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Text Selection */
::selection {
  background-color: var(--blush);
  color: var(--grey);
}

::-moz-selection {
  background-color: var(--blush);
  color: var(--grey);
}
