/* ============================================================
   Clara the Carolling Currawong — Pre-launch landing page
   Locked Currawong Books Press visual system
   ============================================================ */

/* ---------- Design tokens (Currawong Press) ---------- */
:root {
  /* Palette */
  --navy:        #1F2A44;
  --navy-deep:   #0F1828;
  --gold:        #E8B53D;
  --gold-deep:   #C99524;
  --cream:       #FAF6EE;
  --cream-deep:  #F2EBD9;
  --ink:         #1F1B14;
  --ink-muted:   #6B6553;
  --rule-soft:   #D9D2BE;
  --dusk-rose:   #C77E70;
  --leaf-green:  #7A8A5F;

  /* Typography */
  --font-serif:  'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --wrap-max:    1180px;
  --wrap-pad:    clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(3.5rem, 9vw, 6.5rem);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 180ms var(--ease-out); }
a:hover { color: var(--gold-deep); }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-inline: var(--wrap-pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}
.eyebrow--cream      { color: var(--cream); }
.eyebrow--gold       { color: var(--gold); }
.eyebrow--gold-deep  { color: var(--gold-deep); }

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--rule-soft);
  padding-block: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  background: rgba(242, 235, 217, 0.92);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
}
.brand-mark { color: var(--gold-deep); display: inline-flex; }
.brand-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  color: var(--navy);
}
.status-pill {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  background: rgba(232, 181, 61, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
@media (max-width: 540px) {
  .brand-text { font-size: 0.95rem; }
  .status-pill { font-size: 0.65rem; padding: 0.25rem 0.55rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pull the crop down to reveal more of the mountain range and foreground.
     Mobile uses its own portrait source so this only meaningfully affects desktop. */
  object-position: center 35%;
}
@media (max-width: 719px) {
  .hero-image img { object-position: center 30%; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15, 24, 40, 0.15) 0%,
      rgba(15, 24, 40, 0.30) 45%,
      rgba(15, 24, 40, 0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: clamp(540px, 75vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(3rem, 8vw, 5rem);
  color: var(--cream);
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0.8rem 0 0.6rem;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(15, 24, 40, 0.35);
}
.hero-title-line { display: block; }
.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  margin: 0 0 1.2rem;
  color: var(--cream);
  opacity: 0.92;
}
.hero-attribution {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 0;
  color: rgba(250, 246, 238, 0.78);
}

/* ============================================================
   Teaser
   ============================================================ */
.teaser {
  background: var(--cream);
  padding-block: var(--section-pad);
}
.teaser-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.teaser-lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1.2rem;
  letter-spacing: -0.005em;
}
.teaser-body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.teaser-tagline {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-soft);
}

/* ============================================================
   Showcase (cover + signup)
   ============================================================ */
.showcase {
  background: var(--cream-deep);
  padding-block: var(--section-pad);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) {
  .showcase-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5rem);
  }
}

.cover-panel {
  margin: 0;
  position: relative;
}
.cover-panel img {
  width: 100%;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(31, 27, 20, 0.05),
    0 12px 32px -8px rgba(15, 24, 40, 0.22),
    0 32px 64px -20px rgba(15, 24, 40, 0.18);
}
.cover-caption {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cover-meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.signup-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.signup-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin: 0.3rem 0 0.6rem;
}
.signup-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.signup-promise {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* Form */
.signup-form {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.form-row {
  display: flex;
  gap: 0;
  background: var(--cream);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.form-row:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 181, 61, 0.18);
}
.signup-form input[type="email"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  min-width: 0;
}
.signup-form input[type="email"]::placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}
.signup-form input[type="email"]:focus { outline: 0; }

.btn-primary {
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
  white-space: nowrap;
}
.btn-primary:hover:not(:disabled) {
  background: var(--navy-deep);
}
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled {
  background: var(--ink-muted);
  color: var(--cream);
  cursor: not-allowed;
}
.btn-icon {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
.btn-primary:hover .btn-icon { transform: translateX(3px); }

@media (max-width: 540px) {
  .form-row { flex-direction: column; }
  .btn-primary {
    padding: 1rem;
    justify-content: center;
    border-top: 1px solid var(--rule-soft);
  }
}

.signup-status {
  min-height: 1.3em;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.signup-status.is-success {
  color: var(--leaf-green);
  font-weight: 500;
}
.signup-status.is-error {
  color: var(--dusk-rose);
  font-weight: 500;
}
.signup-fineprint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================================================
   Imprint strip
   ============================================================ */
.imprint {
  background: var(--cream);
  padding-block: var(--section-pad);
  text-align: center;
}
.imprint-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.imprint-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--navy);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.imprint-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1.6rem;
}
.imprint-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-deep);
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-soft);
  display: inline-block;
  padding-inline: 2.5rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
}
.footer-band {
  /* Taller band so the gum leaves and banksia at the top of the artwork have room.
     Centred (not bottom-pinned) so we see the full vegetation framing. */
  height: clamp(220px, 32vw, 320px);
  background-image: url('../assets/footer-twilight.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.footer-wrap {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(217, 210, 190, 0.15);
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  margin: 0 0 0.5rem;
}
.footer-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(250, 246, 238, 0.78);
  margin: 0.15rem 0;
}
.footer-meta a {
  color: var(--gold);
  text-decoration: none;
}
.footer-meta a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.footer-acknowledgement { display: flex; align-items: center; }
.footer-aoc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(250, 246, 238, 0.72);
  margin: 0;
  max-width: 38ch;
}
.footer-copy {
  margin: 1.5rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(250, 246, 238, 0.55);
  text-align: center;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
