
/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
  color: #111;
  background: #fffefb;
}
img { max-width: 100%; height: auto; }
a { color: #8a2be2; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1100px, 92vw); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Header */
.site-header { border-bottom: 1px solid #eee; background: #ffffff; position: sticky; top: 0; z-index: 100; }
.branding { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.branding .site-title { font-size: clamp(1.1rem, 2vw, 1.6rem); margin: 0; }
.branding .site-description { margin: 0; font-size: 0.95rem; color: #555; }

/* Nav */
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0 0 12px; }
.primary-nav { display: flex; gap: 16px; }
.primary-nav a { padding: 8px 10px; border-radius: 6px; }
.primary-nav a:focus, .primary-nav a:hover { background: #f3ecff; }
.nav-toggle { display: none; border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 8px 10px; }
.nav-toggle:focus { outline: 2px solid #8a2be2; outline-offset: 2px; }

/* Mobile nav */
@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; flex-direction: column; gap: 0; border-top: 1px solid #eee; padding-top: 10px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; }
}

/* Main */
main { flex: 1; padding: 24px 0 40px; }
.entry { margin: 0 0 36px; }
.entry-title { margin: 0 0 10px; font-size: clamp(1.3rem, 3vw, 2rem); }
.entry-meta { font-size: 0.9rem; color: #555; margin-bottom: 12px; }
.entry-content > * + * { margin-top: 1rem; }

/* Buttons */
button, .button, input[type="submit"] {
  display: inline-block;
  border: 1px solid #8a2be2;
  background: #8a2be2;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
button:hover, .button:hover, input[type="submit"]:hover {
  filter: brightness(0.95);
}

/* Sidebar */
.sidebar { border-left: 1px solid #eee; padding-left: 24px; }
@media (max-width: 1000px) {
  .layout { display: block; }
  .sidebar { border: 0; padding: 0; margin-top: 28px; }
}

/* Grid layout for archives */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.grid-main { grid-column: span 8; }
.grid-side { grid-column: span 4; }
@media (max-width: 1000px) {
  .grid-main, .grid-side { grid-column: 1 / -1; }
}

/* Footer */
.site-footer { border-top: 1px solid #eee; padding: 18px 0; background: #fafafa; color: #333; }
.site-footer .footer-inner { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-footer small { color: #666; }


/* --- Threadbare Tapes Enhancements v1.1 --- */
:root{ --brand:#7b3fb9; --ink:#1b1612; --paper:#f7f2e9; --rust:#a0613a; --gold:#c79d53; --slate:#343a40; }
body{ background: var(--paper); color: var(--ink); }
a{ color: var(--brand); }
.hero{ position:relative; border-radius:18px; overflow:hidden; min-height:52vh; display:grid; align-items:end; margin:22px 0 30px; background-size:cover; background-position:center; }
.hero::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(27,22,18,0.8) 80%); }
.hero-inner{ position:relative; z-index:1; padding:clamp(16px,4vw,36px); color:#fff; }
.hero h1{ margin:0 0 6px; font-size:clamp(1.6rem,5vw,3rem); }
.hero p.sub{ margin:0 0 16px; color:#f5ead6; font-size:clamp(1rem,2.5vw,1.2rem); }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; }
.button-ghost{ background:transparent; border:1px solid var(--gold); color:var(--ink); padding:10px 14px; border-radius:10px; }
.button-ghost:hover{ background:rgba(199,157,83,0.12); }
.card{ background:#fff; border:1px solid #e6dcc9; border-radius:16px; padding:16px; box-shadow:0 10px 24px rgba(27,22,18,0.06); }
footer.site-footer{ background:#fff; }
.signature{ position:absolute; right:14px; bottom:10px; font-size:.9rem; color:#f0e6d4; opacity:.9; }

/* WordPress block alignment support */
.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}
.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
