/* awescience.org — the dawn palette, carried over from Embers so the estate
   reads as one thing. */

:root {
    --ink: #2a1e26;
    --ink-soft: #5b4a52;
    --stone: #8c7a74;
    --mist: #f6ebe3;
    --parchment: #fcf7f2;
    --plum: #3e2a47;
    --ember: #e07b43;
    --ember-deep: #c25e2c;
    --gold: #f0c27a;
    --line: rgba(62, 42, 71, 0.14);
    --shadow-sm: 0 2px 10px rgba(62, 42, 71, 0.10);
    --shadow-md: 0 10px 30px rgba(62, 42, 71, 0.14);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --measure: 64ch;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--mist);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
a { color: var(--ember-deep); }
main { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem 4rem; }

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

.site-header {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    justify-content: space-between;
    max-width: 1080px; margin: 0 auto; padding: 1.5rem;
}
.wordmark {
    display: flex; align-items: center; gap: .6rem;
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
    color: var(--ink); text-decoration: none;
}
.wordmark__mark {
    width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, var(--gold), var(--ember) 55%, var(--ember-deep));
    box-shadow: 0 0 14px rgba(224, 123, 67, .55);
}
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; }
.site-header nav a:hover { color: var(--ember-deep); }

/* --- home --------------------------------------------------------------- */

.hero {
    display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap;
    background: var(--plum); color: var(--mist);
    border-radius: 22px; padding: 2.5rem; margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}
.hero h1 { margin: 0 0 .5rem; font-size: 2.4rem; }
.hero__copy { flex: 1 1 22rem; }
.hero__mark {
    width: 160px; height: 160px; border-radius: 50%; flex: 0 0 auto;
    background: radial-gradient(circle at 50% 45%, var(--gold), var(--ember) 55%, rgba(194, 94, 44, .25) 100%);
    box-shadow: 0 0 60px rgba(224, 123, 67, .45);
}
@media (prefers-reduced-motion: no-preference) {
    .hero__mark { animation: breathe 6s ease-in-out infinite; }
    @keyframes breathe {
        0%, 100% { transform: scale(.96); opacity: .88; }
        50%      { transform: scale(1.02); opacity: 1; }
    }
}

.tool-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tool {
    display: block; background: var(--parchment); border-radius: 14px;
    padding: 1.25rem 1.5rem; text-decoration: none; color: var(--ink);
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.tool h3 { margin: 0 0 .35rem; }
.tool p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.tool--soon { opacity: .72; cursor: default; }
.tool__flag {
    display: inline-block; margin-top: .6rem; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .08em; color: var(--stone);
}

/* --- documents ---------------------------------------------------------- */

.document { background: var(--parchment); border-radius: 22px; padding: 2.5rem;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.document.narrow { max-width: 30rem; }
.prose { max-width: var(--measure); }
.prose img { max-width: 100%; border-radius: 12px; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1.5rem 0;
    padding-left: 1.25rem; color: var(--ink-soft); }
.lede { color: var(--ink-soft); font-size: 1.1rem; max-width: var(--measure); }
.breadcrumb { margin-top: 0; font-size: .9rem; }
.edit-link { margin-top: 2rem; font-size: .9rem; }

.article-list { list-style: none; padding: 0; }
.article-list li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.article-list a { font-family: var(--font-display); font-size: 1.1rem; text-decoration: none; }
.article-list span { display: block; color: var(--ink-soft); font-size: .93rem; }

.draft-note, .draft-flag {
    color: var(--ember-deep); font-size: .85rem; font-style: italic;
}

/* --- forms and admin ---------------------------------------------------- */

.stack { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; }
.stack label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem;
    color: var(--ink-soft); }
.stack label.check { flex-direction: row; align-items: center; gap: .5rem; }
.stack small { color: var(--stone); font-size: .78rem; }
input, textarea {
    font: inherit; padding: .6rem .7rem; border: 1px solid var(--line);
    border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { font-family: 'Space Mono', ui-monospace, monospace; font-size: .92rem; line-height: 1.6; }
.btn {
    display: inline-block; background: var(--ember); color: #fff; border: 0;
    border-radius: 999px; padding: .6rem 1.4rem; font: inherit; cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: var(--ember-deep); }
.btn--small { padding: .35rem 1rem; font-size: .85rem; }
.btn--quiet { background: transparent; color: var(--ember-deep); border: 1px solid var(--line); }
.btn--danger { background: transparent; color: #9d3b3b; border: 1px solid #d8b6b6; }
.row { display: flex; gap: .75rem; align-items: center; }
.danger { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.admin-head { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 .5rem; }
.admin-head h2 { margin: 0; }
.admin-row { display: flex; justify-content: space-between; gap: 1rem;
    padding: .6rem 0; border-bottom: 1px solid var(--line); }
.admin-meta { color: var(--stone); font-size: .85rem; }
.admin-note { margin-top: 2.5rem; color: var(--stone); font-size: .85rem; }

.flash { max-width: 1080px; margin: 0 auto 1rem; padding: .75rem 1.5rem;
    color: var(--ember-deep); }

.site-footer { max-width: 1080px; margin: 0 auto; padding: 2rem 1.5rem 3rem;
    color: var(--stone); font-size: .85rem; border-top: 1px solid var(--line); }

.byline { color: var(--stone); font-size: .9rem; margin-top: -.5rem; }
.revision-meta { color: var(--stone); font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: .75rem; }
.footer-nav a { color: var(--stone); }
.copyright { margin-top: .5rem; }

.quote { max-width: 720px; margin: 4rem auto 2rem; padding: 0 1.5rem; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.3rem;
    font-style: italic; font-weight: 300; line-height: 1.5; }
.quote blockquote p { margin: 0 0 .5rem; }
.quote__who { color: var(--stone); font-size: .9rem; }
.md-crib { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: .3rem 1.5rem; margin-bottom: -.5rem; color: var(--stone); font-size: .8rem; }
.md-crib code { font-family: 'Space Mono', ui-monospace, monospace; font-size: .78rem; }
