/* ITC Benguiat Std font faces (OTF included). For best web perf convert to WOFF2/WOFF and update the src files */
@font-face {
  font-family: "ITC Benguiat Std";
  src: url("assets/font/itc-benguiat-std/ITCBenguiatStdBookCn.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ITC Benguiat Std";
  src: url("assets/font/itc-benguiat-std/ITCBenguiatStdBookCnIt.OTF") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "ITC Benguiat Std";
  src: url("assets/font/itc-benguiat-std/ITCBenguiatStdMediumCn.OTF") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ITC Benguiat Std";
  src: url("assets/font/itc-benguiat-std/ITCBenguiatStdMediumCnIt.OTF") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "ITC Benguiat Std";
  src: url("assets/font/itc-benguiat-std/ITCBenguiatStdBoldCn.OTF") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ITC Benguiat Std";
  src: url("assets/font/itc-benguiat-std/ITCBenguiatStdBoldCnIt.OTF") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

* {
    font-family: "ITC Benguiat Std", serif;
}

.header {
    text-align: center;
    cursor: default;
}

.header h1 {
    font-size: 50px;
    margin-bottom: 0;
    color: red;
    text-shadow: 6px 4px 4px #000000;
}

.header a {
    text-decoration: none;
    cursor: pointer;
    color: blanchedalmond;
    text-shadow: 6px 4px 4px #000000;
}

.header h2 {
    font-size: 40px;
    margin-top: 0px;
    font-style: italic;
    color: blanchedalmond;
    text-shadow: 6px 4px 4px #000000;
}

body {
  background: linear-gradient(90deg, #320026, #ff3b58, #ff8aa1);
  background-size: 300% 300%;
  animation: gradientShift 18s ease infinite;
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 12%, rgba(255,40,40,0.06), transparent 25%);
  z-index: 0;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.calendar {
  --box-gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--box-gap);
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.box {
    flex: 0 0 calc((100% - 2 * var(--box-gap)) / 3);
    box-sizing: border-box;
    min-width: 220px;
    max-width: 360px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px;
    color: #fff;
    background: rgba(0,0,0,0.32);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.box:focus-visible {
  outline: 3px solid rgba(255,100,100,0.9);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255,100,100,0.12);
}

.calendar .box h1 {
    font-size: 30px;
    margin: 10px 0 0 0;
    text-transform: uppercase;
    text-shadow: 4px 4px 4px #000000;
}

.calendar .box h2 {
    font-size: 20px;
    margin: 0 0 0 0;
    text-shadow: 4px 4px 4px #000000;
}

.calendar .box p {
    font-size: 15px;
    margin: 0 0 0 0;
    text-shadow: 4px 4px 4px #000000;
}

.calendar .box img, .crafting {
    display: block;
    margin: 20px auto 0;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    background: rgba(255,255,255,0.02);
    padding: 6px;
    border-radius: 4px;
}

/* focus outlines for accessibility */
.centered button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(255,100,100,0.9);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255,100,100,0.12);
}


@media (max-width: 900px) {
  .box {
    flex: 0 0 calc((100% - var(--box-gap)) / 2);
    max-width: none;
  }
}
@media (max-width: 520px) {
  .box {
    flex: 0 0 100%;
    min-width: 0;
    max-width: none;
  }
}

.centered {
    display: flex;
    justify-content: center;
    margin: 20px 0 20px 0;
}

.centered button {
    background-color: blue;
    color: blanchedalmond;
    font-size: 40px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.notes {
    margin: 0;
    color: blanchedalmond;
    text-align: center;
    font-size: 16px;
    text-shadow: 4px 4px 4px #000000;
    font-style: italic;
}

r {
    color: red;
    font-weight: bold;
}