/*
Theme Name: Vena Journal
Version: 1.0.0
Description: Accessible editorial theme for Yasnora and ProfitVena.
*/
:root {
  --ink: #211b35;
  --muted: #746d82;
  --paper: #fff;
  --canvas: #faf9fc;
  --line: #e8e3ef;
  --accent: #7450d0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    17px/1.65 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.shell {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}
.header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.6px;
}
.brand img {
  width: 36px;
  height: 40px;
}
.brand small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
}
.button,
button,
input[type="submit"] {
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  background: var(--accent);
  color: white !important;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  display: inline-block;
}
.hero {
  padding: 84px 0 58px;
  max-width: 850px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 750;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  line-height: 1.13;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(38px, 5.5vw, 70px);
  margin: 18px 0 24px;
  font-weight: 750;
}
h2 {
  font-size: 32px;
}
h3 {
  font-size: 25px;
}
.hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 680px;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 15px;
  font-size: 13px;
  background: white;
}
.search {
  display: flex;
  gap: 8px;
}
.search input {
  max-width: 240px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 48px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.card-body {
  padding: 26px;
}
.card h2 {
  font-size: 25px;
  margin: 12px 0;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}
.meta {
  color: var(--muted);
  font-size: 13px;
}
.art {
  height: 200px;
  background:
    radial-gradient(ellipse at 20% 10%, #b9edf5, transparent 65%),
    radial-gradient(ellipse at 100% 100%, #c5a6fc, transparent 70%), #e9e3fc;
  display: grid;
  place-items: center;
}
.art img {
  width: 64px;
  height: 74px;
  object-fit: contain;
}
.empty {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  padding: 44px;
  margin: 0 0 60px;
}
.empty p {
  color: var(--muted);
}
.subscribe {
  background: #eee8fa;
  border: 1px solid #e2d8f5;
  border-radius: 28px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 20px 0 80px;
}
.subscribe h2 {
  margin-top: 0;
}
.subscribe p {
  color: var(--muted);
  font-size: 15px;
}
input[type="email"],
input[type="text"],
input[type="search"] {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  border: 1px solid #d4cce0;
  background: white;
  color: var(--ink);
  border-radius: 10px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
.subscribe label {
  font-size: 14px;
}
.subscribe .es-field-wrap {
  margin-bottom: 14px;
}
.article {
  max-width: 780px;
  margin: 64px auto 80px;
}
.article h1 {
  font-size: clamp(36px, 5vw, 58px);
}
.article .entry {
  margin-top: 40px;
}
.entry a {
  text-decoration: underline;
  color: var(--accent);
}
.entry img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.entry pre {
  overflow: auto;
  padding: 20px;
  background: #211b35;
  color: #f6f3fc;
  border-radius: 14px;
}
.entry blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  margin-left: 0;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 15px;
  top: 10px;
  background: white;
  padding: 15px;
  z-index: 50;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 850px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .subscribe {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nav {
    gap: 15px;
  }
  .nav .secondary {
    display: none;
  }
}
@media (max-width: 560px) {
  .shell {
    width: calc(100% - 32px);
  }
  .header .shell {
    min-height: 76px;
    gap: 8px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    display: none;
  }
  .nav {
    font-size: 12px;
    gap: 12px;
  }
  .nav .button {
    padding: 10px 12px;
  }
  .hero {
    padding: 48px 0 32px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .subscribe {
    padding: 26px;
  }
  .tools {
    align-items: stretch;
  }
  .search {
    width: 100%;
  }
  .search input {
    max-width: none;
  }
  .article {
    margin-top: 40px;
  }
  .hero p {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
input:not([type="checkbox"]),
textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 240px;
}
.consent {
  display: block;
  margin: 16px 0;
}
.consent a {
  text-decoration: underline;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.message {
  margin: 72px auto;
  max-width: 720px;
}
.message h1 {
  font-size: 38px;
}
.message label,
.editor label {
  display: block;
  margin: 20px 0;
}
.editor-list {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
}
.editor-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lead {
  font-size: 21px;
  color: var(--muted);
}
.read {
  font-weight: 650;
  color: var(--accent);
}
.article-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  margin: 28px 0;
}
.tag-list,
.share-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag-list {
  margin: 20px 0;
}
.share-tools {
  align-items: center;
  margin: 28px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.share-tools button {
  padding: 10px 16px;
}
.share-tools .secondary-button {
  background: var(--paper);
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.seo-panel {
  margin: 34px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}
.seo-panel h2 {
  margin-top: 0;
}
.seo-panel textarea {
  min-height: 100px;
}
.field-help {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.search-preview {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-top: 18px;
}
.search-preview strong {
  display: block;
  color: #1a0dab;
  font-size: 20px;
  font-weight: 500;
}
.search-preview small {
  color: #188038;
}
.card-featured {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.entry table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
}
.entry td,
.entry th {
  border: 1px solid var(--line);
  padding: 8px;
}
.editor {
  max-width: 900px;
}
.footer {
  margin-top: 50px;
}
.back {
  color: var(--accent);
}
@media (max-width: 560px) {
  .header .shell {
    flex-wrap: wrap;
    padding: 16px 0;
  }
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .nav .secondary {
    display: inline;
  }
  .hero h1 {
    font-size: 39px;
  }
  .editor-list a {
    flex-direction: column;
  }
  .subscribe {
    margin-bottom: 40px;
  }
}
