/*--------------------------------------------------------------------------

TypeBox

The MIT License (MIT)

Copyright (c) 2017-2026 Haydn Paterson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

---------------------------------------------------------------------------*/

/* ================================================================== 
  Scale variables
/* ================================================================ */
.home {
  --home-scale: 1;               /* master scale — controls ALL elements  */
  --home-logo-scale: 0.85;       /* logo scale (1 = 256px)                */
  --home-logo-gap: 0.5em;        /* gap between logo and h1               */
  --home-h1-size: 2.4em;         /* h1 font size                          */
  --home-h2-size: 1em;           /* h2 font size                          */
  --home-h1-h2-gap: 1.25em;      /* gap between h1 and subheading         */
  --home-subheading-gap: 4.5em;  /* gap between subheading and buttons    */
  --home-button-scale: 0.85;     /* button scale                          */
}
/* ================================================================== 
  Home
/* ================================================================ */
.home {
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
/* ================================================================== 
  Card: the centered, scalable content container
/* ================================================================ */
.home .home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  font-size: calc(16px * var(--home-scale));
}
/* ================================================================== 
  Logo wrapper
/* ================================================================ */
.home .home-card .logo-wrapper {
  zoom: calc(var(--home-logo-scale) * var(--home-scale));
  color: var(--home-text-color);
  filter: drop-shadow(0 0 2px var(--home-text-shadow-color));
}
/* ================================================================== 
  Headers 
/* ================================================================ */
.home .home-card h1 {
  font-family: var(--app-font-family-advanced);
  text-shadow: var(--home-text-shadow-metrics);
  color: var(--home-text-color);
  font-size: var(--home-h1-size);
  margin: var(--home-logo-gap) 0 0;
  user-select: none;
}
/* ================================================================== 
  Subheading anchor
/* ================================================================ */
.home .home-card .subheading-anchor {
  height: 0;
  width: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
}
.home .home-card h2 {
  font-family: var(--app-font-family-standard);
  text-shadow: var(--home-text-shadow-metrics);
  color: var(--home-text-color);
  font-size: var(--home-h2-size);
  font-weight: normal;
  margin-top: var(--home-h1-h2-gap);
  margin-bottom: 0;
  white-space: nowrap;
  user-select: none;
}

/* ================================================================== 
  Actions 
/* ================================================================ */
.home .home-card .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--home-subheading-gap);
  gap: 0.5em;
  flex-wrap: nowrap;
}
/* ================================================================== 
  Button wrapper
/* ================================================================ */
.home .home-card .actions .button-wrapper {
  zoom: calc(var(--home-button-scale) * var(--home-scale));
}
/* ================================================================== 
  Install 
/* ================================================================ */
.home .home-card .actions .install {
  color: var(--home-button-color);
  background-color: var(--home-button-background);
  box-shadow: var(--home-text-shadow-metrics);
  border: 1px solid var(--app-edge-color);
  border-radius: 0.5em;
  padding: 1em 1.5em;
  display: flex;
  font-family: monospace;
  font-size: 1em;
  align-items: center;
  justify-content: space-between;
}
.home .home-card .actions .install span {
  flex: 1;
  white-space: nowrap;
}
.home .home-card .actions .install .copy-btn {
  color: var(--home-button-hover-background);
  background: none;
  border: none;
  margin-left: 1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s;
}
.home .home-card .actions .install .copy-btn:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}
.home .home-card .actions .install .copy-btn svg {
  padding-top: 2px;
  width: 1em;
  height: 1em;
}
/* ================================================================== 
  Docs 
/* ================================================================ */
.home .home-card .actions .documentation {
  color: var(--home-button-color);
  background-color: var(--home-button-background);
  box-shadow: var(--home-text-shadow-metrics);
  border: 1px solid var(--app-edge-color);
  font-family: var(--app-font-family-standard);
  display: flex;
  font-size: 1em;
  text-decoration: none;
  padding: 1em 1.5em;
  border-radius: 0.5em;
}
.home .home-card .actions .documentation:hover {
  background-color: var(--home-button-hover-background);
  color: var(--home-button-hover-color);
}