/* ============================================================
   TEJAH — Landing / transition page
   Colours & type derived from the Figma design
   ============================================================ */

/* ---------- fonts (self-hosted, from the TEJAH design kit) ---------- */
@font-face {
  font-family: "Petrona";
  src: url("../assets/fonts/Petrona.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "REM";
  src: url("../assets/fonts/REM.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --espresso:  #392820;   /* footer, dark headings            */
  --ink:       #3d332c;   /* headings                          */
  --body:      #52493f;   /* paragraph text                    */
  --muted:     #8a7d72;   /* eyebrows / small-caps labels      */
  --greige:    #e4ddd3;   /* header + newsletter band          */
  --cream:     #f2eee8;   /* hero card                         */
  --paper:     #ffffff;   /* story section                     */
  --shell:     #f4f2ef;   /* page background                   */
  --line:      #cabfB2;   /* thin rules / borders              */

  --serif: "Petrona", "Times New Roman", Georgia, serif;
  --sans:  "REM", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1150px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--shell);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ---------- header ---------- */
.site-header {
  background: var(--greige);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
}
.site-header__logo { display: block; }
.site-header__logo img {
  height: 40px;
  width: auto;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__media { transition: transform 1.4s cubic-bezier(.22, .61, .36, 1); }
@media (hover: hover) {
  .hero:hover .hero__media { transform: scale(1.04); }
}
.hero__img {
  width: 100%;
  height: clamp(460px, 56vw, 720px);
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
  transform-origin: 55% 45%;
  animation: heroDrift 32s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.045); }
}
.hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero__card {
  width: min(450px, 84%);
  background: var(--cream);
  padding: 44px 44px 40px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.16;
  margin: 0 0 22px;
}
.hero__lead {
  text-align: center;
  color: #6f645a;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- story ---------- */
.story {
  background: var(--paper);
  padding: 84px 0 96px;
  text-align: center;
}
.story__inner { display: flex; flex-direction: column; align-items: center; }
.story__mark { width: 90px; height: 90px; margin-bottom: 34px; opacity: .95; }

.story__title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 34px;
}
.story__intro {
  max-width: 640px;
  font-size: 19px;
  color: var(--ink);
  margin: 0 auto 60px;
}

.story__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 56px;
  max-width: 820px;
  width: 100%;
  text-align: left;
  margin: 0 auto;
}
.story__col p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.75; }
.story__col p:last-child { margin-bottom: 0; }

.story__divider {
  display: block;
  width: 1px;
  height: 54px;
  background: var(--ink);
  opacity: .55;
  margin: 60px auto 30px;
}
.story__outro {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ink);
  letter-spacing: .01em;
  margin: 0;
}

/* ---------- newsletter ---------- */
.newsletter {
  background: var(--greige);
  padding: 80px 0 88px;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.newsletter__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--ink);
  margin: 0 0 20px;
}
.newsletter__lead {
  max-width: 620px;
  margin: 0 auto 38px;
  font-size: 16px;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto;
}
.newsletter__form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.newsletter__form input:focus {
  outline: none;
  border-color: var(--espresso);
  background: #fff;
}
.newsletter__note {
  min-height: 1.2em;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--espresso);
}

.btn {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 13px 30px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--espresso);
  color: #d9cfc4;
  padding: 44px 0 40px;
  text-align: center;
}
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #efe8df;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.site-footer__social:hover { opacity: .75; }
.site-footer__legal {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #b6a99c;
}
.site-footer__legal a { color: #d9cfc4; text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .story { padding: 60px 0 66px; }
  .story__columns { grid-template-columns: 1fr; gap: 22px; max-width: 480px; }
  .story__intro { font-size: 17px; margin-bottom: 44px; }
  .newsletter { padding: 60px 0 64px; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form input { flex: 0 0 auto; width: 100%; }
  .btn { width: 100%; }

  /* Hero: photo on top, card stacked below (matches mobile design) */
  .hero { display: flex; flex-direction: column; }
  .hero__img { height: 62vw; min-height: 300px; object-position: 55% 42%; }
  .hero__inner { position: static; inset: auto; padding: 0; }
  .hero__card { width: 100%; padding: 34px 26px 36px; text-align: center; }
  .hero__title { text-align: center; }
}

@media (max-width: 420px) {
  .site-header__logo img { height: 32px; }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; }
  .hero__media { transition: none; }
  .hero:hover .hero__media { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
