/* The landing page: a page that scrolls, rather than an app that fills the window. Only what's
   specific to this page; the look comes from motif.css, which the sync script copies in. */

html, body { height: auto; min-height: 100%; overflow: auto; }
body { font-size: 15px; line-height: 1.55; background: var(--chrome); }

.appbar { position: sticky; top: 0; z-index: 20; }
.appbar a.cmd { text-decoration: none; }
a.brand { text-decoration: none; }
.brand .word b { font-weight: 600; }
.brand .net { color: var(--muted); }
/* The banner carries the name, so the app bar shows only the mark. */
.appbar .brand .word { display: none; }

/* Three columns when wide: Tools on the left, the banner and hero in the centre, Coming later on the right. */
.layout { width: min(1360px, 100% - 32px); margin: 24px auto 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; grid-template-areas: "tools centre later"; gap: 32px; align-items: start; }
.layout main { grid-area: centre; }
.panel { position: sticky; top: 72px; padding: 16px; background: var(--strip); border: 1px solid var(--line); border-radius: 10px; }
.panel h2 { margin: 0 0 12px; color: var(--ink); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel h2::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.panel > p { margin: 0 0 12px; }

.banner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px 32px; background: var(--bar); border: 1px solid var(--line); border-radius: 12px; }
.banner .lockup { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.banner .lockup svg { width: 52px; height: 52px; }
.banner .lockup .word { font-size: 46px; line-height: 1; letter-spacing: -.025em; }
.banner .lockup .word b { font-weight: 600; }
.banner .lockup .net { color: var(--muted); }
.banner .tag { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .02em; }

/* What's new: one line under the banner. */
.news { margin: 16px 0 0; text-align: center; }
.news a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 14px 6px 6px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bar); color: var(--text); font-size: 14px; line-height: 1.4; text-align: left; text-decoration: none; }
.news a:hover { background: var(--hover); color: var(--ink); }
.news b { color: var(--ink); font-weight: 600; }
.news-tag { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }

.hero { padding: 36px 0 8px; text-align: center; }
.hero h1 { margin: 0 auto 18px; color: var(--ink); font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; max-width: 24em; }
.hero p { margin: 0 auto 12px; max-width: 42em; }

/* Tools: the cards, stacked in their panel. */
.panel-tools { grid-area: tools; }
.panel-tools h2::before { background: var(--accent); }
.tools { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tool { display: flex; flex-direction: column; gap: 8px; padding: 14px; box-shadow: none; font-size: 14px; line-height: 1.5; }
.tool .top { display: flex; align-items: center; gap: 10px; }
.tool h3 { flex: 1; margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.tool h3 .motif { color: var(--muted); font-weight: 400; }
.tool p { margin: 0; flex: 1; }
.tool a.primary, .tool a.ghost { text-decoration: none; }
/* Libraries: a group of their own under the tools, named as you'd type them (Motif.Is). */
.panel-tools .group { margin: 20px 0 12px; color: var(--ink); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-tools .group::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.panel .legend { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.legend b { color: var(--text); font-weight: 600; }

/* Coming later. */
.panel-later { grid-area: later; }
.panel-later h2 { margin-bottom: 4px; }
.panel-later h2::before { border: 1.5px solid var(--muted); }
.panel-later > p { font-size: 13px; }
.ideas { margin: 4px 0 14px; padding: 0; list-style: none; }
.ideas li { padding: 12px 0; border-top: 1px dashed var(--line-strong); font-size: 13.5px; line-height: 1.5; }
.ideas li:first-child { border-top: 0; }
.ideas b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }
.ideas code { font-size: .88em; }
.panel-later .more { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }

footer { width: min(1360px, 100% - 32px); margin: 48px auto 0; padding: 20px 0 40px; border-top: 1px solid var(--line); font-size: 13px; }
footer p { margin: 0 0 6px; }

/* Two columns: the banner and hero on the wider left; Tools on top of Coming later on the right.
   Neither panel stays in view, or the upper one would slide over the lower. */
@media (max-width: 1179px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto 1fr; grid-template-areas: "centre tools" "centre later"; row-gap: 20px; }
  .panel { position: static; }
}
/* One column, the hero first. */
@media (max-width: 799px) {
  .layout { grid-template-columns: 1fr; grid-template-areas: "centre" "tools" "later"; gap: 24px; margin-top: 16px; }
  .tools { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 599px) {
  .banner { padding: 26px 12px 22px; }
  .banner .lockup svg { width: 38px; height: 38px; }
  .banner .lockup .word { font-size: 34px; }
  .hero { padding-top: 24px; text-align: left; }
  .hero h1 { font-size: 25px; }
  .tools { grid-template-columns: 1fr; }
}
