
/* =========================================================
   Jigisha Psych — main stylesheet
   Editorial, typography-led, calm palette.
   ========================================================= */

:root {
  --bg:        #FBF9F6;
  --surface:   #FFFFFF;
  --ink:       #1E2522;
  --ink-soft:  #4A524E;
  --muted:     #7A817D;
  --accent:    #3E5C52;
  --accent-dk: #2C443C;
  --accent-sf: #EAF1EC;
  --warm:      #C08457;
  --line:      #E6E1D9;
  --shadow:    0 1px 2px rgba(30,37,34,.04), 0 8px 28px rgba(30,37,34,.06);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --read: 720px;
  --radius: 4px;
  --gap: 2rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; }
figure { margin: 0; }
button { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1.4em; }

blockquote {
  margin: 2.2rem 0;
  padding: .2rem 0 .2rem 1.6rem;
  border-left: 3px solid var(--warm);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
}
blockquote p:last-child { margin-bottom: 0; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
pre { background: #F3F1EC; padding: 1rem 1.2rem; border-radius: var(--radius); overflow: auto; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; }
th, td { border-bottom: 1px solid var(--line); padding: .6rem .5rem; text-align: left; }
th { font-family: var(--sans); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ---------- Utilities ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.read { width: min(100%, var(--read)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999; width: auto; height: auto;
  clip: auto; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--warm);
  margin: 0 0 .9rem;
}

.btn {
  display: inline-block; padding: .8rem 1.7rem;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: 999px; font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  cursor: pointer; transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-sf); color: var(--accent-dk); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,246,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand__mark {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--accent-sf); border: 1px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; color: var(--accent-dk); font-size: 1rem;
}
.brand__name {
  font-family: var(--serif); font-size: 1.22rem; font-weight: 600;
  color: var(--ink); line-height: 1.1;
}
.brand__name:hover { text-decoration: none; color: var(--accent); }
.brand__tag { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }

.nav ul { list-style: none; display: flex; gap: 1.9rem; margin: 0; padding: 0; }
.nav a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  padding: .3rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--warm); transition: right .22s ease;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a:hover::after, .nav .current-menu-item > a::after { right: 0; }
.nav .current-menu-item > a { color: var(--ink); }
.nav li.menu-item-has-children { position: relative; }
.nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .5rem 0; flex-direction: column; gap: 0;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav .sub-menu a { display: block; padding: .5rem 1.1rem; }
.nav .sub-menu a::after { display: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .5rem .7rem; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 20px; height: 1.6px; background: currentColor; margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .6rem 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li:last-child { border-bottom: 0; }
  .nav a { display: block; padding: .85rem 1.4rem; }
  .nav a::after { display: none; }
  .nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 .4rem 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 4.5rem); align-items: center;
}
.hero__title { font-size: clamp(2.3rem, 5.2vw, 3.6rem); margin-bottom: .5em; }
.hero__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__portrait {
  position: relative; border-radius: 300px 300px 8px 8px; overflow: hidden;
  background: var(--accent-sf); aspect-ratio: 4/5; box-shadow: var(--shadow);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__portrait-fallback {
  display: grid; place-items: center; height: 100%;
  font-family: var(--serif); font-size: 4rem; color: var(--accent);
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { width: min(100%, 300px); height: auto; aspect-ratio: 4/5; order: -1; margin-inline: auto; align-self: center; }
}

/* ---------- Section frame ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--tint { background: var(--accent-sf); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: 2.6rem; }
.section__head p { color: var(--ink-soft); margin: 0; }
.section__more { margin-top: 2.6rem; }

/* ---------- Post cards ---------- */
.post-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--accent-sf); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--blank { display: grid; place-items: center; color: var(--accent); font-family: var(--serif); font-size: 2rem; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.card__meta a { color: var(--warm); }
.card__title { font-size: 1.22rem; margin-bottom: .55rem; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--accent); text-decoration: none; }
.card__excerpt { font-size: .95rem; color: var(--ink-soft); margin: 0 0 1.1rem; }
.card__link { margin-top: auto; font-size: .85rem; font-weight: 600; letter-spacing: .03em; }
.card__link::after { content: " →"; }

/* Featured (first) card on the blog index */
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.card--wide .card__media { aspect-ratio: auto; height: 100%; min-height: 280px; }
.card--wide .card__body { padding: 2.2rem 2.4rem; justify-content: center; }
.card--wide .card__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (max-width: 760px) { .card--wide { grid-template-columns: 1fr; } .card--wide .card__media { min-height: 200px; } }

/* ---------- Content layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(2rem, 5vw, 3.5rem); padding: 3.5rem 0 4.5rem; }
.layout--full { grid-template-columns: minmax(0,1fr); }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

/* ---------- Single post ---------- */
.entry-header { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; text-align: center; }
.entry-header .entry-title { max-width: 20ch; margin-inline: auto; }
.entry-meta { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.entry-meta a { color: var(--warm); }
.entry-meta span + span::before { content: "·"; margin: 0 .55rem; color: var(--line); }
.entry-hero { margin: 0 0 2.8rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.entry-content { font-size: 1.06rem; }
.entry-content > * { max-width: var(--read); margin-inline: auto; }
.entry-content h2 { margin-top: 2.4em; }
.entry-content h3 { margin-top: 2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 auto 1.5em; }
.entry-content li { margin-bottom: .5em; }
.entry-content img, .entry-content figure { border-radius: var(--radius); }
.entry-content .alignwide { max-width: 980px; }
.entry-content .alignfull { max-width: none; width: 100%; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.entry-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 2rem; }
.tag-list a {
  display: inline-block; font-size: .78rem; letter-spacing: .06em;
  padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); background: var(--surface);
}
.tag-list a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.author-box {
  display: flex; gap: 1.4rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; margin: 0 0 2.5rem;
}
.author-box img { border-radius: 50%; flex: none; }
.author-box h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.author-box p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.post-nav a {
  display: block; padding: 1.2rem 1.4rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.post-nav a:hover { border-color: var(--accent); text-decoration: none; }
.post-nav small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.post-nav .next { text-align: right; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ---------- Sidebar ---------- */
.sidebar .widget {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; margin-bottom: 1.6rem;
}
.sidebar .widget-title {
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink-soft); }
.sidebar a:hover { color: var(--accent); }
.about-widget { text-align: center; }
.about-widget img { border-radius: 50%; margin: 0 auto 1rem; }
.about-widget p { font-size: .93rem; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.subscribe { text-align: center; }
.subscribe h2 { max-width: 20ch; margin-inline: auto; }
.subscribe p { max-width: 52ch; margin-inline: auto; color: var(--ink-soft); }
.subscribe form { display: flex; gap: .6rem; max-width: 460px; margin: 1.8rem auto 0; }
.subscribe input[type="email"] {
  flex: 1; padding: .8rem 1.1rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); font: inherit; font-size: .95rem; color: var(--ink);
}
.subscribe input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 520px) { .subscribe form { flex-direction: column; border-radius: var(--radius); } .subscribe .btn { width: 100%; } }

/* ---------- Topic chips (homepage) ---------- */
.topics { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.topic {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; display: block; color: var(--ink);
}
.topic:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.topic h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.topic p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.pagination .page-numbers {
  display: inline-block; min-width: 40px; text-align: center;
  padding: .5rem .75rem; margin: 0 .25rem; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink-soft); background: var(--surface);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover {
  background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none;
}

/* ---------- Comments ---------- */
.comments-area { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.comment-list li { margin-bottom: 1.6rem; }
.comment-list .children { list-style: none; padding-left: 1.8rem; margin-top: 1.6rem; }
.comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.comment-meta { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); font: inherit; font-size: .95rem;
}
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: .3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CFCB; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer a { color: #E6EBE8; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__grid h4 { color: #fff; font-size: .78rem; font-family: var(--sans); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__grid p { font-size: .93rem; }
.footer__brand .brand__name { color: #fff; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: .55rem; font-size: .93rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: #9AA29E;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Page header / archive header ---------- */
.page-head { padding: clamp(2.8rem, 6vw, 4.5rem) 0 2.2rem; text-align: center; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--ink-soft); max-width: 58ch; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .sidebar, .comments-area, .post-nav { display: none; }
  body { background: #fff; font-size: 12pt; }
}




/* WordPress integration, does not alter preview design */
.admin-bar .site-header{top:32px}@media(max-width:782px){.admin-bar .site-header{top:46px}}
.nav .menu{list-style:none;display:flex;gap:1.9rem;margin:0;padding:0}
@media(max-width:880px){.nav .menu{flex-direction:column;gap:0;padding:.6rem 0}}
.custom-logo{max-height:48px;width:auto}.newsletter-shortcode form{margin-inline:auto}.entry-content .wp-block-image{max-width:var(--read)}
.entry-content .wp-block-image.alignwide{max-width:980px}.entry-content .wp-block-image.alignfull{max-width:none}
.screen-reader-text:focus{clip:auto;width:auto;height:auto;top:10px;left:10px;background:white;padding:8px;z-index:9999}
