/* ============================================
   Rite — Marketing site styles
   Brand-faithful: Fraunces serif + DM Mono,
   paper / ink / red palette, editorial restraint.
   ============================================ */

:root {
    --paper: #F0EBE2;
    --paper-warm: #E8E1D3;
    --ink: #0F0E0C;
    --red: #C8341A;
    --muted: rgba(15, 14, 12, 0.58);
    --soft: rgba(15, 14, 12, 0.36);
    --line: rgba(15, 14, 12, 0.10);
    --line-med: rgba(15, 14, 12, 0.18);

    /* Category colors — same as the app's DesignSystem.Category */
    --cat-control: #25406B;
    --cat-focus:   #B8822A;
    --cat-body:    #3D5C2A;
    --cat-people:  #6B3A5C;
    --cat-output:  #1F4A4A;
}

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

html, body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ============================================
   Layout primitives
   ============================================ */

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 28px;
}

.container-wide {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================
   Header
   ============================================ */

.site-header {
    padding: 32px 0 24px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.nav {
    display: flex;
    gap: 24px;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav a:hover { color: var(--ink); text-decoration: none; }

/* ============================================
   Hero
   ============================================ */

.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-eyebrow {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}

.hero-wordmark {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 64px;
    letter-spacing: 0.04em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 24px;
}

.hero-tagline {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: 28px;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-tagline-muted {
    color: var(--muted);
}

.hero-body {
    font-size: 19px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 48px;
}

.hero-cta {
    margin-top: 12px;
    margin-bottom: 60px;
}

/* ============================================
   Email capture
   ============================================ */

.email-form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line-med);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s ease;
}

.email-form input[type="email"]:focus {
    border-color: var(--ink);
}

.email-form button {
    padding: 14px 22px;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--ink);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.email-form button:hover {
    background: var(--red);
}

.email-form-note {
    margin-top: 14px;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--soft);
    text-transform: uppercase;
}

/* ============================================
   Constellation visual
   ============================================ */

.constellation {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    margin: 80px auto;
}

.constellation svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* The pulse — animated via CSS */
.constellation .pulse {
    transform-origin: center;
    animation: pulse-fade 2.8s ease-in-out infinite;
}

@keyframes pulse-fade {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 80px 0;
    border-top: 1px solid var(--line);
}

.section-eyebrow {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}

.section-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 38px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 28px;
}

.section-headline-muted {
    color: var(--muted);
}

.section-body {
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 18px;
}

.section-body-muted {
    color: var(--muted);
}

/* Category line list */

.category-list {
    list-style: none;
    margin-top: 32px;
    padding: 0;
}

.category-list li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
}

.category-list li:last-child { border-bottom: none; }

.category-list .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    transform: translateY(-1px);
}

.category-list .name {
    font-weight: 500;
    color: var(--ink);
    width: 90px;
    flex-shrink: 0;
}

.category-list .desc {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

/* Pattern examples */

.pattern-examples {
    list-style: none;
    margin-top: 28px;
    padding: 0;
}

.pattern-examples li {
    padding: 14px 0;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: var(--ink);
    line-height: 1.5;
    border-bottom: 1px solid var(--line);
}

.pattern-examples li:last-child { border-bottom: none; }

.pattern-examples li::before {
    content: "—";
    color: var(--red);
    margin-right: 12px;
    font-style: normal;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    padding: 60px 0 80px;
    border-top: 1px solid var(--line);
    margin-top: 60px;
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}

.site-footer .wordmark {
    font-size: 16px;
}

.site-footer .links {
    display: flex;
    gap: 28px;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-footer .copyright {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soft);
}

/* ============================================
   Legal pages (privacy, terms)
   ============================================ */

.legal-page {
    padding: 60px 0 100px;
}

.legal-page h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 42px;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 18px;
}

.legal-page .updated {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 48px;
}

.legal-page h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.3;
    color: var(--ink);
    margin-top: 56px;
    margin-bottom: 18px;
}

.legal-page h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.3;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-page p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 18px;
}

.legal-page p strong { font-weight: 500; }

.legal-page ul {
    margin: 0 0 18px 0;
    padding-left: 22px;
}

.legal-page li {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 8px;
}

.legal-page hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 48px 0;
}

.legal-page table {
    width: 100%;
    margin: 16px 0 28px;
    border-collapse: collapse;
    font-size: 15px;
}

.legal-page th,
.legal-page td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    line-height: 1.5;
}

.legal-page th {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    background: var(--paper-warm);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
    body { font-size: 17px; }

    .hero { padding: 56px 0 40px; }
    .hero-wordmark { font-size: 48px; }
    .hero-tagline { font-size: 22px; }
    .hero-body { font-size: 17px; }

    .section { padding: 56px 0; }
    .section-headline { font-size: 30px; }
    .section-body { font-size: 17px; }

    .constellation { margin: 56px auto; }

    .email-form { flex-direction: column; }
    .email-form button { width: 100%; }

    .legal-page h1 { font-size: 34px; }
    .legal-page h2 { font-size: 22px; }
    .legal-page p, .legal-page li { font-size: 16px; }

    .nav { gap: 16px; font-size: 10px; }
    .site-header { padding: 24px 0 16px; }

    .category-list .name { width: 70px; font-size: 16px; }
    .category-list .desc { font-size: 14px; }
}
