/* Past Lantern website. Colours come from the app palette (docs/ui-experience/palette.md). */
:root {
  --charcoal: #394150;
  --night: #232830;
  --green: #a3be8d;
  --paper: #ffffff;
  --panel: #ffffff;
  --band: #f2f4f8;
  --ink: #1d222b;
  --soft: #586172;
  --line: #e0e4eb;
  --accent: #3f6b4a;
  --shadow: 0 1px 2px rgba(35, 40, 48, .08), 0 18px 48px rgba(35, 40, 48, .16);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15181d;
    --panel: #222731;
    --band: #1b1f26;
    --ink: #e4e8f0;
    --soft: #a4acba;
    --line: #3a414d;
    --accent: #a3be8d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.08rem; line-height: 1.35; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; max-width: 780px; margin-inline: auto; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: 1.16rem; color: var(--soft); margin-top: 18px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(20px, calc((100% - 1160px) / 2));
  background: rgba(30, 50, 39, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #e4e8f0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
.mark { width: 28px; height: 28px; flex: none; border-radius: 22%; }
.top nav { display: flex; gap: 22px; font-size: .92rem; }
.top nav a { text-decoration: none; opacity: .8; }
.top nav a:hover, .top nav a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.top nav { margin-left: auto; }
.langs { display: flex; gap: 2px; font-size: .82rem; border: 1px solid rgba(228, 232, 240, .25); border-radius: 999px; padding: 2px; }
.langs a { text-decoration: none; padding: 3px 10px; border-radius: 999px; opacity: .75; }
.langs a:hover, .langs a:focus-visible { opacity: 1; }
.langs a[aria-current="page"] { background: rgba(228, 232, 240, .16); opacity: 1; }
@media (max-width: 760px) { .top nav { display: none; } }

/* Hero */
.hero {
  background:
    radial-gradient(70% 50% at 50% 82%, rgba(163, 190, 141, .28), rgba(163, 190, 141, 0) 70%),
    linear-gradient(#22382c, #33523f);
  color: #e4e8f0;
  padding: 72px 0 56px;
  text-align: center;
}
.hero .eyebrow { color: var(--green); }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lede { color: #d3ddd3; max-width: 62ch; margin-inline: auto; }
.shot.hero-shot { width: min(1160px, 100% - 40px); margin: 48px auto 0; }
.note { margin-top: 22px; font-size: .9rem; color: #b9c7ba; }

/* Screens */
/* The image is a Mac window with its own rounded corners. The rounding here is a share of the image's width, a
   little more than the window's, so it follows the window at every size and hides what was behind its corners. */
.shot { margin: 0; container-type: inline-size; }
.shot picture { display: block; }
.shot img {
  width: 100%;
  border-radius: 14px;
  border-radius: 1.45cqw;
  box-shadow: 0 0 0 1px rgba(35, 40, 48, .16), var(--shadow);
}
.wide { margin-top: 44px; }
.stack { display: flex; flex-direction: column; }
.stack .shot:first-child { width: 88%; }
/* The second window sits over the bottom of the first, whatever their heights. */
.stack .inset { width: 62%; align-self: flex-end; margin-top: -13%; position: relative; }

/* Bands */
.band { padding: 96px 0; }
.band.alt { background: var(--band); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
#tree .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.tight { margin-top: 72px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.tight.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.copy p { color: var(--soft); margin-top: 16px; }
.copy h3 { margin-top: 28px; }
.copy h3:first-child { margin-top: 0; }
.copy h3 + p { margin-top: 8px; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.points li { padding-left: 18px; border-left: 3px solid var(--green); color: var(--soft); }
.points strong { color: var(--ink); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.three p { color: var(--soft); margin-top: 8px; }
.aside { text-align: center; color: var(--soft); margin-top: 64px; }
.soon {
  display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--green); color: #1c2a1f; vertical-align: 2px; white-space: nowrap;
}

/* Values */
.values {
  list-style: none; counter-reset: v; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.values li {
  counter-increment: v; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 24px 24px 76px;
}
.values li::before {
  content: counter(v); position: absolute; left: 24px; top: 20px;
  font: 700 1.7rem/1 var(--sans); color: var(--accent); letter-spacing: -.02em;
}
.values p { color: var(--soft); margin-top: 6px; }

/* Closing and footer */
.closing {
  background:
    linear-gradient(#33523f, #22382c);
  color: #e4e8f0; padding: 104px 0;
}
.closing .lede { color: #d3ddd3; }
.contact { margin-top: 26px; color: #d3ddd3; }
.contact a { color: var(--green); font-weight: 600; text-underline-offset: 4px; }
.mark.big { width: 72px; height: 72px; margin: 0 auto 22px; display: block; }
.foot { background: #1b2d23; color: #9aa3b2; font-size: .88rem; padding: 28px 0 40px; border-top: 1px solid rgba(228, 232, 240, .1); }
.foot p + p { margin-top: 6px; }
.foot strong { color: #e4e8f0; }

a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .band { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .split, #tree .split, .split.tight, .split.tight.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #tree .stack, .split.tight.flip .stack { order: 2; }
  .three, .values { grid-template-columns: minmax(0, 1fr); }
  .three { gap: 22px; }
  .stack .shot:first-child { width: 94%; }
}

/* Chinese: no italic emphasis, and headings need no tight measure */
:lang(zh-Hans) h1, :lang(zh-Hans) h2 { letter-spacing: 0; line-height: 1.3; }
:lang(zh-Hans) .hero h1 { max-width: 12em; }
:lang(zh-Hans) .hero h1 em { font-style: normal; }
:lang(zh-Hans) .eyebrow { letter-spacing: .08em; }
:lang(fr) .hero h1 { max-width: 19ch; }
