/*----------------------------------------------------------------------------*
 * floorplan.sh — editorial dark theme                                        *
 *----------------------------------------------------------------------------*/

:root {
    --bg:        #0d0d0c;
    --bg-soft:   #151513;
    --fg:        #efeeea;
    --fg-muted:  #a5a49e;
    --fg-subtle: #757470;
    --rule:      #29281f;
    --rule-dark: #3a3930;
    --accent:    #d98a5f;
    --code-bg:   #171612;

    --serif: 'EB Garamond', 'Palatino Linotype', Palatino, Georgia, serif;
    --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
             'Helvetica Neue', Arial, sans-serif;
    --mono:  'JetBrains Mono', 'Menlo', 'Consolas', 'DejaVu Sans Mono', monospace;
}

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

html {
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--rule-dark);
    transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.container {
    width: 92%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

/*----------------------------------------------------------------------------*
 * Site navigation                                                             *
 *----------------------------------------------------------------------------*/

.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--rule);
}

.site-header__inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-header__name {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-bottom: none;
}

.site-header__name:hover { color: var(--accent); }
.site-header__name .dim { color: var(--fg-subtle); }

.brand-mark {
    display: inline-flex;
    vertical-align: -3px;
    margin-right: 0.5rem;
}

.brand-mark line { stroke: var(--fg-subtle); }
.brand-mark line.live { stroke: var(--accent); }
.brand-mark circle { fill: none; stroke: var(--fg-subtle); }
.brand-mark circle.live { fill: var(--accent); stroke: var(--accent); }

.site-nav {
    display: flex;
    gap: 1.5rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-nav a {
    color: var(--fg-muted);
    border-bottom: none;
}

.site-nav a:hover { color: var(--fg); }

/*----------------------------------------------------------------------------*
 * Hero                                                                        *
 *----------------------------------------------------------------------------*/

.hero {
    padding: 4.5rem 0 1rem;
}

.hero__eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--fg-muted);
    border: 1px solid var(--rule-dark);
    padding: 0.35em 0.8em;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    max-width: 780px;
}

.hero__title .accent { color: var(--accent); font-style: italic; }

.hero__sub {
    font-family: var(--sans);
    font-size: 1.05rem;
    color: var(--fg-muted);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero__cmd {
    max-width: 620px;
}

.hero__social {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-top: 1.75rem;
    padding: 0;
    font-family: var(--sans);
    font-size: 0.85rem;
}

.hero__social a {
    color: var(--fg-muted);
    border-bottom: none;
}

.hero__social a:hover { color: var(--accent); }

/*----------------------------------------------------------------------------*
 * Lattice diagram (hero illustration)                                        *
 *----------------------------------------------------------------------------*/

.lattice {
    width: 100%;
    height: auto;
    display: block;
    margin: 2.5rem 0 1.25rem;
}

.lattice-edge {
    stroke: var(--rule-dark);
    stroke-width: 1.4;
    fill: none;
}

.lattice-edge--live {
    stroke: var(--accent);
    stroke-width: 2.2;
}

.lattice-node {
    fill: var(--bg);
    stroke: var(--fg-subtle);
    stroke-width: 1.4;
}

.lattice-node--source {
    fill: var(--fg-muted);
    stroke: var(--fg-muted);
}

.lattice-node--live {
    fill: var(--accent);
    stroke: var(--accent);
}

.lattice-halo {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.4;
    opacity: 0.4;
}

.lattice-mark {
    stroke: var(--fg-subtle);
    stroke-width: 1.3;
    fill: none;
}

.lattice-label {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    fill: var(--fg-subtle);
    text-anchor: middle;
}

.lattice-tag {
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    fill: var(--accent);
    text-anchor: middle;
}

.lattice-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--fg-subtle);
    margin-bottom: 2.5rem;
}

.lattice-legend .mark {
    font-family: var(--mono);
    margin-right: 0.35em;
}

.lattice-legend .mark.refused { color: var(--fg-subtle); }
.lattice-legend .mark.evaluated { color: var(--fg-subtle); }

.lattice-legend .mark.adopted {
    display: inline-block;
    width: 1.1em;
    height: 2px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: 0.45em;
}

/*----------------------------------------------------------------------------*
 * Sections                                                                    *
 *----------------------------------------------------------------------------*/

.section {
    margin-top: 5rem;
}

.section__header {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--fg-subtle);
    margin-bottom: 1.5rem;
}

.section__title {
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    max-width: 640px;
}

.section__body {
    max-width: 680px;
}

.section__body p,
.section__body ul,
.section__body ol {
    margin-bottom: 1.1rem;
}

.section__body ul,
.section__body ol {
    padding-left: 1.4rem;
}

.section__body li { margin-bottom: 0.4rem; }

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

/*----------------------------------------------------------------------------*
 * Proof grid (cards)                                                          *
 *----------------------------------------------------------------------------*/

.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    display: block;
    border: 1px solid var(--rule);
    padding: 1.25rem;
    border-radius: 2px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
    border-color: var(--fg-subtle);
    transform: translateY(-2px);
}

.card:hover .card__title { color: var(--accent); }

.card__meta {
    font-family: var(--sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-subtle);
    margin-bottom: 0.5rem;
}

.card__title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    border-bottom: none;
}

.card__summary {
    font-size: 0.95rem;
    color: var(--fg-muted);
    line-height: 1.5;
}

/*----------------------------------------------------------------------------*
 * Tables (receipts, floors)                                                   *
 *----------------------------------------------------------------------------*/

table {
    border-collapse: collapse;
    font-size: 0.95rem;
    width: 100%;
    margin: 1rem 0 1.4rem 0;
}

th, td {
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--rule);
}

td:last-child, th:last-child { text-align: right; }

thead th {
    border-bottom: 2px solid var(--fg);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
}

tbody tr:last-child td { border-bottom: 2px solid var(--fg); }

tbody td.num, thead th.num { font-family: var(--mono); font-size: 0.88rem; }

.table-caption {
    font-family: var(--sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-subtle);
    margin-bottom: 0.75rem;
}

/*----------------------------------------------------------------------------*
 * Inline code & pre blocks                                                    *
 *----------------------------------------------------------------------------*/

code {
    font-family: var(--mono);
    font-size: 0.85rem;
    background: var(--code-bg);
    color: var(--fg);
    padding: 0.08em 0.4em;
    border-radius: 3px;
}

pre {
    background: var(--code-bg);
    border-left: 2px solid var(--accent);
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 1rem 0 1.4rem 0;
    font-family: var(--mono);
    color: var(--fg-muted);
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    color: inherit;
}

pre .fg { color: var(--fg); }
pre .accent { color: var(--accent); }

.cmd-copy {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.copybtn {
    font-family: var(--sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.copybtn:hover { color: var(--accent); }

/*----------------------------------------------------------------------------*
 * Blockquotes                                                                 *
 *----------------------------------------------------------------------------*/

blockquote {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 1.5rem 0;
    padding: 0 0 0 1.5rem;
    border-left: 3px solid var(--accent);
    color: var(--fg-muted);
    max-width: 620px;
}

blockquote cite {
    display: block;
    font-style: normal;
    font-family: var(--sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-subtle);
    margin-top: 0.75rem;
}

/*----------------------------------------------------------------------------*
 * FAQ                                                                         *
 *----------------------------------------------------------------------------*/

.faq-item {
    margin-bottom: 1.75rem;
    max-width: 680px;
}

.faq-item .q {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.faq-item .a {
    color: var(--fg-muted);
    margin: 0;
}

/*----------------------------------------------------------------------------*
 * Footer                                                                      *
 *----------------------------------------------------------------------------*/

footer {
    margin-top: 6rem;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--rule);
    color: var(--fg-muted);
    font-family: var(--sans);
    font-size: 0.8rem;
}

footer a { color: var(--fg-muted); border-bottom: none; }
footer a:hover { color: var(--accent); }

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer__note {
    max-width: 620px;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.footer__rule {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--fg-subtle);
    max-width: 620px;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    line-height: 1.6;
}

/*----------------------------------------------------------------------------*
 * Responsive                                                                  *
 *----------------------------------------------------------------------------*/

@media (max-width: 720px) {
    html { font-size: 16px; }
    .hero { padding: 3.5rem 0 3rem; }
    .section { margin-top: 3.5rem; }
    .site-nav { gap: 1rem; font-size: 0.75rem; }
    .writing-grid { grid-template-columns: 1fr; }
    .plan { grid-template-columns: 1fr; }
    .plan__gain { grid-column: 1; text-align: left; margin-top: 0.15rem; }
}
