/* 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: 900; font-size: 20px; }
.brand img { border-radius: 10px; }
.brand em { font-style: normal; font-weight: 700; opacity: 0.65; }
.bar-link { font-weight: 800; text-decoration: none; color: var(--hero-ink) !important; }
.words { max-width: 1120px; margin: 0 auto; padding: 24px 20px 0; }
.words > .lead, .words > .actions { max-width: 560px; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); color: var(--hero-ink); font-weight: 800; font-size: 14px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 5.8vw, 70px); font-weight: 900; color: var(--hero-ink); letter-spacing: -0.03em; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--hero-sub); margin-top: 18px; font-weight: 600; }
.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: 800; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s ease; }
.button:hover { transform: translateY(-1px); }
.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 gently breathing dot and a slow shimmer across the words. */
.soon-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); font-size: 15px; font-weight: 800; color: var(--hero-ink); animation: soon-float 3.2s ease-in-out infinite; }
.soon-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--button); flex: none; }
.soon-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--button); animation: soon-ping 1.6s ease-out infinite; }
.soon-text { background: linear-gradient(100deg, var(--hero-ink) 40%, var(--button) 50%, var(--hero-ink) 60%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: soon-shimmer 3.2s ease-in-out infinite; }
@keyframes soon-ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes soon-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes soon-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .soon-note, .soon-text { animation: none; }
  .soon-text { color: var(--hero-ink); background: none; }
  .soon-dot::after { animation-duration: 3.2s; }
}

@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; }
.tile { border-radius: 26px; padding: 22px; }
.tile h2 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.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: 900; 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: 22px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink) !important; transition: transform 0.15s ease, border-color 0.15s ease; }
.app:hover { transform: translateY(-2px); border-color: var(--accent); }
.app img { border-radius: 16px; flex: none; }
.app > span { display: flex; flex-direction: column; }
.app strong { font-size: 18px; }
.app span span { color: var(--muted); font-size: 15px; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 20px 40px; }
.foot a { margin: 0 6px; }

@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; }
