/* =========================================================
   Spach Systems — landing page
   Direction: charcoal + brass, oxblood reserved for the CTA.
   Headlines: Cormorant Garamond. Body: Inter. Subtle texture.
   ========================================================= */

:root {
  --bone:        #f4efe6;  /* aged paper background          */
  --bone-deep:   #ece4d6;  /* slightly deeper paper for edge */
  --ink:         #2a2622;  /* warm charcoal — primary text   */
  --taupe:       #6b6258;  /* muted secondary text           */
  --brass:       #a8843e;  /* aged metallic accent           */
  --brass-soft:  #c0a262;  /* lighter brass for hairlines    */
  --oxblood:     #5a1b1b;  /* reserved: the Log In button    */
  --oxblood-dk:  #481414;  /* button hover                   */

  --maxw: 60rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  /* soft corner vignette over a warm bone field */
  background:
    radial-gradient(120% 120% at 50% 30%,
      var(--bone) 0%,
      var(--bone) 55%,
      var(--bone-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Subtle paper grain (fixed, very low opacity) --------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Layout frame ---------------------------------------- */
.frame {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.5rem, 4vw, 3.25rem) clamp(1.5rem, 6vw, 5rem);
}

/* --- Masthead / wordmark --------------------------------- */
.masthead {
  display: flex;
  justify-content: center;
}

.wordmark {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.wordmark__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  /* optical centering against the wide tracking */
  padding-left: 0.42em;
}

.wordmark__rule {
  display: block;
  width: clamp(2.5rem, 6vw, 4rem);
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--brass) 20%, var(--brass) 80%, transparent);
}

/* --- Hero ------------------------------------------------- */
.hero {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
  padding: clamp(2rem, 6vh, 4rem) 0;
}

.eyebrow {
  margin: 0 0 clamp(1.5rem, 4vh, 2.4rem);
  font-size: clamp(0.66rem, 1.4vw, 0.78rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}

.hero__line {
  margin: 0 auto;
  max-width: 18ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: 0.003em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__subline {
  margin: clamp(1.6rem, 4vh, 2.5rem) auto 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  color: var(--taupe);
  font-weight: 400;
}

/* --- Call to action -------------------------------------- */
.cta {
  margin-top: clamp(2.4rem, 6vh, 3.6rem);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.05em 2.4em;
  background: var(--oxblood);
  color: var(--bone);
  text-decoration: none;
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--brass);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset,
              0 12px 28px -18px rgba(42, 38, 34, 0.8);
  transition: background-color 200ms ease, transform 200ms ease,
              box-shadow 200ms ease;
}

.cta:hover {
  background: var(--oxblood-dk);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset,
              0 18px 34px -18px rgba(42, 38, 34, 0.9);
}

.cta:active { transform: translateY(0); }

.cta:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.cta__arrow {
  font-size: 1.05em;
  transition: transform 200ms ease;
}
.cta:hover .cta__arrow { transform: translateX(4px); }

/* --- Footer ----------------------------------------------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__rule {
  width: clamp(3rem, 8vw, 5rem);
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--brass-soft) 20%, var(--brass-soft) 80%, transparent);
}

.footer__text {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 36rem) {
  .brk { display: none; }            /* let the hero reflow naturally */
  .hero__line { max-width: 14ch; }
  .cta { width: 100%; justify-content: center; }
}

/* --- Motion: gentle entrance ------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow, .hero__line, .hero__subline, .cta {
    opacity: 0;
    transform: translateY(12px);
    animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero__line   { animation-delay: 120ms; }
  .hero__subline{ animation-delay: 260ms; }
  .cta          { animation-delay: 400ms; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}
