/* ==========================================================================
   Ligidi Finance - coming soon page
   Brand tokens (colours, type, spacing) come from
   /assets/brand/css/ligidi-tokens.css, which is loaded first.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--forest);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--forest);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Placeholder handling
   Any contact item still carrying data-placeholder="pending" is hidden.
   Delete the attribute once a real value has been put in the markup.
   -------------------------------------------------------------------------- */

[data-placeholder="pending"] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Page grid: pattern band across the top on mobile, tall panel on the right
   from 900px up.
   -------------------------------------------------------------------------- */

.page {
  display: grid;
  grid-template-areas:
    "pattern"
    "content";
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.pattern {
  grid-area: pattern;
  height: 102px;
  background-color: var(--gold);
  background-image: url("/assets/brand/pattern/cowrie-pattern-gold.svg");
  background-repeat: repeat;
  background-position: center;
  background-size: 48px 51px;
}

.content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-12) var(--space-6) var(--space-12);
}

.content-inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 34rem;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.logo {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 0 var(--space-8);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--gold);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 var(--space-6);
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.sub {
  /* 24ch in Jost keeps the mobile line to about 34 characters */
  max-width: 24ch;
  margin: 0 0 var(--space-8);
  color: var(--ivory);
}

/* The name aside: set apart with a gold hairline above it. */
.aside {
  max-width: 46ch;
  margin: 0 0 var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gold);
  color: rgba(247, 242, 230, 0.78);
  font-size: var(--text-small);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.cta {
  margin: 0 0 var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: var(--space-2) var(--space-8);
  border-radius: var(--radius-sm);
  background-color: var(--gold);
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.btn:hover {
  background-color: #e6b758;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-8);
  margin-top: var(--space-6);
}

.contact {
  margin: 0;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  font-size: var(--text-small);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact a:hover {
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  width: 100%;
  max-width: 34rem;
  margin: auto auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(247, 242, 230, 0.16);
  color: rgba(247, 242, 230, 0.7);
  font-size: var(--text-small);
}

.footer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Focus
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline-color: var(--ivory);
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */

.error-inner .sub {
  margin-bottom: var(--space-8);
}

.back {
  margin: 0;
}

.back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  font-size: var(--text-small);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.back a:hover {
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   Motion: one gentle fade of the content on load, opacity only.
   -------------------------------------------------------------------------- */

@keyframes ligidi-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.content-inner {
  animation: ligidi-fade-in 400ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  .content-inner {
    animation: none;
  }

  .btn {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Tablet and up: content left, tall pattern panel right
   -------------------------------------------------------------------------- */

@media (min-width: 900px) {
  .page {
    grid-template-areas: "content pattern";
    grid-template-columns: minmax(0, 1fr) min(38vw, 30rem);
    grid-template-rows: 1fr;
  }

  .pattern {
    height: 100%;
    background-size: 64px 68px;
  }

  .content {
    padding: var(--space-24) var(--space-16) var(--space-16) var(--space-12);
  }

  .content-inner {
    max-width: 33rem;
  }

  .sub {
    max-width: 38ch;
  }

  .logo {
    width: 260px;
  }
}

@media (min-width: 1280px) {
  .content {
    padding-left: var(--space-24);
  }
}

/* Very narrow phones: keep the headline on a comfortable measure */
@media (max-width: 400px) {
  h1 {
    font-size: 2.5rem;
  }

  .content {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   Phone in landscape: keep the pattern band short so the copy still fits
   -------------------------------------------------------------------------- */

@media (max-height: 500px) and (orientation: landscape) {
  .pattern {
    height: 51px;
    background-size: 48px 51px;
  }

  .content {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .logo {
    margin-bottom: var(--space-6);
  }

  .aside {
    margin-bottom: var(--space-6);
  }

  .footer {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
  }
}
