/* LivinTech — holding page
   Palette: canopy → soil, a brass ground line, warm paper type. */

:root {
  --canopy: #0d2a22;
  --soil:   #071a15;
  --brass:  #c79a4b;
  --paper:  #f2efe6;
  --paper-dim: rgba(242, 239, 230, 0.58);

  --line: 1px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--soil);
  color: var(--paper);
  font-family: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------- stage */

.stage {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
}

/* ------------------------------------------------------------ sky */

.sky {
  display: grid;
  align-items: end;
  justify-items: center;
  /* The mark settles onto the ground line rather than floating above it. */
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(2.5rem, 9vh, 6rem))
    var(--gutter)
    clamp(0.75rem, 2.5vh, 1.75rem);
  background:
    linear-gradient(to bottom, #113429 0%, var(--canopy) 62%, #0a2119 100%);
}

.mark {
  display: block;
  width: clamp(148px, 30vh, 268px);
  height: auto;
  /* The source file is white artwork on solid black; screening drops
     the black so only the sprout sits on the canopy. */
  mix-blend-mode: screen;
  filter: contrast(1.12);
}

/* --------------------------------------------------------- ground */

.ground {
  border-top: var(--line) solid var(--brass);
  background: var(--soil);
}

.ground__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  padding:
    clamp(1.75rem, 5vh, 3.25rem)
    var(--gutter)
    calc(env(safe-area-inset-bottom, 0px) + clamp(1.75rem, 5vh, 3.25rem));
}

.identity {
  min-width: 0;
  max-width: min(46ch, 100%);
}

.wordmark {
  margin: 0 0 0.75rem;
  font-size: clamp(2.125rem, 1.2rem + 4.4vw, 4rem);
  font-weight: 600;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.005em;
  line-height: 1;
}

.blurb {
  margin: 0 0 1.25rem;
  color: var(--paper-dim);
  text-wrap: pretty;
}

.mail {
  display: inline-block;
  color: var(--brass);
  text-decoration: none;
  border-bottom: var(--line) solid rgba(199, 154, 75, 0.4);
  padding-bottom: 0.1em;
  transition: border-color 160ms ease, color 160ms ease;
}

.mail:hover { border-bottom-color: var(--brass); }

.mail:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 2px;
}

.status {
  margin: 0;
  flex: none;
  color: var(--paper-dim);
  font-size: 0.9375rem;
}

.status::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-right: 0.6em;
  vertical-align: 0.1em;
  border-radius: 50%;
  background: var(--brass);
}

/* ------------------------------------------- one load-in sequence */

@media (prefers-reduced-motion: no-preference) {
  .ground {
    border-top-color: transparent;
    background-image: linear-gradient(var(--brass), var(--brass));
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 0% var(--line);
    animation: draw-ground 760ms cubic-bezier(0.22, 0.75, 0.3, 1) both;
  }

  .mark {
    clip-path: inset(100% 0 0 0);
    animation: grow 1100ms cubic-bezier(0.18, 0.72, 0.24, 1) 420ms both;
  }

  .ground__inner {
    animation: settle 700ms ease-out 1000ms both;
  }

  @keyframes draw-ground { to { background-size: 100% var(--line); } }
  @keyframes grow { to { clip-path: inset(0 0 0 0); } }
  @keyframes settle { from { opacity: 0; } to { opacity: 1; } }
}

/* ----------------------------------------------------------- narrow */

@media (max-width: 34rem) {
  .ground__inner { flex-direction: column; align-items: flex-start; }
}
