/* ---------------------------------------------------
   Tokens
--------------------------------------------------- */
:root {
  --sky-top: #232b3d;
  --sky-mid: #4a3d47;
  --sky-bottom: #a86b3f;

  --ground-top: #3d3423;
  --ground-bottom: #201b12;

  --wood-light: #8a5a34;
  --wood-dark: #5c3a20;
  --wood-frame: #3f2716;

  --paint-cream: #efe3c9;
  --stencil-red: #b23a2a;
  --mustard: #d6a93b;

  --font-display: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

/* ---------------------------------------------------
   Reset & base
--------------------------------------------------- */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  font-family: inherit;
}

/* ---------------------------------------------------
   Scene layout
--------------------------------------------------- */
.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 55%,
    var(--sky-bottom) 100%
  );
}

.yard {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  min-height: 130px;
  z-index: -1;
  background: linear-gradient(180deg, var(--ground-top), var(--ground-bottom));
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------------------
   Signpost
--------------------------------------------------- */
.signpost {
  position: relative;
  width: min(88vw, 560px);
  margin: 0 auto;
  padding-bottom: clamp(90px, 14vh, 150px);
}

.post {
  position: absolute;
  bottom: 0;
  width: 20px;
  height: clamp(90px, 14vh, 150px);
  background: linear-gradient(90deg, var(--wood-light), var(--wood-dark) 70%);
  border-radius: 2px;
  box-shadow: inset -3px 0 5px rgba(0, 0, 0, 0.3);
}

.post-left {
  left: 10%;
}

.post-right {
  right: 10%;
}

/* ---------------------------------------------------
   Board
--------------------------------------------------- */
.board {
  position: relative;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 2.75rem);
  background:
    repeating-linear-gradient(
      90deg,
      var(--wood-light) 0px,
      var(--wood-light) 7px,
      var(--wood-dark) 8px,
      var(--wood-dark) 9px
    );
  border: 7px solid var(--wood-frame);
  border-radius: 3px;
  box-shadow:
    0 24px 45px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(0, 0, 0, 0.15);
  transform: rotate(-1.1deg);
  animation: sway 7s ease-in-out infinite;
  text-align: center;
}

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

.board__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--stencil-red);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.board__domain {
  margin: 0.6rem 0 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--paint-cream);
  word-break: break-word;
}

.board__message {
  margin: 1.1rem auto 0;
  max-width: 34ch;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.5;
  color: rgba(239, 227, 201, 0.85);
}

.board__divider {
  width: 60px;
  height: 3px;
  margin: 1.6rem auto;
  background: var(--mustard);
  border-radius: 2px;
}

.board__terms {
  margin: 1.25rem auto 0;
  padding: 0;
  max-width: 34ch;
  list-style: none;
  text-align: left;
}

.board__terms li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(239, 227, 201, 0.8);
}

.board__terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--mustard);
  border-radius: 50%;
}

.board__contact-text {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(239, 227, 201, 0.8);
}

/* ---------------------------------------------------
   Motion & responsive preferences
--------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .board {
    animation: none;
  }
  .board__button {
    transition: none;
  }
}

.signpost__credit {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(239, 227, 201, 0.55);
}

@media (max-width: 420px) {
  .post {
    width: 14px;
  }
  .signpost {
    padding-bottom: 70px;
  }
}