/* harla.coffee, "coming soon". One dark screen (the app's roast mode, docs/design/direction-b.md,
   taken a shade deeper). A roast draws itself slowly behind the message; its grid and reference
   only show around the pointer. Amber (--ror) is only the logo's development mark and the RoR. */

@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ground: #0E0C0B;
  --line: #2E2A26;
  --ink: #F3EEE7;
  --ink2: #A39A8F;
  --ink3: #6E665D;
  --ror: #F2A14A;
  --et: #7F93A3;
  --gutter: clamp(22px, 4.5vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
h1, p { margin: 0; }
::selection { background: color-mix(in srgb, var(--ror) 40%, transparent); color: var(--ink); }

/* The room: dark at the edges, a faint warmth low on the right where the roast ends. */
.stage {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  background:
    radial-gradient(60% 55% at 82% 78%, rgba(242, 161, 74, .07), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55) 100%),
    var(--ground);
}
#curve { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.top { position: absolute; inset: 0 0 auto 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; height: 84px; padding: 0 var(--gutter); }
/* The logo: the name over the phase bar, drying and Maillard grey, development amber. */
.brand { display: inline-flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.phase { display: flex; gap: 2px; height: 3px; }
.phase i { border-radius: 2px; background: var(--ink2); }
.phase i:nth-child(1) { flex: 45 1 0; }
.phase i:nth-child(2) { flex: 35 1 0; }
.phase i:nth-child(3) { flex: 20 1 0; background: var(--ror); }
.soon { font-size: 13px; letter-spacing: .01em; color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: rgba(14, 12, 11, .5); }

.copy { position: relative; z-index: 2; padding: clamp(150px, 26vh, 260px) var(--gutter) 0; max-width: 900px; }
h1 { font-size: clamp(48px, 7.2vw, 112px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 500; }
h1 .line { display: block; }
.lede { color: var(--ink); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; max-width: 780px; margin: 32px 0 48px; text-wrap: balance; }
/* What it does, under what it is: quieter and a step smaller. */
.lede span { display: block; color: var(--ink2); font-size: .68em; line-height: 1.55; letter-spacing: 0; font-weight: 400; max-width: 44ch; margin-top: 12px; }

/* The address is the call to action: large, one click selects it for copying. */
.mail { display: flex; flex-direction: column; gap: 8px; }
.mail span { color: var(--ink3); font-size: 14px; letter-spacing: .01em; }
.mail a {
  position: relative; width: fit-content; padding-bottom: 6px;
  color: var(--ink); text-decoration: none; user-select: all;
  font-size: clamp(24px, 2.3vw, 34px); font-weight: 500; letter-spacing: -0.02em;
}
.mail a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ink2) 0 45%, var(--ink2) 45% 80%, var(--ror) 80% 100%);
  transform-origin: left; transition: transform .6s var(--ease), opacity .3s;
}
.mail a:hover::after { transform: scaleX(1.06); }
a:focus-visible { outline: 2px solid var(--ror); outline-offset: 6px; border-radius: 6px; }

.foot { position: absolute; z-index: 2; left: var(--gutter); bottom: 24px; font-size: 12px; color: var(--ink3); }

/* Entrance: the words come into focus, one line after another. */
@media (prefers-reduced-motion: no-preference) {
  .js h1 .line, .js .lede, .js .mail { opacity: 0; filter: blur(14px); transform: translateY(14px); animation: focus 1.6s var(--ease) forwards; }
  .js h1 .line:nth-child(2) { animation-delay: .25s; }
  .js .lede { animation-delay: .7s; }
  .js .mail { animation-delay: 1.05s; }
  .js .top, .js .foot { opacity: 0; animation: fade 1.4s ease 1.3s forwards; }
}
@keyframes focus { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 700px) {
  .top { height: 68px; }
  .copy { padding-top: 112px; }
  .lede { margin: 22px 0 30px; }
}
@media (max-height: 640px) and (min-width: 701px) {
  .stage { min-height: 640px; }
  .copy { padding-top: 120px; }
}
