/* ============================================================
   ACE — Frontend assets
   Magazine-editorial layout for sculpture_story single + archive,
   plus a tasteful "From our journal" callout on product pages.
   ============================================================ */

:root {
    --asce-serif: var(--font-serif, 'Cormorant Garamond', Georgia, 'Times New Roman', serif);
    --asce-sans: var(--font-sans, 'Inter', 'Helvetica Neue', system-ui, sans-serif);
    --asce-accent: var(--accent, #C8A96B);
    --asce-accent-soft: rgba(200, 169, 107, 0.12);
    --asce-text: var(--text-primary, #1a1a1a);
    --asce-text-soft: var(--text-secondary, #444);
    --asce-text-muted: var(--text-muted, #888);
    --asce-bg-soft: var(--surface-warm, #f5f1e8);
    --asce-border: var(--border, #e5dfd2);
}

/* ─── PRODUCT PAGE CALLOUT ────────────────────────────────── */
.asce-story-callout {
    max-width: 760px;
    margin: 3rem auto;
    padding: 1.6rem 2rem;
    background: var(--asce-bg-soft);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.asce-story-callout::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--asce-accent);
}
.asce-story-callout .asce-story-eyebrow {
    margin: 0 0 .5rem;
    font-family: var(--asce-sans);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--asce-accent);
    font-weight: 600;
}
.asce-story-callout .asce-story-title {
    margin: 0 0 .75rem;
    font-family: var(--asce-serif);
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -.01em;
}
.asce-story-callout .asce-story-title a {
    color: var(--asce-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .25s;
}
.asce-story-callout .asce-story-title a:hover { border-bottom-color: var(--asce-accent); }
.asce-story-callout .asce-story-excerpt {
    margin: 0 0 1rem;
    color: var(--asce-text-soft);
    line-height: 1.7;
    font-size: 1rem;
}
.asce-story-callout .asce-story-link {
    font-family: var(--asce-sans);
    font-size: .9rem;
    font-weight: 600;
    color: var(--asce-accent);
    text-decoration: none;
    letter-spacing: .02em;
}
.asce-story-callout .asce-story-link::after {
    content: " →";
    transition: margin-left .2s;
    display: inline-block;
}
.asce-story-callout .asce-story-link:hover::after { margin-left: .25rem; }


/* ─── ARCHIVE ─────────────────────────────────────────────── */
.asce-story-archive {
    max-width: 1160px;
    margin: 3rem auto 5rem;
    padding: 0 1.5rem;
    font-family: var(--asce-sans);
}
.asce-story-archive .asce-archive-header {
    text-align: center;
    margin: 0 auto 3.5rem;
    max-width: 600px;
}
.asce-story-archive .asce-archive-header h1 {
    font-family: var(--asce-serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: -.02em;
    margin: 0 0 1rem;
    line-height: 1.1;
    color: var(--asce-text);
}
.asce-story-archive .asce-archive-header p {
    color: var(--asce-text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}
.asce-story-archive .asce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}
.asce-story-card {
    background: transparent;
    transition: transform .35s ease;
}
.asce-story-card:hover { transform: translateY(-4px); }
.asce-story-card .asce-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    display: block;
}
.asce-story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Bust/face/head crops should keep the subject's face in frame even when
       the image aspect doesn't match the card. Top-center is the right
       default for sculpture portraiture. */
    object-position: center top;
    display: block;
    transition: transform .8s ease;
}
.asce-story-card:hover img { transform: scale(1.04); }
.asce-story-card .asce-card-meta {
    font-size: .72rem;
    color: var(--asce-accent);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600;
    margin: 0 0 .6rem;
}
.asce-story-card h2 {
    font-family: var(--asce-serif);
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.3;
    letter-spacing: -.005em;
    margin: 0 0 .75rem;
}
.asce-story-card h2 a {
    color: var(--asce-text);
    text-decoration: none;
    background-image: linear-gradient(var(--asce-accent), var(--asce-accent));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .3s ease;
}
.asce-story-card h2 a:hover { background-size: 100% 1px; }
.asce-story-card p {
    margin: 0 0 1rem;
    color: var(--asce-text-soft);
    line-height: 1.7;
    font-size: .95rem;
}
.asce-story-card .asce-card-link {
    font-size: .82rem;
    color: var(--asce-accent);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .12em;
}


/* ─── SINGLE STORY ────────────────────────────────────────── */
.asce-story-single {
    max-width: 760px;
    margin: 4rem auto 5rem;
    padding: 0 1.5rem;
    font-family: var(--asce-sans);
    line-height: 1.8;
    color: var(--asce-text);
    font-size: 1.075rem;
}

.asce-story-single .asce-story-header {
    text-align: center;
    margin: 0 0 3rem;
}
.asce-story-single .asce-story-eyebrow {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--asce-accent);
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.asce-story-single .asce-eyebrow-divider {
    margin: 0 .5rem;
    color: var(--asce-border);
}
.asce-story-single .asce-eyebrow-cats a {
    color: var(--asce-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.asce-story-single .asce-eyebrow-cats a:hover { border-bottom-color: var(--asce-accent); }
.asce-story-single .asce-story-title {
    font-family: var(--asce-serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 1.5rem;
    color: var(--asce-text);
}
.asce-story-single .asce-story-lead {
    font-family: var(--asce-serif);
    font-style: italic;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    line-height: 1.6;
    color: var(--asce-text-soft);
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}
.asce-story-single .asce-story-lead::before,
.asce-story-single .asce-story-lead::after {
    content: "";
    display: block;
    width: 50px;
    height: 1px;
    background: var(--asce-accent);
    margin: 1.25rem auto;
}

/* Hero figure */
.asce-story-single .asce-story-hero {
    margin: 0 0 3rem;
    text-align: center;
}
.asce-story-single .asce-story-hero img {
    width: 100%;
    max-width: 760px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.asce-story-single .asce-story-hero figcaption {
    margin-top: 1rem;
    font-size: .85rem;
    font-style: italic;
    color: var(--asce-text-muted);
}

/* Body content */
.asce-story-single .asce-story-body {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--asce-text-soft);
}
.asce-story-single .asce-story-body > p:first-of-type::first-letter {
    font-family: var(--asce-serif);
    font-size: 4em;
    float: left;
    line-height: .85;
    margin: .1em .15em 0 -.05em;
    color: var(--asce-accent);
    font-weight: 500;
}
.asce-story-single .asce-story-body h2 {
    font-family: var(--asce-serif);
    font-weight: 500;
    font-size: clamp(1.55rem, 2.5vw, 1.85rem);
    line-height: 1.25;
    letter-spacing: -.005em;
    color: var(--asce-text);
    margin: 3rem 0 1rem;
    position: relative;
    padding-top: 1.5rem;
}
.asce-story-single .asce-story-body h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--asce-accent);
    margin-bottom: 1.25rem;
}
.asce-story-single .asce-story-body h3 {
    font-family: var(--asce-serif);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--asce-text);
    margin: 2rem 0 .75rem;
}
.asce-story-single .asce-story-body p { margin: 0 0 1.4rem; }
.asce-story-single .asce-story-body ul,
.asce-story-single .asce-story-body ol {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}
.asce-story-single .asce-story-body li {
    margin-bottom: .6rem;
    line-height: 1.75;
}
.asce-story-single .asce-story-body a {
    color: var(--asce-text);
    text-decoration: none;
    border-bottom: 1px solid var(--asce-accent);
    transition: background .2s;
}
.asce-story-single .asce-story-body a:hover { background: var(--asce-accent-soft); }
.asce-story-single .asce-story-body strong { color: var(--asce-text); font-weight: 600; }
.asce-story-single .asce-story-body em { color: var(--asce-text-soft); }
.asce-story-single .asce-story-body .sculpture-story-source {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--asce-border);
    color: var(--asce-text-muted);
    font-size: .95rem;
    font-style: italic;
    text-align: center;
}

/* Section eyebrows */
.asce-story-single .asce-section-eyebrow {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--asce-accent);
    font-weight: 600;
    margin: 0 0 .6rem;
}

/* Related links */
.asce-story-single .asce-story-related {
    margin: 4rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid var(--asce-border);
    border-bottom: 1px solid var(--asce-border);
}
.asce-story-single .asce-story-related h2 {
    font-family: var(--asce-serif);
    font-weight: 500;
    font-size: 1.6rem;
    margin: 0 0 1.5rem;
    color: var(--asce-text);
}
.asce-story-single .asce-related-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: .25rem;
}
.asce-story-single .asce-related-grid li { margin: 0; }
.asce-story-single .asce-related-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: transparent;
    border-radius: 6px;
    color: var(--asce-text);
    text-decoration: none;
    font-family: var(--asce-serif);
    font-size: 1.1rem;
    transition: background .25s, padding-left .25s;
}
.asce-story-single .asce-related-grid a:hover {
    background: var(--asce-bg-soft);
    padding-left: 1.75rem;
}
.asce-story-single .asce-related-grid .asce-related-arrow {
    color: var(--asce-accent);
    font-size: 1.2rem;
    transition: transform .25s;
}
.asce-story-single .asce-related-grid a:hover .asce-related-arrow { transform: translateX(4px); }

/* FAQ accordion */
.asce-story-single .asce-story-faq {
    margin: 4rem 0;
}
.asce-story-single .asce-story-faq h2 {
    font-family: var(--asce-serif);
    font-weight: 500;
    font-size: 1.6rem;
    margin: 0 0 1.5rem;
    color: var(--asce-text);
}
.asce-story-single .asce-faq-item {
    border-bottom: 1px solid var(--asce-border);
    padding: 1.25rem 0;
}
.asce-story-single .asce-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    padding-right: 2rem;
    position: relative;
    color: var(--asce-text);
    transition: color .2s;
}
.asce-story-single .asce-faq-item summary::-webkit-details-marker { display: none; }
.asce-story-single .asce-faq-item summary:hover { color: var(--asce-accent); }
.asce-story-single .asce-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--asce-accent);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform .25s;
}
.asce-story-single .asce-faq-item[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(0);
}
.asce-story-single .asce-faq-answer {
    padding-top: .85rem;
    padding-right: 2rem;
    color: var(--asce-text-soft);
    font-size: 1.025rem;
    line-height: 1.75;
}

/* CTA box */
.asce-story-single .asce-story-cta {
    margin: 4rem 0 2rem;
    background: var(--asce-bg-soft);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.asce-story-single .asce-story-cta::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--asce-accent);
}
.asce-story-single .asce-cta-eyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--asce-accent);
    font-weight: 600;
    margin: 0 0 .85rem;
}
.asce-story-single .asce-cta-title {
    font-family: var(--asce-serif);
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--asce-text);
    margin: 0 0 1.5rem;
}
.asce-story-single .asce-cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--asce-text);
    color: #fff;
    border-radius: 999px;
    font-family: var(--asce-sans);
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background .25s, transform .2s;
}
.asce-story-single .asce-cta-button:hover {
    background: var(--asce-accent);
    transform: translateY(-1px);
}

/* Tag footer */
.asce-story-single .asce-story-footer {
    margin: 3rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid var(--asce-border);
}
.asce-story-single .asce-tag-eyebrow {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--asce-text-muted);
    font-weight: 600;
    margin: 0 0 .85rem;
}
.asce-story-single .asce-tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.asce-story-single .asce-tag-list a {
    display: inline-block;
    padding: .35rem .8rem;
    background: var(--asce-bg-soft);
    color: var(--asce-text-soft);
    text-decoration: none;
    border-radius: 999px;
    font-size: .82rem;
    transition: background .2s, color .2s;
}
.asce-story-single .asce-tag-list a:hover {
    background: var(--asce-accent);
    color: #fff;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 720px) {
    .asce-story-callout { margin: 2rem 1rem; padding: 1.4rem 1.5rem; }
    .asce-story-single { margin: 2rem auto 3rem; font-size: 1rem; }
    .asce-story-single .asce-story-header { margin-bottom: 2rem; }
    .asce-story-single .asce-story-hero { margin-bottom: 2rem; }
    .asce-story-single .asce-story-body { font-size: 1.025rem; }
    .asce-story-single .asce-story-body > p:first-of-type::first-letter { font-size: 3em; }
    .asce-story-single .asce-story-cta { padding: 2rem 1.25rem; }
    .asce-story-single .asce-cta-title { font-size: 1.35rem; }
    .asce-story-archive { margin: 2rem auto 3rem; }
    .asce-story-archive .asce-grid { gap: 2rem; grid-template-columns: 1fr; }
}

/* Dark mode awareness */
html[data-theme="dark"] .asce-story-callout { background: #17181C; }
html[data-theme="dark"] .asce-story-single .asce-story-cta { background: #17181C; }
html[data-theme="dark"] .asce-story-single .asce-related-grid a:hover { background: #17181C; }
html[data-theme="dark"] .asce-story-single .asce-tag-list a { background: #17181C; }
html[data-theme="dark"] .asce-story-single .asce-cta-button { background: var(--asce-accent); color: #0E0E10; }
html[data-theme="dark"] .asce-story-single .asce-cta-button:hover { background: #fff; }
