/*
 * The public site's face (templates/public/*.html; owner, 2026-11-12).
 *
 * Worn over css/house.css, so the name, the colours and the faces are the back
 * office's own: charcoal and slate, EB Garamond for the name, JetBrains Mono for
 * the small print. Every colour is a house.css token; this sheet names none.
 * The page says little on purpose, so the type carries it: one large name, a
 * hairline with a lozenge, one quiet line, a contact, and the small links at
 * the foot. No image file (scripts/check_no_images.py): the rule is inline SVG.
 */
.pub {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(ellipse 80% 60% at 50% 42%, var(--p-panel) 0%, var(--p-bg) 62%, var(--p-bar) 100%);
}

/* ---- the landing page ---- */
.pub-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px 32px;
    text-align: center;
}
.pub .pub-name {
    margin: 0;
    font: 400 clamp(44px, 9vw, 84px)/1 var(--f-serif);
    letter-spacing: .02em;
    color: var(--p-head);
}
.pub-rule {
    width: min(240px, 60vw);
    height: 12px;
    margin: 28px 0 24px;
    overflow: visible;
}
.pub-rule line { stroke: var(--p-line); stroke-width: 1; }
.pub-rule path { fill: none; stroke: var(--p-acc); stroke-width: 1; }
.pub-line {
    margin: 0;
    font: italic 400 clamp(18px, 3.2vw, 22px)/1.4 var(--f-serif);
    color: var(--p-t2);
}
.pub-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 56px 0 0;
}
.pub-contact a {
    font: 400 13px/1 var(--f-mono);
    color: var(--p-acc-hi);
    text-decoration: none;
    border-bottom: 1px solid var(--p-line);
    padding-bottom: 3px;
}
.pub-contact a:hover, .pub-contact a:focus-visible { border-bottom-color: var(--p-acc); }

.pub-foot {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px 16px 28px;
    font: 500 10px/1.3 var(--f-mono);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--p-t3);
}
.pub-foot a { color: var(--p-t3); text-decoration: none; }
.pub-foot a:hover, .pub-foot a:focus-visible { color: var(--p-t1); }

/* One slow arrival, once; nothing for a visitor who asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
    .pub-name, .pub-rule, .pub-line, .pub-contact { animation: pub-in 1.2s ease-out both; }
    .pub-rule { animation-delay: .25s; }
    .pub-line { animation-delay: .45s; }
    .pub-contact { animation-delay: .7s; }
}
@keyframes pub-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- the terms page ---- */
.pub-doc {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 16px 0;
}
.pub-doc-head { margin-bottom: 40px; }
.pub-home {
    display: inline-block;
    margin-bottom: 20px;
    font: 400 20px/1 var(--f-serif);
    color: var(--p-head);
    text-decoration: none;
}
.pub-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.pub-toc a {
    font: 500 10px/1.3 var(--f-mono);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--p-t3);
    text-decoration: none;
}
.pub-toc a:hover, .pub-toc a:focus-visible { color: var(--p-t1); }
.pub-section {
    padding: 32px 0;
    border-top: 1px solid var(--p-hair);
    scroll-margin-top: 16px;
}
.pub-meta { margin: 8px 0 20px; }
.pub-text { font: 400 16px/1.65 var(--f-serif); color: var(--p-t1); overflow-wrap: anywhere; }
.pub-text h1, .pub-text h2, .pub-text h3, .pub-text h4 { font: 500 18px/1.3 var(--f-serif); color: var(--p-head); margin: 28px 0 10px; }
.pub-text p, .pub-text ul, .pub-text ol { margin: 0 0 14px; }
.pub-text a { color: var(--p-acc-hi); }
.pub-text table { border-collapse: collapse; width: 100%; font-size: 14px; }
.pub-text th, .pub-text td { border: 1px solid var(--p-line); padding: 6px 8px; text-align: start; }

.pub-foot-doc { justify-content: flex-start; padding-left: 0; padding-right: 0; border-top: 1px solid var(--p-hair); margin-top: 8px; }
