/*
Theme Name: Protean McGeekiest
Theme URI: https://monicks.net/
Author: Landau Reece; modernization by Joshua McGee
Description: A secure, responsive, editorial modernization of the GPL-3.0 Protean theme for Monicks: Unleashed.
Version: 0.1.2
License: GNU General Public License v3.0
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: protean-mcgeekiest
*/

:root {
  --rose-100: #ef95b4;
  --rose-300: #e75f8f;
  --rose-500: #df2a69;
  --rose-700: #b11b4f;
  --rose-900: #81133a;
  --paper: #fdfbf9;
  --surface: #ffffff;
  --ink: #2b2529;
  --muted: #736970;
  --line: #efd8e1;
  --focus: #81133a;
  --shadow: 0 12px 34px rgba(129, 19, 58, .08);
  --content: 1160px;
  --reading: 760px;
}

[data-theme="dark"] {
  --paper: #1e1a20;
  --surface: #29232b;
  --ink: #f8eef2;
  --muted: #c7b8c0;
  --line: #503241;
  --rose-100: #f3b0c7;
  --rose-300: #ee7ca3;
  --rose-500: #f05a8f;
  --rose-700: #ef95b4;
  --rose-900: #ffd5e3;
  --focus: #ef95b4;
  --shadow: 0 14px 40px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Droid Sans", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; height: auto; }
a { color: var(--rose-700); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--rose-500); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.screen-reader-text, .skip-link { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: .7rem 1rem; background: var(--surface); z-index: 9999; }

.site-shell { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-row { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; gap: 1rem 1.25rem; align-items: center; padding: 1.2rem 0; }
.site-logo { display: block; width: 88px; flex: none; }
.site-logo img { display: block; width: 100%; }
.site-branding { min-width: 0; }
.site-title { margin: 0; font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.08; font-weight: 700; }
.site-title a { color: var(--rose-700); text-decoration: none; }
.site-description { margin: .25rem 0 0; color: var(--rose-500); font-size: 1.05rem; font-style: italic; }
.header-tools { display: flex; gap: .65rem; align-items: center; justify-content: flex-end; }
.search-form { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); min-width: min(310px, 32vw); }
.search-field { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: .72rem 1rem; }
.search-submit, .theme-toggle { border: 0; background: transparent; color: var(--rose-700); cursor: pointer; }
.search-submit { padding: .65rem .95rem; }
.theme-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; }
.theme-toggle:hover, .search-submit:hover { color: var(--rose-500); background: color-mix(in srgb, var(--rose-100) 18%, transparent); }

.primary-nav { border-top: 1px solid var(--line); }
.primary-nav ul { display: flex; gap: .3rem 1.35rem; align-items: center; flex-wrap: wrap; margin: 0; padding: .65rem 0; list-style: none; }
.primary-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--rose-700); }

.hero-wrap { padding: 1.6rem 0 1.2rem; }
.hero-image { display: block; width: 100%; max-height: 370px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }

.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(2rem, 5vw, 4rem); padding: 1.25rem 0 3rem; }
.section-title { margin: 0 0 1.25rem; color: var(--rose-700); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.post-list { min-width: 0; }
.post-card { display: grid; grid-template-columns: minmax(220px, 38%) minmax(0, 1fr); gap: 1.5rem; padding: 0 0 1.65rem; margin: 0 0 1.65rem; border-bottom: 1px solid var(--line); }
.post-card:last-of-type { margin-bottom: 0; }
.post-thumbnail-link { display: block; overflow: hidden; border-radius: 12px; background: var(--line); aspect-ratio: 3 / 2; }
.post-thumbnail { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.post-card:hover .post-thumbnail { transform: scale(1.02); }
.post-meta { margin: 0 0 .35rem; color: var(--rose-700); font-size: .75rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.post-title { margin: 0 0 .55rem; font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.2; }
.post-title a { color: var(--rose-700); text-decoration: none; }
.post-card:hover .post-title a { color: var(--rose-500); }
.post-excerpt { margin: 0 0 .65rem; color: var(--ink); }
.read-more { display: inline-block; font-weight: 700; text-decoration: none; transition: transform .18s ease; }
.post-card:hover .read-more { transform: translateX(4px); }

.sidebar { border-left: 1px solid var(--line); padding-left: 1.35rem; }
.widget { margin-bottom: 2rem; }
.widget-title { margin: 0 0 .75rem; padding-bottom: .45rem; border-bottom: 1px solid var(--rose-100); color: var(--rose-700); font-size: 1.05rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: .25rem 0; }
.widget a { text-decoration: none; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 2.5rem; min-height: 2.5rem; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.page-numbers.current { background: var(--rose-700); color: #fff; border-color: var(--rose-700); }

.single-content, .page-content { width: min(calc(100% - 2rem), var(--reading)); margin: 2.5rem auto 4rem; }
.entry-header { margin-bottom: 1.5rem; }
.entry-title { margin: 0 0 .5rem; color: var(--rose-700); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; }
.entry-meta { color: var(--muted); font-size: .92rem; }
.entry-featured { margin: 1.4rem 0 2rem; border-radius: 16px; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { color: var(--rose-700); line-height: 1.25; }
.entry-content blockquote { margin: 2rem 0; padding: 1rem 1.25rem 1rem 1.5rem; border-left: 5px solid var(--rose-500); background: color-mix(in srgb, var(--rose-100) 14%, transparent); font-size: 1.1em; }

.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--rose-100) 12%, var(--surface)); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .header-row { grid-template-columns: auto 1fr; }
  .header-tools { grid-column: 1 / -1; justify-content: stretch; }
  .search-form { flex: 1; min-width: 0; }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { border-left: 0; border-top: 1px solid var(--line); padding: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (max-width: 660px) {
  body { font-size: 16px; }
  .site-logo { width: 68px; }
  .header-row { gap: .8rem; }
  .post-card { grid-template-columns: 1fr; gap: 1rem; }
  .post-thumbnail-link { aspect-ratio: 16 / 9; }
  .sidebar { grid-template-columns: 1fr; }
  .hero-image { border-radius: 12px; min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
