/* Atlasfig: a calm frame around colourful apps. Cool mist ground, slate ink, one fig accent. */
:root {
  --ground: #edf0f2;
  --surface: #f8f9fa;
  --ink: #1e2633;
  --muted: #535d6b;
  --line: #c8ced5;
  --fig: #7a3e66;
  --contour: #b9c1ca;
  --on-ink: #f8f9fa;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141a22;
    --surface: #1b222c;
    --ink: #e5e9ee;
    --muted: #9ba5b2;
    --line: #2e3844;
    --fig: #d6a5c6;
    --contour: #34404d;
    --on-ink: #141a22;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2.5px solid var(--fig); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--ink); color: var(--on-ink); padding: .5rem .9rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem); line-height: 1.02; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 700; }
p { margin: 0; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; border-radius: 8px; }
.brand svg { height: 34px; width: auto; }
.top nav { display: flex; gap: clamp(.9rem, 3vw, 1.75rem); font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); padding: .25rem 0; }
.top nav a:hover { color: var(--ink); }

/* Logo strokes inherit text colour */
.logo { stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo .dot { fill: currentColor; stroke: none; }
.logo .seed { fill: var(--fig); stroke: none; }

/* Hero */
.hero { position: relative; padding-top: clamp(2.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 9vw, 7.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }

.contours { width: 100%; max-width: 440px; justify-self: end; aspect-ratio: 1; }
/* Paths are scaled by transform; divide the stroke by that scale (--s) so lines stay even. */
.contours path { fill: none; stroke: var(--contour); --w: 1.4; stroke-width: calc(var(--w) / var(--s, 1)); }
.contours .fig-line { stroke: var(--ink); --w: 2.2; }
.contours .fig-inner { stroke: var(--muted); --w: 1.6; }
.contours .seed { fill: var(--fig); stroke: none; }

@media (prefers-reduced-motion: no-preference) {
  .contours .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.6, .05, .25, 1) forwards; animation-delay: var(--d, 0s); }
  .contours .seed { opacity: 0; animation: appear .6s ease-out 1.6s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.15rem; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--fig)); }
.btn.small { min-height: 40px; padding: .4rem .95rem; font-size: .9rem; }
.textlink { font-weight: 600; }

/* Sections */
section { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); max-width: 32rem; }

/* Live apps: three tall plates */
.live { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.plate { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 1px solid var(--line); border-radius: 28px; background: var(--ground); }
.icon { width: 96px; height: 96px; border-radius: 22.5%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); background: var(--line); }
.plate .what { font-family: var(--display); font-weight: 600; color: var(--ink); margin-top: .15rem; }
.plate p.desc { color: var(--muted); font-size: 1rem; flex: 1; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; font-size: .93rem; margin-top: .25rem; }

/* Coming soon: a quieter list */
.soon-title { margin: clamp(3rem, 6vw, 4.5rem) 0 1.25rem; font-size: 1.25rem; }
.soon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.soon li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.soon .icon { width: 64px; height: 64px; }
.soon h4 { font: 700 1.1rem/1.25 var(--display); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.soon p { color: var(--muted); font-size: .97rem; margin-top: .25rem; }
.soon .links { margin-top: .5rem; }
.tag { font: 600 .75rem/1 var(--text); color: var(--fig); border: 1px solid currentColor; border-radius: 999px; padding: .3rem .55rem; letter-spacing: .01em; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin: 0; padding: 0; list-style: none; }
.principles li { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.principles h3 { margin-bottom: .6rem; }
.principles p { color: var(--muted); }

/* Contact */
.contact { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.contact p { color: var(--muted); max-width: 34rem; margin-top: .9rem; }
.mail { display: inline-block; margin-top: 1.5rem; font: 700 clamp(1.5rem, 1rem + 3.2vw, 3rem)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: .18em; overflow-wrap: anywhere; }
.mail:hover { color: var(--fig); }

/* Footer */
.foot-rule { border-top: 1px solid var(--line); }
.foot { padding-top: 1.5rem; padding-bottom: 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; gap: 1.25rem; }

/* Prose pages */
.prose { max-width: 40rem; padding-top: clamp(2rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.45rem; margin: 2.5rem 0 .75rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: .9rem; }
.prose strong { color: var(--ink); }
.policies { list-style: none; padding: 0; margin: 1rem 0 0; }
.policies li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.policies li:last-child { border-bottom: 1px solid var(--line); }
.policies span { color: var(--ink); font-weight: 600; }
.meta { font-size: .9rem; margin-top: 2.5rem; }

.lost { min-height: 60vh; display: grid; align-content: center; }
.lost .contours { max-width: 180px; justify-self: start; margin-bottom: 2rem; }

@media (max-width: 900px) {
  .live { grid-template-columns: minmax(0, 1fr); }
  .plate { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 1.25rem; row-gap: .5rem; align-items: start; }
  .plate .icon { grid-row: span 3; }
  .plate .links { grid-column: 2; }
  .soon { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .contours { order: -1; max-width: 160px; justify-self: start; }
}
@media (max-width: 520px) {
  .plate { grid-template-columns: 72px minmax(0, 1fr); column-gap: 1rem; }
  .plate .icon { width: 72px; height: 72px; grid-row: auto; }
  .plate .links { grid-column: 1 / -1; }
  .plate p.desc { grid-column: 1 / -1; }
  .top nav a.hide-sm { display: none; }
  .brand svg { height: 30px; }
}
