/* Optional skin for the upstream full HomeView. Other routes and compact/custom
   homepages keep their native styles. No generated Vue attributes are required. */
@scope (:where(.min-h-screen:has(> header):has(> main .terminal-window))) {
  :scope {
    --home-paper: #f5f8f9;
    --home-card: #ffffff;
    --home-line: #dce5e7;
    --home-ink: #172c38;
    --home-accent: #086a68;
    --home-tint: #e6f4f1;
    background: var(--home-paper);
    color: var(--home-ink);
  }
  :scope:where(.dark *) {
    --home-paper: #101921;
    --home-card: #17242d;
    --home-line: #30414a;
    --home-ink: #e9f3f3;
    --home-accent: #93e0d0;
    --home-tint: #203d41;
  }
  :scope > .pointer-events-none { opacity: .19; }
  :scope > header { border-bottom: 1px solid var(--home-line); }
  :scope > main { padding-block: clamp(1.1rem, 3vw, 2.7rem); }

  /* Use the native heading, subtitle, CTA and terminal as one responsive panel. */
  main .flex:has(> div > h1):has(.terminal-window) {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 2.1rem;
    padding: clamp(1.4rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    border: 1px solid #254048;
    border-radius: 1.7rem;
    background:
      linear-gradient(90deg, transparent 97%, #8bdfd40d 97%) 0 0 / 36px 36px,
      linear-gradient(0deg, transparent 97%, #8bdfd40d 97%) 0 0 / 36px 36px,
      radial-gradient(ellipse at 100% 0%, #174b51 0%, transparent 59%),
      #0f202d;
    box-shadow: 0 12px 32px -24px #0c222f9c;
  }
  :scope main div:has(> h1) { min-width: 0; text-align: left; }
  :scope main h1 {
    color: #f5fffc;
    font: 700 clamp(3.35rem, 6.7vw, 6.4rem)/.96 "Ubuntu Mono", ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: -.078em;
  }
  :scope main h1 + p {
    max-width: 32em;
    margin: 1.15rem 0 1.55rem;
    color: #c2d8d9;
    font-size: clamp(.98rem, 1.3vw, 1.15rem);
    line-height: 1.65;
  }
  main .btn.btn-primary {
    border: 1px solid #a4efdc;
    border-radius: .7rem;
    color: #062924;
    background: #9aecd5;
    box-shadow: none;
    font-weight: 700;
  }
  main .btn.btn-primary:hover { background: #b9f6e6; }
  main .btn.btn-primary:focus-visible { outline: 3px solid white; outline-offset: 4px; }

  :scope .terminal-container { width: min(100%, 27rem); min-width: 0; }
  :scope .terminal-container .terminal-window {
    width: 100%;
    border: 1px solid #567b837d;
    border-radius: 1rem;
    background: #0c1721;
    box-shadow: 0 18px 32px -22px #000b;
    transform: none;
  }
  :scope .terminal-window .terminal-header { background: #19303b; }
  :scope .terminal-window .terminal-title,
  :scope .terminal-window .code-comment { color: #9db2be; }

  /* Colour the native section surfaces without changing their content or order. */
  main .flex:has(> .rounded-full) { gap: .65rem; margin-bottom: 2rem; }
  main .flex > .rounded-full:has(> svg) {
    padding: .5rem .95rem;
    border: 1px solid var(--home-line);
    background: var(--home-card);
    box-shadow: none;
  }
  main .grid > .group {
    border: 1px solid var(--home-line);
    background: var(--home-card);
    border-radius: 1.05rem;
    box-shadow: 0 2px 3px #152d3605;
  }
  main .grid > .group h3 { color: var(--home-ink); }
  main .grid > .group > div:has(> svg) {
    background: var(--home-tint);
    box-shadow: none;
  }
  main .grid > .group > div > svg { color: var(--home-accent); }
  main .flex > .ring-1 {
    border-color: var(--home-line);
    background: var(--home-card);
    box-shadow: none;
  }
  @media (min-width: 800px) {
    main .flex:has(> div > h1):has(.terminal-window) {
      grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
      gap: clamp(2rem, 4.5vw, 4.5rem);
    }
  }
  @media (max-width: 640px) {
    :scope > header, :scope > main { padding-inline: 1rem; }
    main .flex:has(> div > h1):has(.terminal-window) { border-radius: 1.15rem; }
    :scope .terminal-window .terminal-body { padding: .9rem; font-size: .78rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    :scope *, :scope *::before, :scope *::after { animation: none !important; transition: none !important; }
    :scope .code-line { opacity: 1; }
  }
}
