/*
Theme Name: Gilded Scar Memoir
Theme URI: https://gildedscarmemoir.com
Author: Gilded Scar Memoir
Description: A literary WordPress block theme for Gilded Scar Memoir.
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: gilded-scar-memoir
*/

:root { --gsm-gold: #b69757; --gsm-cream: #f2eadc; --gsm-ink: #11100f; --gsm-oxblood: #641f2a; }
html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }
a { text-underline-offset: .18em; }
.gsm-kicker { letter-spacing: .19em; text-transform: uppercase; font-size: .76rem; }
.gsm-rule { width: 5rem; border-top: 1px solid var(--gsm-gold); margin: 1.5rem auto; }
.gsm-gold-border { border: 1px solid rgba(182,151,87,.48); }
.gsm-dropcap:first-letter { float:left; font-family: Georgia,serif; font-size:4.25rem; line-height:.76; padding:.12em .12em 0 0; color:var(--gsm-gold); }
.gsm-quiet-link a { text-decoration: none; }
.gsm-quiet-link a:hover { color: var(--gsm-gold); }
.gsm-hero .has-gold-color { color: #641f2a; }
.gsm-hero .gsm-kicker { color: #786132; }
.gsm-hero .wp-element-button { background: #641f2a; color: #f2eadc; }
.gsm-hero + .wp-block-group { background-color: #faf6ee; }
.gsm-header { gap: 1.25rem; }
.gsm-header-wordmark { font-size: 1.125rem; letter-spacing: .12em; }
.gsm-header-wordmark a { color: #786132; text-decoration: none; }
.gsm-header-wordmark em { font-size: 1rem; letter-spacing: .03em; }
.home .wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-element-button { background: #641f2a !important; color: #f2eadc !important; }
.home .wp-block-buttons .is-style-outline .wp-element-button { background: transparent; color: #641f2a; border-color: #b69757; }
.gsm-header .wp-block-site-title { font-size: 1.125rem; letter-spacing: .12em; }
.gsm-header .wp-block-site-title a { color: #786132; text-decoration: none; }
.gsm-header .wp-block-navigation { font-size: .875rem; }
.gsm-header .wp-block-navigation__container { gap: clamp(.8rem,2vw,1.75rem); }
.gsm-mailing-dialog { color: #11100f; background: #f2eadc; border: 1px solid #b69757; padding: clamp(1.5rem,5vw,3rem); width: min(35rem,calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; box-sizing: border-box; box-shadow: 0 1rem 4rem #11100f22; }
.gsm-mailing-dialog:not([open]) { display: none; }
.gsm-mailing-dialog::backdrop { background: rgba(17,16,15,.30); }
.gsm-mailing-dialog h2 { font-family: var(--wp--preset--font-family--literary,Georgia,serif); font-size: clamp(2rem,5vw,3rem); line-height: 1.1; margin: .75rem 0 1rem; }
.gsm-mailing-dialog p { font-size: 1rem; line-height: 1.65; }
.gsm-mailing-dialog .gsm-kicker { font-size: .875rem; color: #641f2a; padding-right: 2.5rem; }
.gsm-mailing-close { position: absolute; top: .5rem; right: .5rem; border: 0; background: transparent; color: #11100f; font-size: 1.75rem; width: 44px; height: 44px; cursor: pointer; }
.gsm-mailing-later { display: block; border: 0; background: transparent; color: #641f2a; text-decoration: underline; text-underline-offset: .2em; font: inherit; min-height: 44px; margin-top: .75rem; cursor: pointer; }
.gsm-mailing-form { margin-top: 1.5rem; }
.gsm-mailing-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]) { max-width: 100%; box-sizing: border-box; font-size: 1rem; padding: .75rem; color: #11100f; background: #faf6ee; border: 1px solid #786132; }
.gsm-mailing-form iframe { max-width: 100%; }
.gsm-mailing-link, .gsm-mailing-form button[type=submit], .gsm-mailing-form input[type=submit] { display: inline-block; font: 600 1rem/1.4 var(--wp--preset--font-family--sans,Arial,sans-serif); padding: .875rem 1.25rem; border: 1px solid #641f2a; background: #641f2a; color: #f2eadc; text-decoration: none; cursor: pointer; }
.gsm-mailing-note { font-size: .875rem !important; }
.gsm-mailing-dialog :focus-visible, a:focus-visible { outline: 2px solid #641f2a; outline-offset: 4px; }
html.gsm-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.home .gsm-hero.has-ink-background-color { background: #f2eadc !important; color: #11100f !important; }
.home .gsm-hero .has-cream-color { color: #11100f !important; }
.home .has-oxblood-background-color { background: #f2eadc !important; color: #11100f !important; border-top: 1px solid rgba(182,151,87,.5); border-bottom: 1px solid rgba(182,151,87,.5); }
.home .has-oxblood-background-color .has-cream-color { color: #11100f !important; }
.home .has-oxblood-background-color .wp-block-button:not(.is-style-outline) .wp-element-button { background:#641f2a !important; color:#f2eadc !important; }
.home .has-oxblood-background-color .is-style-outline .wp-element-button { color:#641f2a !important; border-color:#b69757 !important; }
.wp-block-navigation__responsive-container.is-menu-open { background: #f2eadc !important; color: #11100f !important; }
@media (max-width: 700px) { .gsm-hero { min-height: 68vh !important; } .gsm-hero h1 { font-size: clamp(2.8rem, 15vw, 5rem) !important; } }
