/* luciaos.com — the landing page's frame only. The shared look
 * (palette, fonts, header pieces, headings, code tokens) is in
 * core.css, linked before this file. */

/* Header bar */

.top { border-bottom: 1px solid var(--line-strong); }

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(54rem, calc(100% - 3rem));
  min-height: 4.5rem;
  margin: 0 auto;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

/* Content column */

main {
  width: min(54rem, calc(100% - 3rem));
  margin: 0 auto;
}

section { padding: 3.25rem 0 0; }
section:last-of-type { padding-bottom: 1rem; }

.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

h1 {
  max-width: 20ch;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  text-align: center;
}

/* A section heading, a touch larger than the doc default. */
h2 {
  margin: 0 0 1.6rem;
  padding-bottom: .7rem;
  font-size: .92rem;
  letter-spacing: .1em;
  line-height: 1.4;
}

.section-body { max-width: none; }
.quiet { color: var(--ink-soft); }
.text-link { display: inline-block; margin-top: .35rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.actions a {
  display: inline-block;
  padding: .6rem .8rem;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  text-decoration: none;
}

.actions a:hover {
  color: var(--paper-raised);
  background: var(--accent);
  border-color: var(--accent);
}

/* Inline code sample */

.sample {
  margin: 2rem 0 1.6rem;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
}

.sample figcaption {
  padding: .42rem .8rem;
  color: var(--ink-soft);
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line-strong);
  font-size: .75rem;
  font-weight: 700;
}

.sample pre { margin: 0; padding: 1rem; overflow-x: auto; }

/* A block listing is not inline code: clear the shared code chip. */
.sample code {
  padding: 0;
  background: none;
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.75;
}

.kw { color: var(--accent); font-weight: 700; }
.decl { color: var(--ink); font-weight: 700; }
.str { color: var(--tok-string); }
.builtin { color: var(--tok-builtin); }

/* Footer bar */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(54rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

footer a { color: var(--ink-soft); }

@media (max-width: 44rem) {
  .top-inner,
  main,
  footer { width: min(100% - 2rem, 54rem); }

  .top-inner { min-height: 4rem; gap: 1rem; }
  .top nav { gap: .8rem; }
  section { padding: 2.8rem 0 0; }
  .hero { padding: 4rem 0; }
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  footer { align-items: flex-start; flex-direction: column; gap: .8rem; }
}

@media (max-width: 28rem) {
  body { font-size: .94rem; }
  .top-inner { align-items: flex-start; padding: .85rem 0; }
  .top nav { flex-wrap: wrap; justify-content: flex-end; gap: .55rem .8rem; }
  a.cross { font-size: .7rem; }
  .actions { flex-direction: column; }
  .actions a { width: 100%; }
}

@media print {
  .top, .actions, footer { display: none; }
  main { width: auto; }
}
