/*
Theme Name: Vortices Press
Version: 1.6.0
Text Domain: vortices-press
*/

:root {
  --paper: #ffffff;
  --header: #eef3ee;
  --sage: #d5e3d7;
  --ink: #111111;
  --green-2: #3d5a48;
  --line: #e6e6e6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  border-bottom: 1px solid #d7e0d8;
  transition: transform .25s ease;
}
.site-header.is-hidden { transform: translateY(-110%); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}
.brand {
  flex: 0 0 auto;
  color: var(--green-2);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--green-2); }
.brand img,
.custom-logo,
.custom-logo-link img {
  display: block !important;
  max-height: 36px !important;
  width: auto !important;
  height: auto !important;
}
.cats-scroll {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.cats-scroll a {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4a5c50;
  text-decoration: none;
  padding: 8px 0;
}
.cats-scroll a:hover { color: #111; text-decoration: none; }
.icon-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--green-2);
  font-size: 24px;
  cursor: pointer;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 26, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 80;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--sage);
  color: #2f4a3c;
  transform: translateX(100%);
  transition: transform .32s ease;
  z-index: 90;
  padding: 24px 28px 40px;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer-close {
  display: block;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #2f4a3c;
  cursor: pointer;
}
.drawer-search { margin: 18px 0 22px; }
.drawer-search input[type="search"] {
  width: 100%;
  border: 1px solid #b7c9ba;
  background: #fff;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 16px;
}
.drawer-nav a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  color: #2f4a3c;
  border-bottom: 1px solid #c5d6c7;
  text-decoration: none;
}

.hero-card {
  display: block;
  margin: 20px 0 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.hero-card:hover { text-decoration: none; color: inherit; }
.hero-card img { width: 100%; height: 240px; object-fit: cover; }
.hero-card .overlay { padding: 20px 20px 24px; }
.kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 8px;
}
.hero-card h2 {
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 700;
  color: #111;
}
.hero-card p { margin: 0 56px 0 0; color: #333; font-size: 16px; }
.hero-card .meta {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #777;
  margin-top: 14px;
}
.hero-go {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-2);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.section-head { margin: 8px 0 12px; }
.section-head h3 { font-size: 24px; font-weight: 700; margin: 0; color: #111; }
.pick {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: #111;
}
.pick:hover { text-decoration: none; }
.pick img, .pick-ph {
  width: 78px; height: 78px; object-fit: cover; border-radius: 14px; background: #eee;
}
.pick small {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 4px;
}
.pick strong { display: block; font-size: 18px; line-height: 1.25; font-weight: 700; }
.pick em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #777;
}

.home-cats { display: grid; gap: 12px; margin: 28px 0 48px; }
.home-cat {
  background: var(--header);
  border: 1px solid #d7e0d8;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
}
.home-cat:hover { text-decoration: none; }
.home-cat img, .home-cat-ph { width: 100%; height: 140px; object-fit: cover; background: #eee; }
.home-cat strong {
  display: block;
  font-size: 22px;
  padding: 14px 16px 16px;
  background: var(--header);
}

.article-body { padding: 24px 0 56px; color: #111; }
.article-body h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  margin: 8px 0 18px;
  color: #111;
}
.ad-frame {
  margin: 0 0 22px;
  min-height: 120px;
  border: 1px dashed #c9c9c9;
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
}
.article-hero { margin: 0 0 22px; }
.article-hero img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
}
.content p { margin: 0 0 16px; color: #111; }
.content h2 { font-size: 24px; margin: 28px 0 10px; font-weight: 700; color: #111; }
.content ul { padding-left: 18px; }
.byline-end {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

.site-footer {
  background: var(--sage);
  color: #2f4a3c;
  padding: 36px 0 40px;
  font-size: 14px;
}
.site-footer a { color: #2f4a3c; }
.site-footer h3 {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #2f4a3c;
}
.foot-grid { display: grid; gap: 22px; }
.copy { margin-top: 22px; font-size: 12px; color: #5a6d5e; }

@media (min-width: 980px) {
  body.menu-open { overflow: auto; }
  .wrap { width: min(1180px, calc(100% - 56px)); }
  .header-row { min-height: 92px; }
  .brand { width: 220px; }
  .brand img,
  .custom-logo,
  .custom-logo-link img { max-height: 54px !important; }
  .cats-scroll { gap: 36px; }
  .cats-scroll a { font-size: 15px; }
  .drawer-backdrop { background: transparent; }
  .drawer {
    top: 100px;
    right: 28px;
    left: auto;
    bottom: auto;
    width: 360px;
    max-height: calc(100vh - 130px);
    border-radius: 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(20, 32, 26, .16);
  }
  .drawer.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .home-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: start;
    margin-top: 24px;
  }
  .hero-card { margin: 0 0 24px; }
  .hero-card img { height: 300px; }
  .home-cats { grid-template-columns: repeat(3, 1fr); }
  .home-cat img, .home-cat-ph { height: 170px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .article-body { width: min(720px, 100%); }
}
@media (max-width: 979px) {
  .header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo menu"
      "cats cats";
    align-items: center;
    min-height: 0;
    padding: 10px 0 8px;
  }
  .brand { grid-area: logo; }
  .icon-btn { grid-area: menu; }
  .cats-scroll {
    grid-area: cats;
    justify-content: center;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
  }
  .cats-scroll a { font-size: 12px; }
}
