/* Signed-out landing page. Same palette and type as the app (tokens.css). */
:root {
  --ground: #FDFCFB;
  --paper: #FDFCF8; /* the sketch videos are drawn on this cream */
  --ink: #3F2C2A;
  --text: #4D3533;
  --muted: rgba(77, 53, 51, .68);
  --faint: rgba(77, 53, 51, .46);
  --hair: rgba(77, 53, 51, .14);
  --dots: rgba(77, 53, 51, .22);
  --tint: #F5EFED;
  --brand: #4D3533;
  --on-brand: #FDFCFB;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
:root[data-dark] {
  --ground: #1A1614;
  --paper: #211C1A;
  --ink: #F6EFEA;
  --text: #E9DFDA;
  --muted: rgba(246, 239, 234, .66);
  --faint: rgba(246, 239, 234, .44);
  --hair: rgba(246, 239, 234, .14);
  --dots: rgba(246, 239, 234, .22);
  --tint: #2A2422;
  --brand: #F6EFEA;
  --on-brand: #1A1614;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { background: var(--ground); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: 8px; z-index: 5; padding: 10px 14px; border-radius: 10px; background: var(--ground); transform: translateY(-160%); }
.skip:focus { transform: none; }
[data-dark] .brand img, [data-dark] .tile.logo img { filter: brightness(0) invert(.92); }

/* Header */
.top { position: relative; display: flex; align-items: center; justify-content: space-between; height: 104px; padding: 0 64px; font-size: 14px; }
.top-left, .top-right { display: flex; align-items: center; gap: 22px; }
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.brand img { display: block; height: 36px; width: auto; }
.navlink { color: var(--muted); transition: color .2s; }
.navlink:hover { color: var(--ink); }

/* GitHub's own Star button, as on github.com */
.gh { display: inline-flex; font: 600 12px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; color: #25292e; }
.gh-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid #d1d9e0; border-radius: 6px; background: #f6f8fa; box-shadow: 0 1px 0 rgba(31, 35, 40, .04); transition: background .15s, border-color .15s; }
.gh:hover .gh-btn { background: #eff2f5; border-color: #d1d9e0; }
.gh:active .gh-btn { background: #e6eaef; }
.gh-mark { width: 16px; height: 16px; color: #1f2328; }
[data-dark] .gh { color: #f0f6fc; }
[data-dark] .gh-btn { background: #212830; border-color: #3d444d; box-shadow: none; }
[data-dark] .gh:hover .gh-btn { background: #262c36; }
[data-dark] .gh-mark { color: #f0f6fc; }

.button { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: opacity .2s; }
.button.solid { background: var(--brand); color: var(--on-brand); }
.button.small { height: 38px; padding: 0 16px; font-size: 14px; }
.button:hover { opacity: .88; }
.ulink { color: var(--ink); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--dots); transition: text-decoration-color .2s; }
.ulink:hover { text-decoration-color: var(--ink); }

/* Sketch videos */
.clip { width: min(880px, calc(100% - 32px)); aspect-ratio: 1760 / 992; margin: 48px auto 0; overflow: hidden; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px var(--hair); }
.clip.hero-clip { margin-top: 24px; }
.clip.spaced { margin-top: 120px; }
.clip.close { margin-top: 32px; }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* In dark mode the pencil drawings turn into light lines on dark paper; hue-rotate keeps logo colors. */
[data-dark] .clip video { filter: invert(.9) hue-rotate(180deg) contrast(.92); }

/* Text column */
.col { width: min(640px, calc(100% - 40px)); margin: 120px auto 0; }
.intro { margin-top: 56px; }
h1 { font: 400 54px/1.08 var(--serif); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.intro > p { margin-top: 18px; font-size: 18px; line-height: 1.6; }
.intro > p:first-of-type { margin-top: 24px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.well { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 12px 16px; border-radius: 12px; background: var(--tint); font: 13px/1.5 var(--mono); color: var(--ink); }
.well code { min-width: 0; overflow-wrap: anywhere; font: inherit; }
.dim { color: var(--faint); }
.note { font-size: 14px !important; color: var(--muted); margin-top: 12px !important; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.sub { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.caption { margin-top: 20px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.caption b { font-weight: 400; color: var(--ink); }

/* App list rows: tile, title over one line, dotted rules */
.rows { list-style: none; margin-top: 20px; border-bottom: 1px dotted var(--dots); }
.rows li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px dotted var(--dots); }
.rows li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rows b { font-weight: 400; font-size: 15px; line-height: 1.4; color: var(--ink); }
.rows li > div > span, .rows li > div > code { font-size: 13px; line-height: 1.45; color: var(--muted); }
.rows li > div > code { font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
code.i { font: 12px var(--mono); color: var(--ink); }
.tile { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--tint); color: var(--text); }
.tile svg { width: 20px; height: 20px; }
.tile.logo { background: var(--ground); box-shadow: inset 0 0 0 1px var(--hair); }
.tile.logo img { width: 22px; height: 22px; object-fit: contain; }
.copy, .row-go { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--hair); transition: color .2s, box-shadow .2s; display: inline-flex; align-items: center; }
.copy:hover, .row-go:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--dots); }
.well .copy { height: 26px; box-shadow: none; }

.closing { margin-top: 144px; }
.closing h2 { font: 400 44px/1.1 var(--serif); letter-spacing: -.01em; }
.closing > p { margin-top: 16px; font-size: 18px; line-height: 1.6; }
.foot { margin-top: 144px; padding: 40px 0 160px; border-top: 1px dotted var(--dots); font-size: 15px; }
.foot nav { display: flex; flex-direction: column; gap: 14px; }
.foot p { margin-top: 40px; font-size: 14px; color: var(--faint); }

/* Brown pill section nav */
.pillnav { position: fixed; left: 50%; bottom: 28px; z-index: 4; transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--brand); box-shadow: 0 8px 24px rgba(77, 53, 51, .18); font-size: 15px; color: var(--on-brand); }
.pillnav a { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; transition: background .2s; white-space: nowrap; }
.pillnav a:hover { background: rgba(255, 255, 255, .08); }
.pillnav a.on { background: rgba(255, 255, 255, .14); }
[data-dark] .pillnav a:hover { background: rgba(0, 0, 0, .06); }
[data-dark] .pillnav a.on { background: rgba(0, 0, 0, .1); }
.pillnav svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .top { height: 76px; padding: 0 20px; }
  .top-left { display: none; }
  .top-right { gap: 16px; }
  .brand { position: static; transform: none; }
  .brand img { height: 30px; }
  .clip { border-radius: 16px; }
  .clip.spaced { margin-top: 88px; }
  .col { margin-top: 88px; }
  .intro { margin-top: 40px; }
  h1 { font-size: 40px; }
  .intro > p { font-size: 17px; }
  .rows li > div > code { white-space: normal; overflow-wrap: anywhere; }
  .closing { margin-top: 104px; }
  .closing h2 { font-size: 36px; }
  .pillnav { bottom: 16px; font-size: 14px; }
  .pillnav a { height: 40px; padding: 0 12px; }
  .pillnav svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
