/*
Theme Name: Anamorfosis Archive
Theme URI: https://example.invalid/anamorfosis-archive
Author: OpenAI
Description: A minimal, fast, editorial WordPress theme for an archival multisite.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anamorfosis-archive
Tags: blog, news, one-column, custom-menu, featured-images, translation-ready
*/

:root {
  --page: #f8f9fa;
  --surface: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dde1e5;
  --blue: #1a73e8;
  --green: #188038;
  --yellow: #f9ab00;
  --red: #d93025;
  --radius: 1.25rem;
  --shadow: 0 1px 2px rgba(60, 64, 67, .12), 0 1px 3px 1px rgba(60, 64, 67, .06);
  --max: 78rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
figure { margin: 1.75rem 0; }
figcaption { color: var(--muted); font-size: .875rem; }
a { color: inherit; text-decoration-color: currentColor; text-underline-offset: .18em; }
a:hover { color: var(--blue); }
button, input, textarea, select { font: inherit; }

.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;
}
.screen-reader-text:focus {
  z-index: 100; clip: auto; width: auto; height: auto; margin: 1rem; padding: .75rem 1rem;
  overflow: visible; background: var(--ink); color: #fff; border-radius: .5rem;
}

.site-header {
  position: sticky; z-index: 30; top: 0; background: rgba(248, 249, 250, .92);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.header-inner, .site-main, .footer-inner { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; gap: 1rem; }
.site-branding { display: flex; align-items: center; gap: .65rem; min-width: 0; margin-right: auto; }
.site-mark { display: grid; grid-template-columns: repeat(2, .45rem); gap: .15rem; }
.site-mark span { width: .45rem; height: .45rem; border-radius: 50%; }
.site-mark span:nth-child(1) { background: var(--blue); }.site-mark span:nth-child(2) { background: var(--red); }
.site-mark span:nth-child(3) { background: var(--yellow); }.site-mark span:nth-child(4) { background: var(--green); }
.site-title { color: var(--ink); font-size: 1.04rem; font-weight: 700; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-description { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); padding: .6rem; cursor: pointer; }
.primary-menu ul { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.primary-menu a { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; padding: .5rem .7rem; text-decoration: none; border-radius: 99px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { background: #e8f0fe; color: #174ea6; }
.header-search { display: block; width: 1.25rem; height: 1.25rem; color: var(--muted); }

.site-main { min-height: 58vh; padding-block: 2.25rem 4rem; }
.archive-header, .page-header { margin: 1rem 0 2.75rem; max-width: 54rem; }
.archive-title, .page-title, .entry-title { margin: 0; font-weight: 650; letter-spacing: -.05em; line-height: 1.04; }
.archive-title, .page-title { font-size: clamp(2.3rem, 6vw, 5.6rem); }
.archive-description { margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; }

.hero { position: relative; display: grid; gap: 1rem; align-items: end; min-height: min(65vh, 46rem); padding: clamp(2rem, 7vw, 6rem); overflow: hidden; background: var(--surface); border-radius: calc(var(--radius) * 1.6); box-shadow: var(--shadow); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(4px); opacity: .9; }
.hero::before { width: 22rem; height: 22rem; top: -12rem; right: -5rem; background: radial-gradient(circle at 30% 40%, #e8f0fe 0 25%, #d2e3fc 26% 48%, transparent 49%); }
.hero::after { width: 18rem; height: 18rem; bottom: -13rem; left: 25%; background: radial-gradient(circle, #fce8e6 0 24%, #fef7e0 25% 46%, transparent 47%); }
.hero-content { position: relative; z-index: 1; max-width: 56rem; }
.eyebrow { margin: 0 0 .9rem; color: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-title { max-width: 16ch; margin: 0; font-size: clamp(3rem, 9vw, 7.75rem); font-weight: 650; letter-spacing: -.065em; line-height: .92; }
.hero-text { max-width: 38rem; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); }
.hero-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 99px; background: var(--blue); color: #fff; font-size: .95rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #1558b0; color: #fff; }
.button--quiet { background: transparent; border-color: var(--line); color: var(--ink); }.button--quiet:hover { background: #f1f3f4; color: var(--ink); }

.section { margin-top: clamp(3rem, 7vw, 6rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.045em; line-height: 1.1; }
.section-link { color: var(--blue); font-size: .9rem; font-weight: 700; text-decoration: none; }

.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.entry-card { position: relative; display: flex; flex-direction: column; min-height: 15rem; padding: 1.35rem; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .18s ease, transform .18s ease; }
.entry-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.entry-card:nth-child(4n + 1) { border-top: 3px solid var(--blue); }.entry-card:nth-child(4n + 2) { border-top: 3px solid var(--red); }.entry-card:nth-child(4n + 3) { border-top: 3px solid var(--yellow); }.entry-card:nth-child(4n) { border-top: 3px solid var(--green); }
.entry-card--featured { grid-column: span 2; min-height: 21rem; padding: clamp(1.5rem, 4vw, 3rem); }
.entry-card--featured .entry-card__title { font-size: clamp(1.8rem, 4vw, 3.35rem); }
.entry-card__meta, .entry-meta { color: var(--muted); font-size: .8rem; }
.entry-card__title { margin: .65rem 0; font-size: 1.32rem; letter-spacing: -.035em; line-height: 1.12; }
.entry-card__title a { text-decoration: none; }
.entry-card__excerpt { color: var(--muted); font-size: .93rem; }
.entry-card__footer { margin-top: auto; padding-top: 1rem; }
.entry-card__link { color: var(--blue); font-size: .88rem; font-weight: 700; text-decoration: none; }

.article { max-width: 50rem; margin-inline: auto; }
.article-header { margin-bottom: 2.5rem; }
.article-header .entry-title { font-size: clamp(2.5rem, 6vw, 5.5rem); }
.article-header .entry-meta { margin-top: 1.25rem; }
.article-featured-image img { display: block; width: 100%; border-radius: var(--radius); }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.78; }
.entry-content > * { margin-block: 1.35em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.035em; line-height: 1.12; }
.entry-content h2 { margin-top: 2.4em; font-size: 1.7em; }.entry-content h3 { margin-top: 2em; font-size: 1.36em; }
.entry-content blockquote { margin-inline: 0; padding: .25rem 0 .25rem 1.25rem; border-left: .22rem solid var(--blue); color: #3c4043; font-size: 1.14em; }
.entry-content pre { overflow: auto; padding: 1rem; background: #202124; color: #f8f9fa; border-radius: .75rem; font-size: .8em; }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; font-size: .9em; }
.entry-content th, .entry-content td { padding: .65rem; border: 1px solid var(--line); text-align: left; }
.entry-content .alignleft { float: left; margin: .35rem 1.5rem 1rem 0; }.entry-content .alignright { float: right; margin: .35rem 0 1rem 1.5rem; }.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content .wp-caption { max-width: 100%; }.entry-content .wp-caption-text { color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .8em; }
.entry-footer { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .85rem; }
.entry-footer a { color: var(--blue); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.pagination a { padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 99px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.pagination a:hover { background: #f1f3f4; color: var(--ink); }
.no-results { max-width: 42rem; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.site-footer { background: #202124; color: #e8eaed; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding-block: 2rem; }
.footer-title { margin: 0; color: #fff; font-size: 1rem; }.footer-text { margin: .3rem 0 0; color: #bdc1c6; font-size: .85rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem 1rem; list-style: none; margin: 0; padding: 0; }.footer-nav a { color: #e8eaed; font-size: .85rem; text-decoration: none; }

.comment-list { list-style: none; margin: 1.25rem 0; padding: 0; }.comment-body { padding: 1rem 0; border-top: 1px solid var(--line); }.comment-meta { color: var(--muted); font-size: .84rem; }.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .search-form input { width: 100%; padding: .7rem .8rem; border: 1px solid #bdc1c6; border-radius: .5rem; background: #fff; }.comment-form input[type="submit"], .search-form input[type="submit"] { margin-top: .65rem; padding: .65rem 1rem; border: 0; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }

@media (max-width: 760px) {
  .site-description, .header-search { display: none; }
  .menu-toggle { display: block; }
  .primary-menu { display: none; position: absolute; inset: 4.5rem 1rem auto; padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: .8rem; box-shadow: var(--shadow); }.primary-menu.is-open { display: block; }.primary-menu ul { display: block; }.primary-menu a { padding: .7rem; }
  .entry-grid { grid-template-columns: 1fr; }.entry-card--featured { grid-column: auto; min-height: 18rem; }.footer-inner { grid-template-columns: 1fr; }.footer-nav ul { justify-content: flex-start; }
  .entry-content .alignleft, .entry-content .alignright { float: none; display: block; margin: 1.25rem auto; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
