/*
Theme Name: Rotten Romance
Description: A cover-led editorial theme for RottenRomance.com.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
*/

:root {
	--paper: #fff9ef;
	--ink: #271b20;
	--wine: #821e46;
	--rule: #d4b9b7;
	--blush: #f5e3e1;
	--serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: var(--wine); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
main { min-height: 50vh; padding-bottom: 4rem; }
.shell { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.masthead { border-top: .45rem solid var(--wine); border-bottom: 1px solid var(--rule); }
.masthead-top, .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1rem; }
.wordmark { font: bold clamp(1.65rem, 5vw, 2.8rem)/1.1 var(--serif); letter-spacing: -.06em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--wine); font-style: italic; }
.primary-nav ul, .site-footer ul, .pagination ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0; margin: 0; list-style: none; }
.primary-nav { border-top: 1px solid var(--rule); padding-block: .65rem; }
.primary-nav a { display: inline-block; padding-block: .25rem; color: var(--ink); font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--wine); text-decoration: underline; }
.site-search { display: flex; flex-wrap: wrap; gap: .4rem; }
input, textarea, button { font: inherit; }
input[type="search"] { width: min(48vw, 14rem); }
input:not([type="checkbox"]):not([type="submit"]), textarea { padding: .42rem .65rem; max-width: 100%; border: 1px solid var(--wine); color: var(--ink); background: #fff; }
button, input[type="submit"] { padding: .42rem .8rem; border: 1px solid var(--wine); background: var(--wine); color: #fff; cursor: pointer; }
.intro { background: var(--blush); padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 7vw, 6rem); margin-block: 1.25rem 2.5rem; border-bottom: 3px solid var(--wine); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; overflow-wrap: anywhere; }
h1 { margin: 0; letter-spacing: -.04em; font-size: clamp(2.35rem, 7vw, 5.4rem); }
.intro em { color: var(--wine); }
.intro p { font-size: clamp(1rem, 2.5vw, 1.2rem); margin-bottom: 0; }
.section-title { margin-block: 0 1.3rem; border-bottom: 1px solid var(--rule); padding-bottom: .6rem; font-size: 1.8rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem; }
.post-card { min-width: 0; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
.post-card :is(h2, h3) { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: .45rem 0; }
.post-card :is(h2, h3) a { color: var(--ink); }
.cover-frame { background: var(--blush); display: grid; place-items: center; padding: .9rem; aspect-ratio: 4 / 4.5; }
.cover-frame img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.category-label, .parody { font-size: .8rem; font-weight: 750; color: var(--wine); }
.category-label { margin: .65rem 0 .3rem; }
.parody { display: inline-block; margin-block: .5rem; padding: .2rem .55rem; border: 1px solid currentColor; }
.listing-heading, .feature-heading { margin-block: clamp(1.5rem, 5vw, 3rem); }
.feature-heading h1, .listing-heading h1 { font-size: clamp(2.1rem, 6vw, 4.4rem); max-width: 25ch; }
.feature-body.with-cover { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: clamp(1.25rem, 5vw, 4rem); }
.feature-cover { margin: 0; }
.feature-cover img { display: block; max-height: 44rem; object-fit: contain; }
figcaption, .byline, .tags { font-size: .9rem; }
.prose { max-width: 70ch; min-width: 0; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose blockquote { margin: 1.5rem 0; padding-inline-start: 1rem; border-inline-start: 3px solid var(--wine); font: 1.25rem/1.45 var(--serif); }
.prose iframe { max-width: 100%; }
.prose .wp-block-table { overflow-x: auto; }
.rr-book { background: var(--blush); padding: 1rem 1.25rem; margin-block: 1.5rem; }
.rr-book dt { font-weight: bold; }
.rr-book dd { margin: 0 0 .5rem; }
.rr-book > :first-child { margin-top: 0; }
.rr-book > :last-child { margin-bottom: 0; }
.pagination, .comments { margin-block: 2rem; }
.site-footer { border-top: 1px solid var(--rule); background: var(--blush); }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: .6rem; left: .6rem; padding: .5rem; background: var(--paper); }
@media (max-width: 40rem) {
	.feature-body.with-cover { grid-template-columns: minmax(0, 1fr); }
	.feature-cover img { max-height: 32rem; }
}
