/* =====================================================================
   Thetulepas — Coming Soon page
   Built on the Master Brand Production Package v1.0.

   Two themes off one set of semantic tokens. Light is the default and the
   brand's natural ground — Warm Cream with Forest Green ink, exactly as
   04_COLOUR describes it. Dark is the same palette inverted.

   Rules of the road:
   - The six locked screen values are declared ONCE, in the block below.
   - Everything else consumes a SEMANTIC token (--bg, --ink, --rule …).
     Never reach for a brand hex, or a raw rgba, further down the file —
     that is what breaks one theme while you are looking at the other.
   ===================================================================== */

/* -------------------------------------------- locked values + derived */
:root{
  /* the six locked sRGB screen values, from 04_COLOUR */
  --forest:#103F31;
  --terracotta:#C8643B;
  --sand:#E7D4B8;
  --sage:#8DA08A;
  --charcoal:#232B29;
  --cream:#F7F2E8;

  /* tints / shades derived from them */
  --forest-900:#0B2C22;
  --forest-500:#1B5A44;
  --terracotta-700:#A94F2C;
  --terracotta-800:#8F4225;
  --cream-050:#FBF8F1;

  /* channel triplets, so themes can vary alpha without restating a hex */
  --rgb-cream:247,242,232;
  --rgb-charcoal:35,43,41;
  --rgb-forest:16,63,49;
  --rgb-forest-900:11,44,34;
  --rgb-terracotta:200,100,59;
  --rgb-sand:231,212,184;

  /* layout — theme-independent */
  --shell:1240px;
  --gutter:clamp(20px,5vw,64px);
  --ease:cubic-bezier(.22,.61,.36,1);
  --radius-pill:999px;
  --radius-card:22px;
}

/* ==================================================== THEME: light (default) */
:root{
  color-scheme:light;

  --bg:var(--cream-050);
  --wash-warm:rgba(var(--rgb-terracotta),.10);
  --wash-cool:rgba(var(--rgb-sand),.55);
  --leaf-opacity:.07;

  --heading:var(--forest-900);
  --ink:rgba(var(--rgb-charcoal),.88);
  --ink-soft:rgba(var(--rgb-charcoal),.72);
  /* .55 and .62 measured 3.43:1 and 4.17:1 on this ground — below the
     4.5:1 that 04_COLOUR's own token file sets for normal text. */
  --ink-muted:rgba(var(--rgb-charcoal),.70);
  --eyebrow-ink:rgba(var(--rgb-charcoal),.72);

  --rule:rgba(var(--rgb-charcoal),.14);
  --rule-strong:rgba(var(--rgb-charcoal),.34);

  /* The logo master is Forest Green ink — on cream it needs no plate. */
  --plate-bg:transparent;
  --plate-shadow:none;
  --plate-shadow-hover:none;

  --chip-bg:rgba(255,255,255,.60);
  --card-bg:rgba(255,255,255,.58);
  --card-wash:rgba(var(--rgb-terracotta),.10);
  --aside-bg:rgba(var(--rgb-sand),.34);
  --film-bg:var(--cream);
  --film-shadow:0 30px 64px -40px rgba(var(--rgb-charcoal),.55);

  --btn-solid-ink:#FFF9F3;
  --btn-quiet-ink:var(--forest-900);
  --btn-quiet-bg:rgba(255,255,255,.55);
  --btn-quiet-hover-bg:rgba(255,255,255,.95);

  --control-bg:rgba(var(--rgb-forest-900),.58);
  --control-ink:var(--cream-050);
  --control-hover-bg:rgba(var(--rgb-forest-900),.80);
}

/* ============================================================ THEME: dark */
/* Applied when the visitor's system asks for dark and they have not chosen
   light themselves, or when the toggle sets data-theme="dark" outright. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;

    --bg:var(--forest-900);
    --wash-warm:rgba(var(--rgb-terracotta),.20);
    --wash-cool:rgba(27,90,68,.55);
    --leaf-opacity:.10;

    --heading:var(--cream-050);
    --ink:rgba(var(--rgb-cream),.86);
    --ink-soft:rgba(var(--rgb-cream),.72);
    --ink-muted:rgba(var(--rgb-cream),.55);
    --eyebrow-ink:rgba(var(--rgb-sand),.80);

    --rule:rgba(var(--rgb-cream),.20);
    --rule-strong:rgba(var(--rgb-cream),.45);

    /* No reversed logo master exists, so on the forest ground the supplied
       master sits on a warm-cream clear-space plate. See LOGO-REQUEST.md. */
    --plate-bg:var(--cream-050);
    --plate-shadow:0 18px 38px -26px rgba(0,0,0,.75);
    --plate-shadow-hover:0 22px 44px -26px rgba(0,0,0,.85);

    --chip-bg:rgba(var(--rgb-cream),.06);
    --card-bg:rgba(var(--rgb-forest),.72);
    --card-wash:rgba(var(--rgb-terracotta),.18);
    --aside-bg:rgba(var(--rgb-forest-900),.45);
    --film-bg:var(--forest);
    --film-shadow:0 40px 80px -48px rgba(0,0,0,.85);

    --btn-quiet-ink:var(--cream-050);
    --btn-quiet-bg:rgba(var(--rgb-cream),.05);
    --btn-quiet-hover-bg:rgba(var(--rgb-cream),.12);

    --control-bg:rgba(var(--rgb-forest-900),.62);
    --control-hover-bg:rgba(var(--rgb-forest-900),.85);
  }
}

:root[data-theme="dark"]{
  color-scheme:dark;

  --bg:var(--forest-900);
  --wash-warm:rgba(var(--rgb-terracotta),.20);
  --wash-cool:rgba(27,90,68,.55);
  --leaf-opacity:.10;

  --heading:var(--cream-050);
  --ink:rgba(var(--rgb-cream),.86);
  --ink-soft:rgba(var(--rgb-cream),.72);
  --ink-muted:rgba(var(--rgb-cream),.55);
  --eyebrow-ink:rgba(var(--rgb-sand),.80);

  --rule:rgba(var(--rgb-cream),.20);
  --rule-strong:rgba(var(--rgb-cream),.45);

  --plate-bg:var(--cream-050);
  --plate-shadow:0 18px 38px -26px rgba(0,0,0,.75);
  --plate-shadow-hover:0 22px 44px -26px rgba(0,0,0,.85);

  --chip-bg:rgba(var(--rgb-cream),.06);
  --card-bg:rgba(var(--rgb-forest),.72);
  --card-wash:rgba(var(--rgb-terracotta),.18);
  --aside-bg:rgba(var(--rgb-forest-900),.45);
  --film-bg:var(--forest);
  --film-shadow:0 40px 80px -48px rgba(0,0,0,.85);

  --btn-quiet-ink:var(--cream-050);
  --btn-quiet-bg:rgba(var(--rgb-cream),.05);
  --btn-quiet-hover-bg:rgba(var(--rgb-cream),.12);

  --control-bg:rgba(var(--rgb-forest-900),.62);
  --control-hover-bg:rgba(var(--rgb-forest-900),.85);
}

/* --------------------------------------------------------------- reset */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-ui);
  font-size:var(--text-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg,video,picture{display:block;max-width:100%}
img{height:auto}
h1,h2,h3,p,ul,figure{margin:0}
ul{list-style:none;padding:0}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
:focus-visible{outline:2.5px solid var(--terracotta);outline-offset:3px;border-radius:4px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
}

.skip-link{
  position:fixed;top:10px;left:10px;z-index:200;
  padding:.6rem 1rem;border-radius:8px;
  background:var(--forest);color:var(--cream-050);font-weight:600;
  transform:translateY(-180%);transition:transform .2s var(--ease);
}
.skip-link:focus{transform:none}

/* ---------------------------------------------------------- page frame */
.page{
  position:relative;
  min-height:100svh;
  display:flex;flex-direction:column;
  width:100%;max-width:var(--shell);
  margin-inline:auto;padding-inline:var(--gutter);
}

/* Two soft organic washes plus the botanical plate, so the flat ground
   never reads as a plain block in either theme. */
body::before{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(70% 55% at 82% 8%, var(--wash-warm), transparent 62%),
    radial-gradient(60% 50% at 6% 92%, var(--wash-cool), transparent 65%),
    var(--bg);
}
body::after{
  content:"";position:fixed;z-index:-1;pointer-events:none;
  right:-10vw;bottom:-14vh;width:min(62vw,720px);aspect-ratio:1;
  background:url("../assets/img/botanical-leaves.png") right bottom / contain no-repeat;
  opacity:var(--leaf-opacity);transform:rotate(-8deg);
}

/* ============================================================ masthead */
.masthead{
  display:flex;align-items:center;justify-content:space-between;
  gap:1.25rem;flex-wrap:wrap;
  padding-block:clamp(1.5rem,3.5vw,2.6rem);
}
.masthead__end{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}

/* In dark mode --plate-bg turns the padding into a visible clear-space
   plate; in light the logo sits straight on the cream ground. */
.brand{
  display:inline-block;
  padding:clamp(.7rem,1.4vw,.95rem) clamp(1rem,2vw,1.4rem);
  border-radius:18px;
  background:var(--plate-bg);
  box-shadow:var(--plate-shadow);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),
             background .3s var(--ease);
}
.brand:hover{transform:translateY(-2px);box-shadow:var(--plate-shadow-hover)}
.brand img{width:clamp(152px,16vw,200px);height:auto}

.status{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:.46rem 1rem;border-radius:var(--radius-pill);
  border:1px solid var(--rule);
  background:var(--chip-bg);
  font-size:var(--text-small);font-weight:500;letter-spacing:.01em;
  color:var(--ink-soft);
}
.status__dot{
  width:.5rem;height:.5rem;border-radius:50%;flex:0 0 auto;
  background:var(--terracotta);
  box-shadow:0 0 0 0 rgba(var(--rgb-terracotta),.6);
  animation:pulse 2.6s var(--ease) infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(var(--rgb-terracotta),.55)}
  70%{box-shadow:0 0 0 .55rem rgba(var(--rgb-terracotta),0)}
  100%{box-shadow:0 0 0 0 rgba(var(--rgb-terracotta),0)}
}

/* ------------------------------------------------------- theme toggle */
/* Drawn to the 06_ICONS spec — 24px grid, 1.8 stroke, round caps, outline
   form with one terracotta accent detail — because the brand set has no
   sun or moon. Shows the theme it will switch TO, not the current one. */
.theme-toggle{
  display:grid;place-items:center;
  width:2.6rem;height:2.6rem;border-radius:var(--radius-pill);
  border:1px solid var(--rule);
  background:var(--chip-bg);
  color:var(--ink-soft);
  transition:background .25s var(--ease),border-color .25s var(--ease),
             color .25s var(--ease),transform .25s var(--ease);
}
.theme-toggle:hover{
  border-color:var(--rule-strong);
  color:var(--heading);
  transform:translateY(-2px);
}
.theme-toggle svg{width:1.3rem;height:1.3rem}
/* The "one accent detail" the icon spec calls for — kept on the token so it
   tracks the palette rather than drifting as a hard-coded hex in the SVG. */
.theme-toggle .accent-stroke{stroke:var(--terracotta)}
.theme-toggle .accent-fill{fill:var(--terracotta)}
.theme-toggle .icon-sun{display:none}
.theme-toggle .icon-moon{display:block}
/* In dark, offer the sun. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .theme-toggle .icon-sun{display:block}
  :root:not([data-theme="light"]) .theme-toggle .icon-moon{display:none}
}
:root[data-theme="dark"] .theme-toggle .icon-sun{display:block}
:root[data-theme="dark"] .theme-toggle .icon-moon{display:none}

/* ===================================================== type primitives */
.h2{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.7rem,2.8vw,2.3rem);
  line-height:1.12;letter-spacing:-.028em;
  color:var(--heading);
}
.h3{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.05rem,1.35vw,1.19rem);
  line-height:1.2;letter-spacing:-.02em;
  color:var(--heading);
}

.body-copy{font-size:var(--text-ui);line-height:1.66;color:var(--ink-muted)}
.body-copy--light{color:var(--ink-soft)}

.eyebrow{
  display:flex;align-items:center;gap:.85rem;
  font-size:.7rem;font-weight:600;
  letter-spacing:.22em;text-transform:uppercase;
  color:var(--eyebrow-ink);
}
.eyebrow__rule,
.eyebrow--after::after{
  content:"";display:block;flex:0 0 auto;
  width:28px;height:2px;background:var(--terracotta);
}
.eyebrow--after::after{width:34px;height:1.5px;background:currentColor;opacity:.5}

/* ============================================================= buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  padding:.74rem 1.4rem;border-radius:var(--radius-pill);
  font-size:var(--text-ui);font-weight:600;white-space:nowrap;
  border:1.5px solid transparent;
  transition:background .25s var(--ease),color .25s var(--ease),
             border-color .25s var(--ease),transform .25s var(--ease),
             box-shadow .25s var(--ease);
}
.btn--lg{padding:.98rem 1.75rem;font-size:1rem}
.btn__icon{width:1.15em;height:1.15em;flex:0 0 auto}
.btn__arrow{width:1.05em;height:1.05em;transition:transform .3s var(--ease)}
.btn:hover .btn__arrow{transform:translateY(3px)}

/* 04_COLOUR gives terracotta the role "human accent", and its preferred
   pairs do not include white on it: the locked #C8643B carries this ink at
   only 3.76:1. The resting fill is therefore the derived --terracotta-700
   (5.23:1), which was already the hover shade — the identity is unchanged,
   the text is legible. Terracotta itself stays the accent it is specified
   to be: rules, ticks, the display word, the status dot. */
.btn--terracotta{background:var(--terracotta-700);color:var(--btn-solid-ink)}
.btn--terracotta:hover{background:var(--terracotta-800);transform:translateY(-2px);
  box-shadow:0 16px 32px -16px rgba(var(--rgb-terracotta),.85)}

.btn--outline{border-color:var(--rule);color:var(--btn-quiet-ink)}
.btn--outline:hover{border-color:var(--rule-strong);background:var(--btn-quiet-bg)}

.btn--quiet{
  border-color:var(--rule);color:var(--btn-quiet-ink);
  background:var(--btn-quiet-bg);
}
.btn--quiet:hover{border-color:var(--rule-strong);background:var(--btn-quiet-hover-bg)}

/* ================================================================ hero */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(2.5rem,5vw,4.5rem);
  align-items:center;
  padding-block:clamp(2rem,5vw,3.5rem) clamp(2.5rem,5vw,4rem);
}

.hero__title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.9rem,7.2vw,5rem);
  line-height:.98;letter-spacing:-.035em;
  color:var(--heading);
  margin-block:1.15rem 0;
}
.hero__title .line{display:block}
.hero__title .accent{color:var(--terracotta)}

.hero__lead{
  max-width:46ch;margin-top:1.4rem;
  font-size:var(--text-lead);line-height:1.6;
  color:var(--ink-soft);
}

.hero__actions{
  display:flex;flex-wrap:wrap;gap:.85rem;
  margin-top:2.1rem;
}

.hero__tagline{
  margin-top:2.4rem;padding-top:1.5rem;
  border-top:1px solid var(--rule);
  font-family:var(--font-display);font-style:italic;
  font-size:var(--text-ui);letter-spacing:.01em;
  color:var(--ink-muted);
}

/* ---------------------------------------------------------- logo film */
.hero__film{display:flex;flex-direction:column;gap:.9rem}

.film{
  position:relative;
  border-radius:var(--radius-card);
  overflow:hidden;
  border:1px solid var(--rule);
  background:var(--film-bg);
  box-shadow:var(--film-shadow);
}
.film__video{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}

/* The film's own frame is cream in both themes, so its control keeps the
   dark treatment regardless — it sits on the artwork, not on the page. */
.film__toggle{
  position:absolute;right:.85rem;bottom:.85rem;
  display:grid;place-items:center;
  width:2.5rem;height:2.5rem;border-radius:50%;
  color:var(--control-ink);
  background:var(--control-bg);
  border:1px solid rgba(var(--rgb-cream),.20);
  backdrop-filter:blur(6px);
  transition:background .2s var(--ease),transform .2s var(--ease);
}
.film__toggle:hover{background:var(--control-hover-bg);transform:translateY(-1px)}
.film__icon{width:1.1rem;height:1.1rem}
.film__icon--play{display:none}
.film__toggle.is-paused .film__icon--pause{display:none}
.film__toggle.is-paused .film__icon--play{display:block}

.film__caption{
  font-size:var(--text-small);line-height:1.5;
  color:var(--ink-muted);
}

/* ============================================================= contact */
.contact{padding-block:clamp(2rem,5vw,3.5rem)}

.contact__card{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(2rem,4vw,3.5rem);
  padding:clamp(1.75rem,4vw,3.25rem);
  border-radius:calc(var(--radius-card) + 8px);
  border:1px solid var(--rule);
  background:
    radial-gradient(90% 120% at 100% 0%, var(--card-wash), transparent 60%),
    var(--card-bg);
}
.contact__lead .h2{margin-block:1rem .8rem}

.email{
  display:inline-block;margin-top:1.6rem;
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.35rem,3.2vw,2.05rem);
  letter-spacing:-.02em;line-height:1.15;
  color:var(--heading);
  overflow-wrap:anywhere;
  text-decoration:underline;
  text-decoration-color:rgba(var(--rgb-terracotta),.6);
  text-decoration-thickness:2px;
  text-underline-offset:.22em;
  transition:color .25s var(--ease),text-decoration-color .25s var(--ease);
}
.email:hover{color:var(--terracotta);text-decoration-color:var(--terracotta)}

.contact__actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}

.contact__status{
  min-height:1.3rem;margin-top:.85rem;
  font-size:var(--text-small);color:var(--ink-soft);
}

.contact__aside{
  padding:clamp(1.3rem,2.4vw,1.75rem);
  border-radius:var(--radius-card);
  border:1px solid var(--rule);
  background:var(--aside-bg);
}
.checklist{margin-top:1.05rem;display:grid;gap:.72rem}
.checklist li{
  position:relative;padding-left:1.7rem;
  font-size:var(--text-ui);line-height:1.5;color:var(--ink-soft);
}
.checklist li::before{
  content:"";position:absolute;left:0;top:.42em;
  width:.72rem;height:.42rem;
  border-left:2px solid var(--terracotta);
  border-bottom:2px solid var(--terracotta);
  transform:rotate(-45deg);
}
.contact__note{
  margin-top:1.25rem;padding-top:1.05rem;
  border-top:1px solid var(--rule);
  font-size:var(--text-small);line-height:1.55;
  color:var(--ink-muted);
}

/* ============================================================== footer */
.site-footer{
  margin-top:auto;
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;flex-wrap:wrap;
  padding-block:clamp(2rem,4vw,2.75rem);
  border-top:1px solid var(--rule);
}
.site-footer__tag{
  font-family:var(--font-display);font-style:italic;
  font-size:var(--text-ui);color:var(--ink-soft);
}
.site-footer__legal{font-size:var(--text-small);color:var(--ink-muted)}

/* ========================================================== responsive */
@media (max-width:1080px){
  .hero{grid-template-columns:1fr;gap:2.75rem}
  .hero__film{order:-1;max-width:640px}
  .contact__card{grid-template-columns:1fr}
}

@media (max-width:760px){
  .masthead{padding-block:1.5rem 1.25rem}
  /* On a phone the message leads; the film follows it. */
  .hero__film{order:0}
  .hero__lead{font-size:var(--text-body)}
  .hero__actions .btn{flex:1 1 100%}
  .contact__actions .btn{flex:1 1 100%}
  .site-footer{flex-direction:column;align-items:flex-start;gap:.6rem}
}
