/* Little Horizon Studios — site styles. No frameworks, no build step. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Studio */
  --ink: #13233a;
  --ink-2: #1d3350;
  --paper: #ffffff;
  --mist: #f2f5f8;
  --line: #d6dee6;
  --text: #13233a;
  --muted: #4a5868;
  --on-ink: #ffffff;
  --on-ink-muted: #c3cedb;
  --sun: #e8743b;
  --sun-text: #a5451a;
  --focus: #e8743b;

  /* Mingo */
  --m-bg: #e3f4f8;
  --m-bg-2: #c9eaf2;
  --m-text: #0c3f50;
  --m-muted: #2f5d6c;
  --m-pink: #e8628d;
  --m-pink-text: #a02c55;

  /* Still & Renew */
  --s-bg: #fbf1e6;
  --s-bg-2: #f6e1c9;
  --s-text: #2a2426;
  --s-muted: #5a4c45;
  --s-amber-text: #8f4f22;

  --heading: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0; }

a { color: var(--text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sun-text); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--paper); color: var(--text);
  padding: 12px 16px; border-radius: 10px; font-weight: 600; z-index: 10;
}
.skip:focus { top: 16px; }

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

.site-header { background: var(--ink); color: var(--on-ink); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--on-ink); }
.brand .mark { width: 40px; height: 24px; flex: none; }
.brand span { font-family: var(--heading); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.01em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--on-ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; border-radius: 999px;
}
.nav a:hover { background: var(--ink-2); color: var(--on-ink); }
.nav a[aria-current="page"] { background: var(--ink-2); box-shadow: inset 0 -2px 0 var(--sun); }

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

.hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 176px; display: grid; gap: 22px; }
.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-muted); }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 1.25rem; color: var(--on-ink-muted); max-width: 38rem; }
.hero .lead strong { color: var(--on-ink); font-weight: 600; }
/* The horizon: a band and a line across the bottom of the hero, with the sun resting on the line. */
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: var(--ink-2); border-top: 1.5px solid rgba(255, 255, 255, 0.5); }
.horizon .sun { position: absolute; right: max(24px, calc((100% - var(--wrap)) / 2 + 24px)); bottom: 100%; width: 168px; height: 84px; display: block; }

.page-hero .wrap { padding-top: 64px; padding-bottom: 150px; }
.page-hero h1 { max-width: 20ch; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--mist); color: var(--ink); }
.btn-outline-light { border-color: #5c6f86; color: var(--on-ink); }
.btn-outline-light:hover { border-color: var(--on-ink); color: var(--on-ink); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-2); color: var(--on-ink); }

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

.section { padding: 88px 0; }
.section-mist { background: var(--mist); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 44rem; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor;
  font-family: var(--body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* App cards on Home */
.app-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.app-card { border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; align-content: start; }
.app-card .top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.app-icon { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 1px 2px rgba(19, 35, 58, 0.18); }
.app-card h3 { font-size: 1.75rem; }
.app-card .tagline { font-size: 1.0625rem; }
.app-card .more { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.app-card .more svg { width: 16px; height: 16px; }

.theme-mingo { background: var(--m-bg); color: var(--m-text); }
.theme-mingo .badge { color: var(--m-pink-text); }
.theme-mingo .muted, .theme-mingo .tagline { color: var(--m-muted); }
.theme-mingo a { color: var(--m-text); }
.theme-mingo a:hover { color: var(--m-pink-text); }
.theme-mingo .app-name { font-family: "Baloo 2", var(--heading); font-weight: 700; letter-spacing: 0; }

.theme-renew { background: var(--s-bg); color: var(--s-text); }
.theme-renew .badge { color: var(--s-amber-text); }
.theme-renew .muted, .theme-renew .tagline { color: var(--s-muted); }
.theme-renew a { color: var(--s-text); }
.theme-renew a:hover { color: var(--s-amber-text); }
.theme-renew .app-name { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: 0; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.principle { display: grid; gap: 10px; align-content: start; }
.principle .rule { width: 44px; height: 3px; border-radius: 2px; background: var(--sun); }
.principle p { color: var(--muted); }

/* ---------- Apps page ---------- */

.app-feature { padding: 88px 0; }
.app-feature .layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.app-feature .copy { display: grid; gap: 18px; align-content: start; }
@media (min-width: 960px) {
  .app-feature .layout.art-first { align-items: start; }
  .app-feature .layout.art-first .renew-art { order: -1; margin-top: 8px; }
}
.app-feature .title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.app-feature .app-name { font-size: clamp(2.5rem, 6vw, 3.5rem); line-height: 1; }
.app-feature .lead { font-size: 1.25rem; font-weight: 600; }
.app-feature h3 { margin-top: 8px; }
.app-feature .facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.app-feature .facts li { display: flex; gap: 10px; }
.app-feature .facts li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.62em; border-radius: 50%; background: currentColor; opacity: 0.7; }
.app-feature .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.app-feature .note { font-size: 0.9375rem; }

.mingo-art { position: relative; display: grid; place-items: center; min-height: 420px; border-radius: 28px; background: var(--m-bg-2); overflow: hidden; }
.mingo-art .sea { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: #9fd8e6; }
.mingo-art .sand { position: absolute; left: -10%; right: -10%; bottom: -12%; height: 30%; background: #f7e2bd; border-radius: 50% 50% 0 0; }
.mingo-art img { position: relative; width: auto; max-height: 380px; margin-top: 12px; }
.mingo-art .icon { position: absolute; left: 20px; top: 20px; width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 2px 8px rgba(12, 63, 80, 0.2); }

.renew-art { border-radius: 28px; overflow: hidden; display: grid; }
.renew-art img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.renew-art .caption { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--s-bg-2); }
.renew-art .caption img { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 13px; }

.btn-mingo { background: var(--m-text); color: #ffffff; }
.theme-mingo .btn-mingo, .theme-mingo .btn-mingo:hover { color: #ffffff; }
.btn-renew { background: var(--s-text); color: #ffffff; }
.theme-renew .btn-renew, .theme-renew .btn-renew:hover { color: #ffffff; }
.btn-renew-outline { border-color: var(--s-text); color: var(--s-text); }
.btn-mingo:hover { background: #0f4f64; }
.btn-renew:hover { background: #423a3c; }

/* ---------- About & Contact ---------- */

.prose { max-width: 44rem; display: grid; gap: 18px; }
.prose p { color: var(--muted); }
.prose h2:not(:first-child) { margin-top: 28px; }
.prose p.strong { color: var(--text); font-size: 1.1875rem; }
.focus-list { display: grid; gap: 28px; margin-top: 8px; }
.focus-item { display: grid; gap: 8px; padding-left: 20px; border-left: 3px solid var(--sun); }

.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; gap: 18px; max-width: 40rem; }
.contact-card .email { font-family: var(--heading); font-weight: 600; font-size: clamp(1.125rem, 4.8vw, 1.75rem); }

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

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; font-size: 0.9375rem; color: var(--muted); }
.foot .who { display: flex; align-items: center; gap: 10px; }
.foot .mark { width: 32px; height: 19px; color: var(--ink); }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .bar { justify-content: flex-start; }
  .nav a { padding: 0 12px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 132px; }
  .page-hero .wrap { padding-top: 44px; padding-bottom: 120px; }
  .horizon .sun { width: 112px; height: 56px; }
  .section, .app-feature { padding: 64px 0; }
  .app-card, .contact-card { padding: 24px; }
  .mingo-art { min-height: 340px; }
  .mingo-art img { max-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
