/*
 * site.css: the SpaceAge3D business site stylesheet.
 *
 * One stylesheet for every page. The palette follows the night studio in the
 * greeting image: a deep blue-black ground, warm amber for light and action,
 * and a cool cyan for structure.
 *
 * Generated assets are not styled here; site.in/css/root.css serves the
 * project's status pages, which have their own plain template.
 */

:root {
    --ink: #e8edf6;
    --ink-muted: #9aa7bd;
    --ground: #070b14;
    --ground-raised: #0e1524;
    --ground-panel: #131c2f;
    --line: #24314b;
    --amber: #ffb057;
    --amber-soft: #ffcf94;
    --cyan: #6fd3e8;
    --shell: 68rem;
    --radius: 10px;
    --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--ground);
    background-image:
        radial-gradient(80rem 40rem at 12% -12%, rgba(111, 211, 232, 0.10), transparent 60%),
        radial-gradient(60rem 34rem at 92% 4%, rgba(255, 176, 87, 0.08), transparent 62%);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--cyan);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #a5e8f6;
}

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

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}

h2 {
    font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem);
    margin-top: 0;
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1.1em;
}

ul,
ol {
    padding-left: 1.25em;
}

li + li {
    margin-top: 0.35em;
}

img {
    max-width: 100%;
    height: auto;
}

code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: rgba(111, 211, 232, 0.10);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.shell {
    width: min(100% - 2.5rem, var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -100vw;
    top: 0;
    background: var(--amber);
    color: #1a1204;
    padding: 0.6em 1em;
    z-index: 20;
}

.skip-link:focus {
    left: 0;
}

/* ---- header ------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(7, 11, 20, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-block: 0.85rem;
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
}

.wordmark__text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--amber);
    text-shadow: 0 0 18px rgba(255, 176, 87, 0.35);
}

.wordmark__sub {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--amber);
}

.site-nav a[aria-current="page"] {
    border-bottom: 2px solid var(--amber);
}

/* ---- generic page chrome ---------------------------------------------- */

.section {
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.section--panel {
    background: var(--ground-raised);
    border-block: 1px solid var(--line);
}

.section__head {
    max-width: 46rem;
    margin-bottom: 2rem;
}

.lede {
    font-size: 1.15rem;
    color: var(--ink-muted);
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.75rem;
}

.page-head {
    padding-block: clamp(2rem, 1rem + 4vw, 3.5rem) 0;
}

.grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
    background: var(--ground-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem 1.4rem;
}

.card h3 {
    color: var(--amber-soft);
    margin-bottom: 0.4em;
}

.card p:last-child,
.card ul:last-child {
    margin-bottom: 0;
}

.card__meta {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.notice {
    border-left: 3px solid var(--amber);
    background: rgba(255, 176, 87, 0.07);
    padding: 1rem 1.15rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.notice p:last-child {
    margin-bottom: 0;
}

.notice--spaced {
    margin-top: 2rem;
}

.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.1rem;
}

.steps > li {
    counter-increment: step;
    position: relative;
    padding-left: 3.4rem;
    margin: 0;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--amber);
    color: var(--amber);
    font-size: 0.95rem;
    font-weight: 700;
}

.steps h3 {
    margin-bottom: 0.2em;
    color: var(--amber-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.1rem;
}

caption {
    text-align: left;
    color: var(--ink-muted);
    font-size: 0.9rem;
    padding-bottom: 0.6rem;
}

th,
td {
    text-align: left;
    vertical-align: top;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--cyan);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---- greeting page ---------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Bias the crop below the studio sign in the photograph, so the
       headline is not read on top of the lettering. */
    object-position: center 62%;
}

/* The veil sits in its own layer above the photograph. It must use the
   background-image longhand: the `background` shorthand resets
   background-image, which would replace the photo instead of covering it. */
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.24) 0%, rgba(7, 11, 20, 0.46) 60%, rgba(7, 11, 20, 0.86) 100%),
        linear-gradient(90deg, rgba(7, 11, 20, 0.86) 0%, rgba(7, 11, 20, 0.55) 38%, rgba(7, 11, 20, 0.20) 68%, rgba(7, 11, 20, 0.06) 92%);
}

.hero .shell {
    position: relative;
    z-index: 1;
}

.hero__inner {
    padding-block: clamp(3.5rem, 2rem + 12vw, 8.5rem);
    max-width: 44rem;
}

.hero h1 {
    margin-bottom: 0.4em;
}

.hero h1 .hero__accent {
    display: block;
    color: var(--amber);
    text-shadow: 0 0 26px rgba(255, 176, 87, 0.4);
}

.hero__lede {
    font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
    color: #d5deee;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.button {
    display: inline-block;
    padding: 0.7em 1.3em;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.98rem;
}

.button--primary {
    background: var(--amber);
    color: #1a1204;
}

.button--primary:hover {
    background: var(--amber-soft);
    color: #1a1204;
}

.button--ghost {
    border-color: var(--line);
    color: var(--ink);
}

.button--ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    font-size: 0.92rem;
    color: var(--ink-muted);
}

.hero__facts li {
    margin: 0;
}

.hero__facts strong {
    color: var(--ink);
    font-weight: 600;
}

/* ---- pricing table ---------------------------------------------------- */

.price-table td:first-child {
    color: var(--ink);
    font-weight: 600;
}

.price-table td:last-child {
    white-space: nowrap;
    color: var(--amber-soft);
}

/* ---- weblog ------------------------------------------------------------ */

.post-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.post-list li {
    margin: 0;
}

.post-list time {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.post {
    max-width: 44rem;
}

.post__header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.post__date {
    color: var(--ink-muted);
    font-size: 0.9rem;
}

/* ---- contact --------------------------------------------------------- */

.contact-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.contact-list li {
    margin: 0;
}

.contact-list dt {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.contact-list dd {
    margin: 0.15rem 0 0;
    font-size: 1.1rem;
}

.contact-actions {
    margin-top: 2rem;
}

/* ---- footer ----------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: #050810;
    padding-block: 2.5rem 1.5rem;
    font-size: 0.92rem;
    color: var(--ink-muted);
}

.site-footer__inner {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.site-footer__brand {
    color: var(--amber);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.3em;
}

.site-footer p {
    margin: 0 0 0.4em;
}

.site-footer__legal {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
}

@media (max-width: 40rem) {
    .site-nav ul {
        gap: 0.3rem 1rem;
    }

    .wordmark__sub {
        letter-spacing: 0.1em;
    }
}

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