/* Shared layout for the Little Lamp Labs front pages (squaredaway.cloud, dosewise.cloud): a full-bleed
   animated scene on the first screen with soft words over it, then tiles, the family of apps and a footer.
   Each page sets its colors with the custom properties below and brings its own scene styles. */
@font-face { font-family: "Nunito"; src: url("/home/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

.site {
  --bg: #FFFBF4; --ink: #22201C; --muted: #6A6358; --card: #FFFFFF; --line: #EEE6D8;
  --hero-bg: #EAF4EE; --hero-ink: #1A5C45; --hero-sub: #3F6E5C; --button: #1F7A5A;
  --accent: #1F7A5A;
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
.site * { box-sizing: border-box; }
.site a { color: var(--accent); }
.site h1, .site h2 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.site p { margin: 0; }

/* The first screen */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.hero .bar, .hero .words { position: relative; z-index: 1; }
.bar { max-width: 1120px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hero-ink) !important; font-weight: 600; font-size: 20px; }
.brand img { border-radius: 10px; }
.brand em { font-style: normal; font-weight: 500; opacity: 0.7; }
.bar-link { font-weight: 600; text-decoration: none; color: var(--hero-ink) !important; padding: 12px 0; margin: -12px 0; }
.words { max-width: 1120px; margin: 0 auto; padding: 24px 20px 0; }
.words > .lead, .words > .actions { max-width: 560px; }
/* A quiet line above the headline, not a badge. */
.site .hero .pill { display: block; padding: 0; border-radius: 0; background: none; color: var(--hero-sub); font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(40px, 5.8vw, 70px); font-weight: 600; color: var(--hero-ink); letter-spacing: -0.03em; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--hero-sub); margin-top: 20px; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: filter 0.15s cubic-bezier(0.22, 1, 0.36, 1), transform 0.12s cubic-bezier(0.22, 1, 0.36, 1); }
.button:hover { filter: brightness(0.94); }
.button:active { transform: scale(0.98); }
.button-main { background: var(--button); color: #FFFFFF !important; }
.button-quiet { background: rgba(255, 255, 255, 0.78); color: var(--hero-ink) !important; }
/* "The web app is coming soon": a still dot and plain words. */
.soon-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--hero-sub); }
.soon-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--button); flex: none; }
.soon-text { color: inherit; }

@media (min-width: 761px) {
  .hero { min-height: max(100svh, 680px); }
  .art { position: absolute; inset: 0; width: 100%; height: 100%; }
  .words { padding-top: clamp(24px, 9vh, 110px); }
}
/* Phones: words first, then the scene, cropped so its center of interest (x 1010 of 1440) stays in view. */
@media (max-width: 760px) {
  br.wide { display: none; }
  .bar-link { font-size: 15px; }
  .brand { font-size: 18px; }
  .hero { display: flex; flex-direction: column; }
  .hero .bar { order: 1; } .hero .words { order: 2; }
  .art { order: 3; display: block; position: relative; height: 500px; width: 800px; max-width: none; left: calc(50% - 561px); margin-top: -30px; }
}

/* Below the fold */
.site main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 56px 0 64px; }
/* Quiet cards: the scene above carries the colour. Beats each site's own tile colours. */
.tiles .tile { border-radius: 16px; padding: 24px; background: var(--card); border: 1px solid var(--line); }
.tiles .tile h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.tile p { font-size: 15.5px; }
.about { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 40px 0 56px; border-top: 1.5px solid var(--line); }
@media (min-width: 880px) { .about { grid-template-columns: 0.9fr 1.4fr; gap: 48px; } }
.about h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 600; margin-bottom: 12px; }
.about-text p { color: var(--muted); }
.apps { display: grid; gap: 12px; }
.app { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; transition: border-color 0.15s cubic-bezier(0.22, 1, 0.36, 1); }
.app:hover { border-color: var(--accent); }
.app img { border-radius: 14px; flex: none; }
.app > span { display: flex; flex-direction: column; }
.app strong { font-size: 18px; font-weight: 600; }
.app span span { color: var(--muted); font-size: 15px; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 20px 40px; }
/* inline-block: the links sit with no space between them, so as plain inline text the row can't wrap on a small phone. */
.foot a { margin: 0 6px; display: inline-block; }

/* Keyboard focus: a solid ring in the text colour of whatever it sits on (the browser's default
   ring all but vanishes over the dark scenes). */
.site :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site .hero :focus-visible { outline-color: var(--hero-ink); }

/* Headings on every page stay at 600 at most: size, not weight, makes the hierarchy. */
.site .support h2, .site .doc h1, .site .doc h2 { font-weight: 600; }
.site .says li { font-weight: 600; }

@media (prefers-color-scheme: dark) {
  .site { --bg: #15161A; --ink: #F1EEE8; --muted: #B6B0A6; --card: #1F2025; --line: #2E2F35; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { scroll-behavior: smooth; }
