/* Maxims Public - Styles */
/* Design tokens (:root), body/texture, and typography base are in site.css */

/* ========== Reset (public pages only) ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ========== Nav ========== */
nav {
    padding: 1.5rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto;
}
.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300; font-size: 1.1rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    font-family: 'Crimson Pro', serif;
    font-size: 0.85rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-faded); text-decoration: none;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }

/* ========== Hero ========== */
.hero {
    min-height: 85vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 4rem 2rem;
    position: relative;
}
.hero::after {
    content: '\203B';
    position: absolute; bottom: 3rem;
    font-size: 1.2rem; color: var(--ink-ghost);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-8px); opacity: 1; }
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300; font-size: 5rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--ink); margin-bottom: 0.25rem;
    animation: fadeIn 1.2s ease-out;
}
.logo-dot { color: var(--accent); }
.tagline {
    font-family: 'Crimson Pro', serif;
    font-style: italic; font-weight: 300;
    font-size: 1.3rem; color: var(--ink-faded);
    margin-bottom: 3rem;
    animation: fadeIn 1.2s ease-out 0.3s both;
}
.hero-intro {
    max-width: 540px; font-size: 1.05rem;
    font-weight: 300; color: var(--ink-light);
    line-height: 1.85; margin-bottom: 3.5rem;
    animation: fadeIn 1.2s ease-out 0.6s both;
}
.hero-cta {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink); text-decoration: none;
    padding: 0.85rem 2.5rem; border: 1px solid var(--ink);
    transition: all 0.4s ease;
    animation: fadeIn 1.2s ease-out 0.9s both;
}
.hero-cta:hover { background: var(--ink); color: var(--parchment); }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Section Divider ========== */
.section-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; padding: 2rem 0;
    max-width: 600px; margin: 0 auto;
}
.section-divider::before, .section-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--divider);
}
.section-divider span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--ink-ghost);
}

/* ========== Categories ========== */
.categories-section {
    padding: 4rem 2rem 6rem;
    max-width: 900px; margin: 0 auto;
}
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400; font-size: 2.2rem;
    text-align: center; color: var(--ink); margin-bottom: 0.5rem;
}
.section-subheading {
    font-family: 'Crimson Pro', serif;
    font-style: italic; font-weight: 300;
    font-size: 1rem; text-align: center;
    color: var(--ink-faded); margin-bottom: 3.5rem;
}
.categories-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--divider); border: 1px solid var(--divider);
}
.category-card {
    background: var(--parchment);
    padding: 2.2rem 1.8rem; text-decoration: none;
    color: var(--ink); transition: all 0.4s ease;
    position: relative; cursor: pointer; display: block;
}
.category-card::after {
    content: ''; position: absolute;
    bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--accent); transition: all 0.4s ease;
    transform: translateX(-50%);
}
.category-card:hover { background: var(--parchment-deep); color: var(--ink); }
.category-card:hover::after { width: 40px; }
.category-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500; font-size: 1.3rem; margin-bottom: 0.4rem;
}
.category-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; font-weight: 300;
    letter-spacing: 0.1em; color: var(--ink-ghost);
    text-transform: uppercase;
}

/* ========== Nugget List ========== */
.nugget-list-section {
    padding: 4rem 2rem 6rem;
    max-width: 720px; margin: 0 auto;
}
.category-header {
    margin-bottom: 3rem; padding-bottom: 2rem;
    border-bottom: 1px solid var(--divider);
}
.category-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; font-weight: 400;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 0.75rem;
}
.category-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400; font-size: 2.8rem;
    line-height: 1.15; margin-bottom: 0.75rem;
}
.category-description {
    font-weight: 300; font-style: italic;
    color: var(--ink-faded); font-size: 1.05rem;
}
.nugget-list-item {
    padding: 2rem 0; border-bottom: 1px solid var(--divider);
    cursor: pointer; transition: all 0.3s ease;
    text-decoration: none; color: var(--ink); display: block;
}
.nugget-list-item:hover { padding-left: 1rem; color: var(--ink); }
.nugget-list-header {
    display: flex; align-items: baseline;
    gap: 1rem; margin-bottom: 0.4rem;
}
.nugget-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600; font-size: 1.4rem; color: var(--ink);
}
.strength-dots { display: flex; gap: 4px; flex-shrink: 0; }
.strength-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ink-ghost);
}
.strength-dot.filled { background: var(--accent); }
.nugget-excerpt {
    font-weight: 300; color: var(--ink-light);
    font-size: 0.95rem; line-height: 1.7;
}
.nugget-meta {
    margin-top: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.08em;
    color: var(--ink-ghost); text-transform: uppercase;
}

/* ========== Nugget Detail ========== */
.nugget-detail {
    padding: 5rem 2rem 6rem;
    max-width: 680px; margin: 0 auto;
}
.nugget-detail .category-label { margin-bottom: 1.5rem; }
.nugget-detail-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400; font-size: 2.8rem;
    line-height: 1.2; margin-bottom: 0.5rem;
}
.nugget-author {
    font-style: italic; font-weight: 300;
    color: var(--ink-faded); margin-bottom: 2.5rem; font-size: 1rem;
}
.nugget-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600; font-size: 1.1rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-light); margin-top: 2.5rem; margin-bottom: 1rem;
}
.nugget-body p {
    font-weight: 300; font-size: 1.05rem;
    line-height: 1.85; color: var(--ink); margin-bottom: 1.2rem;
}
.nugget-body .highlight {
    color: var(--accent); font-weight: 500; font-style: italic;
}
.strength-tags {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    margin: 2rem 0; padding: 1.5rem 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}
.strength-tag {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-faded);
    padding: 0.35rem 0.75rem; border: 1px solid var(--divider);
}
.tag-dots { display: flex; gap: 3px; }
.tag-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--ink-ghost);
}
.tag-dot.filled { background: var(--accent); }

/* ========== References ========== */
.references { margin-top: 2.5rem; }
.public-reference-item {
    padding: 1rem 0; border-bottom: 1px solid var(--divider);
    display: flex; gap: 1rem; align-items: baseline;
}
.reference-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--parchment);
    background: var(--ink-faded); padding: 0.2rem 0.5rem;
    flex-shrink: 0; white-space: nowrap;
}
.reference-type.study { background: var(--accent); }
.reference-type.video { background: var(--ink-light); }
.reference-type.article { background: var(--gold-muted); }
.reference-title { font-size: 0.9rem; font-weight: 400; color: var(--ink-light); }
.reference-title a {
    color: var(--ink-light); text-decoration: underline;
    text-decoration-color: var(--divider); text-underline-offset: 3px;
    transition: all 0.3s ease;
}
.reference-title a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.reference-summary {
    font-size: 0.8rem; font-weight: 300;
    color: var(--ink-faded); margin-top: 0.25rem;
}

/* ========== Pull Quote ========== */
.pull-quote {
    margin: 4rem 0; padding: 3rem 2.5rem;
    text-align: center; position: relative;
}
.pull-quote::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem; font-weight: 300; color: var(--divider);
    position: absolute; top: -1rem; left: 50%;
    transform: translateX(-50%); line-height: 1;
}
.pull-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300; font-size: 1.8rem;
    line-height: 1.5; color: var(--ink);
    font-style: italic; position: relative;
}
.pull-quote cite {
    display: block; margin-top: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--ink-ghost);
    font-style: normal;
}

/* ========== Footer ========== */
footer {
    padding: 3rem 2rem; text-align: center;
    border-top: 1px solid var(--divider);
    max-width: 900px; margin: 0 auto;
}
.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300; font-size: 1.2rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-ghost); margin-bottom: 0.5rem;
}
.footer-text {
    font-size: 0.75rem; font-weight: 300;
    color: var(--ink-ghost); font-style: italic;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    html { font-size: 16px; }
    .logo { font-size: 3rem; }
    .categories-grid { grid-template-columns: 1fr; }
    .nugget-detail-title, .category-title { font-size: 2rem; }
    .pull-quote p { font-size: 1.4rem; }
    nav { flex-direction: column; gap: 1rem; }
    .nugget-list-header { flex-direction: column; gap: 0.3rem; }
}
