/*
Theme Name: Vessel
Theme URI: https://www.vesselailab.com
Author: Vessel AI Lab
Author URI: https://www.vesselailab.com
Description: The Vessel AI Lab journal theme — cream, ink and warm-brass, Inter + JetBrains Mono. Built to match the main site pixel-for-pixel. Empty to Empower. Formed for Mission.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vessel
*/

/* ============================================================
   Design tokens — identical to the Vessel AI Lab main site
   ============================================================ */
:root {
  --cream: #FAF8F1;
  --cream-card: #FDFCF8;
  --ink: #161512;
  --ink-soft: #1E1D19;
  --accent: #9A7B4F;
  --text: #4A473F;
  --muted: #8C8578;
  --muted-2: #6C685F;
  --hair: rgba(22,21,18,0.08);
  --hair-strong: rgba(22,21,18,0.12);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --measure: 68ch;
  --wrap: 1160px;
  --wrap-read: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }

/* ============================================================
   Reusable atoms
   ============================================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow .idx { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: clamp(20px,5vw,48px); padding-right: clamp(20px,5vw,48px); }
.wrap-read { max-width: var(--wrap-read); margin: 0 auto; padding-left: clamp(20px,5vw,48px); padding-right: clamp(20px,5vw,48px); }

/* ============================================================
   Scroll progress bar
   ============================================================ */
#scrollBar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--ink); z-index: 60; transition: width .12s linear;
}

/* ============================================================
   NAV — matches main site
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px,5vw,48px);
  background: rgba(250,248,241,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22,21,18,0.07);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.vslmark { position: relative; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; }
.vslmark .vslDrop {
  position: absolute; top: 0; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  background: var(--ink); border-radius: 50%;
  transition: transform .55s cubic-bezier(.4,1.5,.5,1);
}
.vslmark .vslCup {
  width: 13px; height: 13px; margin-bottom: 3px;
  border-right: 1.7px solid var(--ink); border-bottom: 1.7px solid var(--ink);
  border-bottom-right-radius: 2px; transform: rotate(45deg);
}
.brand:hover .vslDrop { transform: translateY(9px); }
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink); text-decoration: none; text-transform: uppercase;
  transition: color .3s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-cta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink); text-decoration: none; text-transform: uppercase;
  padding: 11px 18px; border: 1px solid rgba(22,21,18,0.28); border-radius: 999px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
@media (max-width: 620px) { .nav-link.hide-sm { display: none !important; } }

/* ============================================================
   Journal masthead
   ============================================================ */
.masthead {
  position: relative;
  padding: clamp(64px,10vw,120px) 0 clamp(40px,6vw,72px);
  text-align: center;
  overflow: hidden;
}
.masthead .glow {
  position: absolute; left: 50%; top: 40%; width: 620px; height: 620px;
  margin-left: -310px; margin-top: -310px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(154,123,79,0.13), rgba(154,123,79,0) 58%);
  filter: blur(12px); animation: glowPulse 8s ease-in-out infinite;
}
.masthead > * { position: relative; z-index: 1; }
.masthead h1 {
  font-size: clamp(36px,5.4vw,68px); line-height: 1.05; font-weight: 600;
  letter-spacing: -0.03em; margin: 22px auto 0; max-width: 16ch;
  text-wrap: balance; color: var(--ink);
}
.masthead .lede {
  margin: 24px auto 0; max-width: 52ch;
  font-size: clamp(15px,1.4vw,18px); line-height: 1.6; color: var(--text);
}

/* ============================================================
   Post list (index / archive)
   ============================================================ */
.post-list {
  max-width: 920px; margin: 0 auto;
  padding: clamp(24px,5vw,56px) clamp(20px,5vw,48px) clamp(60px,10vw,110px);
}
.post-row {
  position: relative; display: block; text-decoration: none; color: inherit;
  padding: clamp(28px,4vw,42px) 0;
  border-top: 1px solid var(--hair);
}
.post-list .post-row:last-child { border-bottom: 1px solid var(--hair); }
.post-row .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 14px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.post-row .meta .cat { color: var(--accent); }
.post-row h2 {
  font-size: clamp(24px,3vw,36px); line-height: 1.14; font-weight: 600;
  letter-spacing: -0.025em; margin: 0; max-width: 24ch;
  transition: color .3s ease;
}
.post-row:hover h2 { color: var(--accent); }
.post-row .excerpt {
  margin: 14px 0 0; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--text);
}
.post-row .more {
  display: inline-block; margin-top: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink);
  border-bottom: 1px solid rgba(22,21,18,0.35); padding-bottom: 3px;
  transition: color .3s ease, border-color .3s ease;
}
.post-row:hover .more { color: var(--accent); border-color: var(--accent); }
.post-row .thumb {
  margin-top: 22px; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--hair-strong);
}
.post-row .thumb img { width: 100%; height: auto; }

/* ============================================================
   Single / Page — reading experience
   ============================================================ */
.article-head {
  padding: clamp(40px,7vw,88px) 0 clamp(24px,4vw,44px);
  text-align: center;
}
.article-head .meta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--muted); text-transform: uppercase;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.article-head .meta .cat { color: var(--accent); }
.article-head h1 {
  font-size: clamp(30px,4.4vw,56px); line-height: 1.08; font-weight: 600;
  letter-spacing: -0.03em; margin: 20px auto 0; max-width: 20ch;
  text-wrap: balance;
}
.article-head .byline {
  margin-top: 22px; font-size: 14px; color: var(--muted);
}
.article-hero {
  max-width: 1000px; margin: clamp(28px,5vw,52px) auto 0;
  padding: 0 clamp(20px,5vw,48px);
}
.article-hero img { width: 100%; border-radius: 6px; border: 1px solid var(--hair-strong); }

/* Prose */
.vessel-prose {
  max-width: var(--measure); margin: clamp(36px,6vw,64px) auto 0;
  padding: 0 clamp(20px,5vw,48px);
  font-size: 18px; line-height: 1.75; color: #2C2A25;
}
.vessel-prose > * { margin: 0 0 1.5em; }
.vessel-prose p { margin: 0 0 1.5em; }
.vessel-prose h2 {
  font-size: clamp(24px,2.6vw,32px); line-height: 1.2; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); margin: 2.2em 0 0.7em;
}
.vessel-prose h3 {
  font-size: clamp(20px,2vw,24px); line-height: 1.25; font-weight: 600;
  letter-spacing: -0.015em; color: var(--ink); margin: 1.9em 0 0.6em;
}
.vessel-prose h4 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 1.6em 0 0.5em; }
.vessel-prose a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid rgba(154,123,79,0.55);
  transition: color .25s ease, border-color .25s ease;
}
.vessel-prose a:hover { color: var(--accent); border-color: var(--accent); }
.vessel-prose strong { font-weight: 600; color: var(--ink); }
.vessel-prose em { font-style: italic; }
.vessel-prose ul, .vessel-prose ol { padding-left: 1.3em; margin: 0 0 1.5em; }
.vessel-prose li { margin: 0 0 0.55em; }
.vessel-prose ul li::marker { color: var(--accent); }
.vessel-prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-size: 21px; line-height: 1.5; font-weight: 400; color: var(--ink);
  letter-spacing: -0.01em;
}
.vessel-prose blockquote p { margin: 0 0 0.5em; }
.vessel-prose blockquote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.vessel-prose code {
  font-family: var(--mono); font-size: 0.86em;
  background: rgba(22,21,18,0.05); border: 1px solid var(--hair);
  padding: 0.12em 0.4em; border-radius: 3px;
}
.vessel-prose pre {
  background: var(--ink); color: #EDEAE0;
  padding: 22px 24px; border-radius: 6px; overflow-x: auto;
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
}
.vessel-prose pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
.vessel-prose img, .vessel-prose figure { border-radius: 6px; }
.vessel-prose figure { margin: 2em 0; }
.vessel-prose figure img { border: 1px solid var(--hair-strong); }
.vessel-prose figcaption { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-align: center; text-transform: uppercase; }
.vessel-prose hr { border: none; border-top: 1px solid var(--hair); margin: 2.6em 0; }
.vessel-prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 2em 0; }
.vessel-prose th, .vessel-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.vessel-prose th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.vessel-prose .wp-caption { max-width: 100%; }
.vessel-prose > *:first-child { margin-top: 0; }

/* tags + share footer of article */
.article-foot {
  max-width: var(--measure); margin: clamp(40px,7vw,72px) auto 0;
  padding: clamp(28px,4vw,40px) clamp(20px,5vw,48px) 0;
  border-top: 1px solid var(--hair);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  padding: 7px 13px; border: 1px solid var(--hair-strong); border-radius: 999px;
  transition: border-color .3s ease, color .3s ease;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* prev / next */
.post-nav {
  max-width: 920px; margin: clamp(40px,6vw,64px) auto 0;
  padding: 0 clamp(20px,5vw,48px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.post-nav a {
  display: block; text-decoration: none; color: inherit;
  padding: 24px; border: 1px solid var(--hair-strong); border-radius: 4px;
  transition: border-color .3s ease, transform .3s ease;
}
.post-nav a:hover { border-color: rgba(22,21,18,0.34); transform: translateY(-4px); }
.post-nav .dir { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post-nav .t { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.post-nav .next { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: clamp(40px,6vw,64px) auto 0;
}
.pagination .page-numbers {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none;
  min-width: 40px; padding: 10px 12px; text-align: center;
  border: 1px solid var(--hair-strong); border-radius: 4px;
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pagination .dots { border: none; }

/* ============================================================
   Search form
   ============================================================ */
.search-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.search-form input[type="search"] {
  flex: 1; font-family: var(--sans); font-size: 15px;
  padding: 13px 16px; color: var(--ink); background: var(--cream-card);
  border: 1px solid var(--hair-strong); border-radius: 999px; outline: none;
  transition: border-color .3s ease;
}
.search-form input[type="search"]:focus { border-color: var(--accent); }
.search-form button {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream); background: var(--ink); border: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; transition: background .3s ease;
}
.search-form button:hover { background: #000; }

/* ============================================================
   404 / empty
   ============================================================ */
.state {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: clamp(80px,14vw,160px) clamp(20px,5vw,48px);
}
.state h1 { font-size: clamp(30px,4vw,52px); font-weight: 600; letter-spacing: -0.03em; margin: 18px 0 0; }
.state p { color: var(--text); font-size: 17px; margin: 18px 0 30px; }
.btn-dark {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream); background: var(--ink); text-decoration: none;
  padding: 14px 26px; border-radius: 999px; transition: transform .3s ease, background .3s ease;
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }

/* ============================================================
   Comments (kept minimal + on-brand)
   ============================================================ */
.comments {
  max-width: var(--measure); margin: clamp(48px,7vw,80px) auto 0;
  padding: clamp(28px,4vw,40px) clamp(20px,5vw,48px) 0;
  border-top: 1px solid var(--hair);
}
.comments h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 24px; }
.comments ol { list-style: none; padding: 0; margin: 0; }
.comments .comment { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.comments .comment .author { font-weight: 600; }
.comments .comment .date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.comments textarea, .comments input[type="text"], .comments input[type="email"], .comments input[type="url"] {
  width: 100%; font-family: var(--sans); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--hair-strong); border-radius: 4px; background: var(--cream-card); margin-bottom: 12px; outline: none;
}
.comments textarea:focus, .comments input:focus { border-color: var(--accent); }
.comments .submit {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream); background: var(--ink); border: none; cursor: pointer;
  padding: 13px 24px; border-radius: 999px;
}

/* ============================================================
   FOOTER — matches main site
   ============================================================ */
.site-footer {
  padding: 60px clamp(20px,5vw,48px) max(46px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
}
.site-footer .inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand .name { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; }
.footer-brand .fmark { position: relative; display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.footer-brand .fmark .drop { position: absolute; top: 2px; left: 50%; width: 3.5px; height: 3.5px; margin-left: -1.75px; background: var(--ink); border-radius: 50%; }
.footer-brand .fmark .cup { width: 12px; height: 12px; margin-bottom: 3px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); border-bottom-right-radius: 2px; transform: rotate(45deg); }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .3s ease, border-color .3s ease; }
.footer-meta a:hover { color: var(--accent); border-color: var(--accent); }
.footer-meta .line { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }

/* ============================================================
   Motion / a11y
   ============================================================ */
@keyframes glowPulse { 0%,100% { opacity: 0.55; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes vesselRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.rise { opacity: 0; transform: translateY(16px); animation: vesselRise .9s cubic-bezier(.2,.7,.2,1) both; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* WordPress core alignment helpers */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.wp-caption-text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-align: center; text-transform: uppercase; margin-top: 8px; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
