/*
Theme Name: Plain Theme
Theme URI:
Author: Marlon Smith
Description: A clean, intentionally blank WordPress canvas with an optional heading, bordered content area, optional sidebar widgets, and footer links for Privacy Policy and Affiliate Disclosure.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: plain-theme
*/

* { box-sizing: border-box; }
html { margin: 0; padding: 0; }
body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.plain-wrap {
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
}

.plain-header { padding: 32px 0 0; }
.plain-heading {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
}

.plain-main { min-height: 70vh; padding: 32px 20px 60px; }
.plain-layout {
    width: min(100%, 1200px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

/* The written page is intentionally kept visually narrower by this simple border. */
.plain-content {
    width: 100%;
    max-width: 900px;
    justify-self: center;
    border: 2px solid #b86f3c;
    padding: clamp(24px, 4vw, 48px);
    background: #fff;
}

.page-title {
    margin: 0 0 28px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    font-weight: 700;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content iframe { max-width: 100%; }

.plain-sidebar { width: 100%; align-self: start; }
.plain-sidebar .widget { margin: 0 0 28px; }
.plain-sidebar .widget-title { margin: 0 0 12px; font-size: 1.25rem; }

.plain-footer { padding: 24px 0 30px; }
.plain-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.plain-footer-links a { color: inherit; text-decoration: underline; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .plain-sidebar { position: static; }
    .plain-layout { grid-template-columns: 1fr; }
    .plain-content { max-width: 900px; }
}
