/* CaLa Studios — calastudios.app. One stylesheet for every page.
   Colors follow the original Google Sites page: white, CaLa orange, a cream tint of it,
   and the light green footer. Light only, like the app sites. */

:root {
  color-scheme: light;
  --white: #ffffff;
  --cream: #fdf4e7;      /* CaLa orange at 10% on white */
  --orange: #ea9010;     /* the logo and the buttons */
  --orange-dark: #d27f08;
  --green: #c9e3ad;      /* footer */
  --ink: #212121;
  --ink-2: #6a6a6a;
  --line: #ebe4d8;
  --shadow: 0 1px 2px rgb(33 33 33 / 0.06), 0 8px 24px rgb(33 33 33 / 0.06);
  --icon-shadow: 0 2px 4px rgb(0 0 0 / 0.12), 0 14px 30px rgb(0 0 0 / 0.2);

  --radius: 24px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.025em; margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 10; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 12px; }

/* ---------- Header ---------- */

.site-header { padding: 18px 0; }
.home .site-header { background: var(--cream); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-block; flex: none; }
.logo img { width: auto; height: 40px; }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); background: rgb(234 144 16 / 0.14); }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 88px; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }

.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -0.04em; max-width: 13ch; padding-bottom: 0.42em; } /* room for the smile */
.hero p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 34rem; margin: 22px 0 0; }

/* The logo's smile, under "yours" */
.smile { position: relative; white-space: nowrap; }
.smile svg {
  position: absolute; left: 6%; width: 82%; bottom: -0.36em; height: 0.34em;
  overflow: visible; fill: none; stroke: var(--orange); stroke-width: 0.09em; stroke-linecap: round;
}
.smile path { vector-effect: non-scaling-stroke; }

/* Three app icons, fanned like cards on a table */
.hero-icons { position: relative; height: 300px; }
.hero-icons img { position: absolute; width: 168px; height: 168px; border-radius: 22.5%; box-shadow: var(--icon-shadow); }
.hero-icons img:nth-child(1) { left: 2%; top: 22px; transform: rotate(-9deg); }
.hero-icons img:nth-child(2) { left: 34%; top: 104px; transform: rotate(5deg); z-index: 1; }
.hero-icons img:nth-child(3) { right: 0; top: 0; transform: rotate(-3deg); }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--ink-2); margin: 12px 0 0; font-size: 1.1rem; }

/* ---------- App cards ---------- */

.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }

.app {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.app-poster { display: grid; place-items: center; height: 200px; background: var(--cream); }
.app-poster img { width: 112px; height: 112px; border-radius: 22.5%; box-shadow: var(--icon-shadow); }

.app-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.app h3 { font-size: 1.45rem; font-weight: 800; }
.app-for { margin: 6px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.app-body > p:not(.app-for) { margin: 14px 0 0; }

.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding-top: 22px; }
.app-actions .badge-link img { width: 135px; height: 45px; }
.site-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-link::after { content: " →"; color: var(--orange); }
.site-link:hover { text-decoration: underline; }
.soon { display: inline-flex; align-items: center; min-height: 45px; padding: 6px 16px; line-height: 1.3; border-radius: 10px; border: 1.5px dashed var(--orange); background: var(--cream); font-size: 0.9rem; font-weight: 700; color: var(--ink); }

.apps-more { margin: 28px 0 0; color: var(--ink-2); }

/* ---------- How we work ---------- */

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
.values .glyph { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); margin-bottom: 16px; }
.values svg { width: 24px; height: 24px; color: var(--ink); }
.values h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; }
.values p { margin: 8px 0 0; color: var(--ink-2); font-size: 1rem; }

/* ---------- Support ---------- */

.support { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; align-items: start; }
.support .section-head { margin-bottom: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  padding: 13px 24px; border-radius: 999px; background: var(--orange); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--orange-dark); }

.help-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.help-list li + li { border-top: 1px solid var(--line); }
.help-list a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-decoration: none; font-weight: 700; }
.help-list a::after { content: "→"; margin-left: auto; color: var(--orange); }
.help-list a:hover { background: var(--cream); }
.help-list li:first-child a { border-radius: var(--radius) var(--radius) 0 0; }
.help-list li:last-child a { border-radius: 0 0 var(--radius) var(--radius); }
.help-list img { width: 40px; height: 40px; border-radius: 22.5%; }

/* ---------- Text pages (privacy) ---------- */

.page { padding: 48px 0 80px; }
.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; }
.prose .updated { margin: 12px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.prose .lede { font-size: 1.2rem; margin: 24px 0 0; }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 40px 0 0; }
.prose p, .prose ul { margin: 14px 0 0; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--orange); }

/* ---------- 404 and redirects ---------- */

.notfound { padding: 96px 0 120px; text-align: center; }
.notfound .big { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--orange); }
.notfound h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; margin-top: 12px; }
.notfound p { color: var(--ink-2); max-width: 30rem; margin: 14px auto 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--green); padding: 40px 0 48px; font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand p { margin: 12px 0 0; color: #3d3d3d; max-width: 22rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--ink); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; font-size: 0.82rem; color: #3d3d3d; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero { padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-icons { order: -1; height: 150px; max-width: 340px; }
  .hero-icons img { width: 104px; height: 104px; }
  .hero-icons img:nth-child(1) { top: 18px; }
  .hero-icons img:nth-child(2) { left: 33%; top: 40px; }
  .hero-icons img:nth-child(3) { top: 6px; }
  .apps { grid-template-columns: 1fr; max-width: 560px; }
  .support { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .nav-links a { padding: 8px 10px; }
  .nav-links .nav-about { display: none; }
  .values { grid-template-columns: 1fr; gap: 24px; }
  .app-poster { height: 168px; }
}

@media (max-width: 360px) {
  .logo img { height: 34px; }
  .app-body { padding: 22px 20px 24px; }
  .site-link { font-size: 0.95rem; }
  .soon { padding: 6px 12px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-icons img { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
  .hero-icons:hover img:nth-child(1) { transform: rotate(-12deg) translateY(-6px); }
  .hero-icons:hover img:nth-child(2) { transform: rotate(7deg) translateY(-6px); }
  .hero-icons:hover img:nth-child(3) { transform: rotate(-1deg) translateY(-6px); }
}
