/* Steady Labs (option V-2 "Botella" of the "Sitio de Steady Labs" sketch): bottle green and gold.
   Fonts are served from this site, so a visit hands nobody's IP to a font CDN. The legal pages keep
   cucinIA's own stylesheet, /cucinia/legal.css. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f5f6f1;
  --ink: #15281f;
  --muted: #52615a;
  --line: #d5dad0;
  --soft: #e9ece3;
  --surface: #ffffff;
  --hero-bg: #16352a;
  --hero-ink: #f4f6ef;
  --hero-muted: #c0ccc3;
  --gold: #c9a227;
  --link: #1f5a42;
  --display: "Bricolage Grotesque", "Trebuchet MS", Arial, sans-serif;
  --body: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-wrap: break-word;
}

h1, h2, h3, p, ol {
  margin: 0;
}

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

a {
  color: var(--link);
  text-underline-offset: 2px;
}

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

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

/* Top of the page */
.top {
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.top a {
  color: inherit;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 700 1.15rem/1 var(--display);
  text-decoration: none;
}

.logo svg {
  width: 30px;
  height: 17px;
  flex: none;
}

.logo .bubble {
  fill: var(--gold);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.hero {
  padding-block: 1.75rem 3rem;
  display: grid;
  gap: 0.9rem;
}

.hero h1 {
  font: 700 clamp(2rem, 6vw, 3.4rem)/1.05 var(--display);
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: balance;
}

.hero p {
  color: var(--hero-muted);
  font-size: 1.1rem;
  max-width: 50ch;
}

/* Sections */
.section {
  padding-block: 3rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.label {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section h2 {
  font: 700 clamp(1.5rem, 3.5vw, 2rem)/1.15 var(--display);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

/* Projects */
.projects {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.project {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.6rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project:hover {
  border-color: var(--hero-bg);
  transform: translateY(-2px);
}

.project img {
  width: 56px;
  height: 56px;
  border-radius: 22%;
  object-fit: contain;
}

.project .logo-dark {
  background: #080e1a;
  padding: 6px;
}

.project h3 {
  font: 700 1.35rem/1.2 var(--display);
}

.project small {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.project p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Services */
.services {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.services h3 {
  font: 700 1.1rem/1.25 var(--display);
  margin-bottom: 0.3rem;
}

.services p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Contact */
.mail {
  display: inline-block;
  margin-top: 0.4rem;
  font: 700 clamp(1.25rem, 5vw, 2.2rem)/1.2 var(--display);
  overflow-wrap: anywhere;
}

/* Bottom of the page */
.foot {
  margin-top: auto;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot .wrap {
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.foot a {
  color: inherit;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

/* A project's own page (option P-B): its colors, and a line back to the company. */
.world {
  --world-bg: #eceff3;
  --world-ink: #0f1a2a;
  --world-muted: #4b5563;
  --world-line: #dbe0e6;
  --world-surface: #fcfcfb;
  --world-accent: #1c5cab;
  background: var(--world-bg);
  color: var(--world-ink);
}

.world.sportcove {
  --world-bg: #080e1a;
  --world-ink: #f1f5f9;
  --world-muted: #94a3b8;
  --world-line: #1e293b;
  --world-surface: #0f172a;
  --world-accent: #60a5fa;
}

.world-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-block: 1.25rem;
}

.world-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--world-accent);
  text-decoration: none;
}

.world-by {
  font-size: 0.9rem;
  color: var(--world-muted);
}

.world-hero {
  padding-block: 1.5rem 2.5rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.75rem;
}

.world-hero img {
  width: 88px;
  height: 88px;
  border-radius: 22%;
}

.world-hero h1 {
  font: 800 clamp(2rem, 6vw, 3rem)/1.1 var(--body);
  max-width: 20ch;
  text-wrap: balance;
}

.world-hero p {
  color: var(--world-muted);
  max-width: 34rem;
}

.status {
  border: 1px solid var(--world-line);
  border-radius: 99px;
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--world-muted);
}

.world-features {
  list-style: none;
  padding: 0;
  margin: 0 auto 3rem;
  max-width: 44rem;
  display: grid;
  gap: 0.75rem;
}

.world-features li {
  background: var(--world-surface);
  border: 1px solid var(--world-line);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.world-foot {
  margin-top: auto;
  border-top: 1px solid var(--world-line);
  color: var(--world-muted);
  font-size: 0.9rem;
  padding-block: 1.25rem;
}

.world-foot a,
.world-by a {
  color: inherit;
}

/* Page not found */
.lost {
  padding-block: 4rem;
  display: grid;
  gap: 0.75rem;
}

.lost h1 {
  font: 700 2.2rem/1.1 var(--display);
}

@media (prefers-reduced-motion: reduce) {
  .project {
    transition: none;
  }

  .project:hover {
    transform: none;
  }
}
