/* Lykoh Studio · the studio's own look: ivory paper, deep ink and burnished bronze, set in a serif.
   Each app keeps its own stylesheet (wtb.css for Where's the Bomb?). */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --card: #fbf8f2;
  --ink: #1c1a17;
  --ink-soft: #4a443b;
  --muted: #7a7164;
  --bronze: #a8774f;
  --bronze-deep: #8a5f3c;
  --line: #ddd3c2;
  --night: #1c1a17;
  --night-text: #e8dcc6;
  --radius: 4px;
  --gutter: 16px;
  --max: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--bronze-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

html[data-lang="es"] [lang="en"]:not(html),
html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand .word { font: 600 18px/1 var(--serif); letter-spacing: 0.32em; }
.brand .word small { font: 600 9px/1 var(--sans); letter-spacing: 0.5em; color: var(--muted); margin-left: 4px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--bronze-deep); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: var(--muted); font: 600 11px/1 var(--sans); letter-spacing: 0.14em; padding: 8px 11px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 719px) {
  .nav { order: 3; width: 100%; margin: 0 0 10px; gap: 20px; }
  .lang-switch { margin-left: auto; }
}

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 23px; }
em { font-style: italic; color: var(--bronze-deep); }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-soft); max-width: 620px; }
.eyebrow { display: block; font: 600 11px/1.2 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: var(--bronze-deep); margin-bottom: 18px; }
.rule { width: 48px; height: 1px; background: var(--bronze); border: 0; margin: 28px 0; }

section { padding: 80px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
@media (min-width: 720px) { section { padding: 120px 0; } }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero .mark { width: 120px; height: auto; }
@media (min-width: 860px) {
  .hero { padding: 120px 0 128px; }
  .hero .wrap { grid-template-columns: 1fr 260px; }
  .hero .mark { width: 220px; justify-self: center; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font: 600 14px/1 var(--sans); letter-spacing: 0.08em; cursor: pointer; }
.btn:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Apps */
.apps { display: grid; gap: 24px; }
@media (min-width: 860px) { .apps { grid-template-columns: 1.4fr 1fr; } }
.app-tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color 0.2s; }
.app-tile:hover { border-color: var(--bronze); color: inherit; }
.app-tile .shot { aspect-ratio: 16 / 9; overflow: hidden; background: #0c0b0a; }
.app-tile .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.app-tile .body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.app-tile .kind { font: 600 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.app-tile h3 { margin: 4px 0; }
.app-tile p { color: var(--ink-soft); margin: 0; }
.app-tile .status { margin-top: auto; padding-top: 14px; font: 600 12px/1 var(--sans); letter-spacing: 0.12em; color: var(--bronze-deep); text-transform: uppercase; }
.app-tile.soon { background: transparent; border-style: dashed; justify-content: center; }
.app-tile.soon .body { justify-content: center; align-items: flex-start; }

/* Principles */
.principles { display: grid; gap: 32px 48px; }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principle .num { font: 500 15px/1 var(--serif); color: var(--bronze); display: block; margin-bottom: 12px; font-style: italic; }
.principle h3 { margin-bottom: 8px; }
.principle p { color: var(--ink-soft); margin: 0; }

/* Contact */
.contact { display: grid; gap: 48px; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1.2fr; } }
.contact .direct p { color: var(--ink-soft); }
.contact .direct a.mail { font: 500 22px/1.3 var(--serif); color: var(--ink); }

form.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font: 600 12px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--bronze); outline-offset: 0; border-color: var(--bronze); }
.contact-form .hint { font: 400 13px/1.5 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.contact-form .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 24px; font-size: 15px; }
.form-status[data-state="ok"] { color: #3f6b3a; }
.form-status[data-state="error"] { color: #9b2c22; }

/* Legal and other text pages */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 26px; margin-top: 44px; }
.doc li { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-text); padding: 56px 0 40px; font-size: 14px; }
.site-footer .cols { display: grid; gap: 32px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer .brand { color: var(--night-text); margin-bottom: 14px; }
.site-footer .brand img { height: 48px; width: auto; }
.site-footer .brand .word small { color: #a99f8e; }
.site-footer h4 { margin: 0 0 14px; font: 600 11px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #cfc3ad; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: #a99f8e; }
.site-footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid #3a352e; color: #8d8475; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
