:root {
  --teal: #1B4B49;
  --terracotta: #C1502E;
  --ink: #171512;
  --cherry: #B23A2E;
  --gold: #E8A33D;
  --bone: #F3E9D2;
  --indigo: #3E6E8E;
}

* {
 box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bone);
  font-family: 'Karla', sans-serif;
  color: var(--ink);
}

.page {
  display: grid;
  grid-template-columns: 1fr 90px minmax(360px, 560px) 90px 1fr;
  min-height: 100vh;
}

.decor {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--ink);
}

/* Calender gif */
.calendar-gif-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 0.4rem;
  overflow: hidden;
}

.calendar-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Illustrated Column Dividers  */
.col-divider {
  width: 90px;
  align-self: stretch;
  overflow: hidden;
  background-image: url('../Images/col-divider.png');
  background-repeat: no-repeat, repeat-y;
  background-size: 100% 100%, 2px 12px;
  background-position: top left, center;
}

.center {
  background: var(--ink);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Sky Band */
.sky-band {
  width: 100%;
  height: auto;
  display: block;
}

/* Center Content */

.center-content {
  width: 100%;
  padding: 1rem 1.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  text-align: center;
  margin: 0 0 2rem;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.site-title span {
  display: block;
  font-family: 'Karla', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.medallion-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
  width: 100%;
}

/* Back Link */
.back-link {
  display: center;
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Day Glyphs */
.day-caption {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 1rem;
}

.day-glyphs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 100px;
  flex-wrap: wrap;
}

.day-glyphs img {
  width: 140px;
  max-width: 40%;
  height: auto;
}

.day-card-glyph-placeholder {
  width: 140px;
  height: 140px;
  max-width: 40%;
  border: 2px dashed rgba(243,233,210,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(243,233,210,0.5);
  text-align: center;
  padding: 6px;
}

.day-label {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  margin-top: 1rem;
  color: var(--bone);
}

/* Timezone */

#timezone {
  font-size: 11px;
  color: rgba(243,233,210,0.45);
  margin: 8px 0 0;
  text-align: center;
}

/* Lookup Card */

.lookup-card, .row-divider {
  width: 100%;
  max-width: 320px;
}

/* Palma Frame */

.palma-frame {
  margin: 2rem 0;
}

.palma-frame img {
  width: 140px;
  height: auto;
  display: block;
}

/* Calendar Form */

.lookup-label {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 1rem;
  text-align: center;
  color: var(--bone);
}

.lookup-fields {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.field-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-group label {
  font-size: 11px;
  color: rgba(243,233,210,0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-group input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(243,233,210,0.35);
  border-radius: 0;
  padding: 8px 2px;
  font-size: 15px;
  font-family: 'Karla', sans-serif;
  color: var(--bone);
  width: 100%;
}

.field-group input::placeholder {
  color: rgba(243,233,210,0.35);
}

.field-group input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

#date-lookup-button {
  width: 100%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

#date-lookup-button:hover{
  background: var(--gold);
  color: var(--ink);
}

#date-lookup-reset {
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(243,233,210,0.5);
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  padding: 8px;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 4px;
}

#date-lookup-reset:hover {
  color: var(--bone);
}

#date-lookup-error {
  font-size: 13px;
  color: #E8827A;
  margin-top: 8px;
  min-height: 16px;
  text-align: center;
}

/* Media Queries */

@media (max-width: 600px) {
  .page {
    grid-template-columns: 1fr;
  }
  .decor, .col-divider {
    display: none;
  }
}

/* Taltekujti Footer */
.taltekujti-footer {
  width: 100%;
}
 
.taltekujti-image-wrap {
  position: relative;
  width: 100%;
}
 
.taltekujti-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
 
.footer-copyright {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--bone);
  white-space: nowrap;
  text-align: center;
}
