/* ==========================================================
   THE FIFTH SHORE — OPTIMIZED SPLASH PAGE
   Images live in ../images/ so the css folder stays css-only.
   ========================================================== */

* , *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: #211810;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #070706;
  background-image: url("../images/splash-bg.webp");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 900px) {
  body {
    background-attachment: fixed;
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-wrap {
  width: 100%;
  padding: clamp(1rem, 4vw, 4rem) clamp(1rem, 6vw, 6rem);
  display: flex;
  justify-content: center;
}

.paper {
  position: relative;
  width: min(1080px, 100%);
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  background-color: transparent;
  background-image: url("../images/paper.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.7);
}

.paper > * {
  position: relative;
  z-index: 1;
}

.site-header,
.story-column,
.cover-wrap,
.site-footer {
  position: relative;
}

.site-header {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.site-logo {
  width: min(620px, 90%);
  margin: 0 auto 0.8rem;
}

.coming-soon {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.coming-soon::before,
.coming-soon::after {
  content: "—";
  margin: 0 0.7rem;
}

.tagline {
  max-width: 560px;
  margin: 1.5rem auto 0;
  color: #4b3828;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-style: italic;
  line-height: 1.6;
}

.featured {
  width: 100%;
  max-width: 900px;
  margin: 0 auto clamp(3rem, 8vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.cover-column,
.story-column {
  width: 100%;
  min-width: 0;
}

.cover-column {
  max-width: 430px;
  margin: 0 auto;
}

.cover-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  transform: rotate(-0.4deg);
}

.cover-mat {
  position: relative;
  z-index: 1;
  padding: 22px;
  background-image: url("../images/cover-backing.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  filter: drop-shadow(0 10px 18px rgba(26, 16, 10, 0.22));
}

.cover-mat::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 88px;
  height: 28px;
  transform: translateX(-50%) rotate(-2deg);
  background: linear-gradient(
    to bottom,
    rgba(205, 185, 148, 0.88) 0%,
    rgba(188, 165, 128, 0.84) 55%,
    rgba(174, 150, 114, 0.82) 100%
  );
  border-left: 1px solid rgba(92, 69, 40, 0.18);
  border-right: 1px solid rgba(92, 69, 40, 0.18);
  box-shadow: 0 2px 4px rgba(40, 26, 16, 0.16);
  z-index: 3;
  filter: saturate(0.85);
}

.book-cover {
  width: 100%;
  height: auto;
  border: 1px solid rgba(48, 30, 18, 0.35);
  box-shadow: 0 8px 18px rgba(28, 18, 10, 0.28);
  transform: rotate(1deg) translate(-4px, 4px);
  position: relative;
  z-index: 2;
}

.cover-caption {
  width: 88%;
  margin: 0.75rem auto 0;
  padding: 0.55rem 0.7rem;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.4;
  color: #4b3828;
}

.story-column {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.story-column h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 0.98;
}

.eyebrow,
.story-type,
.release-date,
.section-label {
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #77501f;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
}

.story-type {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
}

.divider {
  margin: 1rem 0;
  color: #765128;
}

.release-date {
  margin: 0 0 1.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
}

.blurb {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.6;
  text-align: left;
}

.blurb p {
  margin: 0 0 1rem;
}

.button-primary {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.95rem 1.4rem;
  color: #ead6ae;
  background: #17130f;
  border: 1px solid #9a6b2e;
  box-shadow: inset 0 0 0 3px #17130f, inset 0 0 0 4px #70491f;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #2a1e15;
  transform: translateY(-2px);
}

.follow {
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(77, 50, 30, 0.34);
  text-align: center;
}

.section-label {
  margin: 0 0 1.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
}

.social-links {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.social-links a {
  padding: 0.8rem 0.4rem;
  text-decoration: none;
}

.social-links strong,
.social-links span {
  display: block;
}

.social-links strong {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-links span {
  margin-top: 0.2rem;
  color: #65503b;
  font-size: 0.7rem;
  font-style: italic;
}

.site-footer {
  width: 100%;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 2.5rem 1rem;
  border-top: 1px solid rgba(77, 50, 30, 0.25);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
}

.footer-illustration {
  position: relative;
  width: min(360px, 90%);
  height: auto;
  margin: 0 auto;
  justify-self: center;
}

.footer-bird {
  position: relative;
  width: 100%;
  height: auto;
}

.footer-content {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.footer-phrase {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  letter-spacing: 0.04em;
}

.footer-mark {
  display: block;
  margin: 0.9rem 0 1.4rem;
  color: #765128;
}

.copyright {
  margin: 0;
  color: #67503d;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-leaf,
.footer-leaf {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.leaf-header-left {
  width: clamp(42px, 4vw, 62px);
  left: 4%;
  top: 8%;
  transform: rotate(-18deg);
}

.leaf-header-right {
  width: clamp(24px, 2.3vw, 38px);
  right: 7%;
  top: 34%;
  transform: rotate(24deg);
}

.leaf-cover-accent {
  width: clamp(52px, 5vw, 78px);
  left: -28px;
  bottom: 32px;
  transform: rotate(-14deg);
  z-index: 0;
}

.leaf-release-accent {
  width: clamp(28px, 2.6vw, 42px);
  right: 3%;
  top: 2%;
  transform: rotate(17deg);
}

@media (min-width: 1000px) {
  .featured {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }

  .cover-column {
    max-width: none;
  }

  .story-column {
    max-width: none;
    text-align: left;
  }

  .site-footer {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding: 2.5rem 2rem;
  }

  .footer-illustration {
    width: 360px;
    margin: 0;
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .paper {
    padding: 1.75rem 1.1rem;
  }

  .story-column h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1;
  }

  .release-date {
    letter-spacing: 0.12em;
  }

  .blurb {
    font-size: 1rem;
    line-height: 1.55;
  }

  .social-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .paper {
    padding: 1.6rem 1rem;
  }

  .site-logo {
    width: 95%;
  }

  .tagline br {
    display: none;
  }

  .coming-soon {
    letter-spacing: 0.25em;
  }

  .story-column h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 2rem 1rem 8.5rem;
  }
}
