/* Thorolfs julemarked – digital udgave af plakaten (jul26.png) */

@font-face {
  font-family: 'Rammetto One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/rammetto-one-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rammetto One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/rammetto-one-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue-deep: #303a74;   /* plakatens topfarve */
  --blue-light: #6a759f;  /* plakatens lysere bund */
  --band: #c6d1e1;        /* plakatens lyse bundbjælke */
  --text: #ffffff;
  --display: 'Rammetto One', 'Arial Black', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* samme lodrette gradient som plakaten */
  background: linear-gradient(180deg,
    var(--blue-deep) 0%,
    var(--blue-deep) 42%,
    #46548a 68%,
    var(--blue-light) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* ---------- Plakat ---------- */
.poster {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) 1.25rem 0;
  flex: 1;
}

.poster-head { text-align: center; }

.poster-logo {
  height: clamp(84px, 14vw, 132px);
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.poster-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 6.8rem);
  line-height: 0.98;
  margin: 0.4rem 0 1.1rem;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  animation: floaty 7s ease-in-out infinite;
}

.poster-date {
  display: inline-block;
  margin: 0;
  font-size: clamp(1.15rem, 3.6vw, 1.7rem);
  font-weight: 700;
}

.poster-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: clamp(1.5rem, 5vw, 3rem);
  align-items: end;
}

.poster-text {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  padding-bottom: clamp(1rem, 4vw, 3rem);
}

.poster-lead {
  font-size: clamp(1.25rem, 3.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 1.6rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.poster-place {
  font-size: clamp(1.1rem, 3.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 1.2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.poster-maps { margin: 0 0 2.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.poster-maps a {
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.poster-maps a:hover, .poster-maps a:focus { background: rgba(255, 255, 255, 0.15); border-color: #fff; }

.poster-dds {
  height: clamp(56px, 9vw, 84px);
  width: auto;
  opacity: 0.95;
}

.poster-tree { text-align: center; line-height: 0; }
.poster-tree img {
  width: min(100%, 430px);
  height: auto;
  margin: 0 auto;
  transform-origin: 50% 100%;
  animation: sway 9s ease-in-out infinite;
}

/* Desktop: tekst til venstre, træ til højre som på flyeren */
@media (min-width: 860px) {
  .poster-body {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
  }
  .poster-text { text-align: left; margin: 0; padding-bottom: 4.5rem; }
  .poster-maps { justify-content: flex-start; }
  .poster-tree img { width: min(100%, 560px); margin: 0 0 -2px auto; }
}

/* ---------- Bundbjælke som på flyeren ---------- */
.band {
  position: relative;
  z-index: 2;
  background: var(--band);
  color: var(--blue-deep);
  text-align: center;
  padding: 0.9rem 1.25rem;
  margin-top: -1px;
}
.band p { margin: 0; font-weight: 700; font-size: clamp(0.95rem, 2.6vw, 1.15rem); }

/* ---------- Indtoning ---------- */
.poster-head > *, .poster-text > * {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.poster-head .poster-logo { animation-delay: 0.05s; }
.poster-head .poster-title { animation-delay: 0.2s; }
.poster-head .poster-date { animation-delay: 0.4s; }
.poster-text .poster-lead { animation-delay: 0.55s; }
.poster-text .poster-place { animation-delay: 0.7s; }
.poster-text .poster-maps { animation-delay: 0.85s; }
.poster-text .poster-dds { animation-delay: 1s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(0.6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .poster-head > *, .poster-text > * { animation: none; opacity: 1; }
  .poster-title, .poster-tree img { animation: none; }
}
