/* Across Minds. Layout follows the original Wix Studio blog template ("Out & About"). */
:root {
  --bg: #fffefc;
  --ink: #1c1c1b;
  --muted: #5d5d5a;
  --line: #e2e0dc;
  --footer: #eae8e4;
  --psy: #f2f4ad;      /* Psycholinguistics */
  --neuro: #e1937f;    /* Neuropsychology & Expression */
  --anthro: #dceefd;   /* Anthropological Insights */
  --link: #1155cc;
  --accent: #913f2a;   /* Wix theme colour 18: hover and active links */
  --chip: #ebeae6;     /* Wix theme colour 12: label hover, outlines */
  --heart: #e84a43;
  --feat: #dceefd;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 58px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1800px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: var(--bg); padding: 6px 10px; z-index: 10; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.01em; white-space: nowrap; }
.site-nav { display: flex; gap: clamp(18px, 6vw, 110px); margin: 0 auto; font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.is-post .site-head { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.head-icons { display: flex; gap: 10px; }
.head-icons a { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.head-icons svg { width: 12px; height: 12px; fill: currentColor; }

/* Home: masthead line */
.masthead { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 60px) 0 clamp(28px, 3.5vw, 56px); border-bottom: 1px solid var(--line); }
.masthead h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 5.8vw, 112px); line-height: 1.04; letter-spacing: -.02em; max-width: 15em; }
.masthead h1 em { font-weight: 300; }
.read-all { display: inline-flex; align-items: center; gap: 4px; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); white-space: nowrap; }
.read-all .arrow { display: inline-block; width: 22px; height: 22px; transition: transform .2s; }
.read-all .arrow svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.read-all:hover .label { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.read-all:hover .arrow { transform: rotate(-53deg); }

/* Wix "Reveal" entrance: a left-to-right wipe on desktop, top-to-bottom on tablets, none on phones. */
@keyframes am-reveal {
  0% { opacity: 0; animation-timing-function: step-end; }
  0.0001% { opacity: 1; clip-path: var(--clip-start); }
  100% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not([data-reveal="done"]) {
    --clip-start: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
    animation: am-reveal 800ms 1ms cubic-bezier(0.645, 0.045, 0.355, 1) backwards 1 paused;
  }
  .js [data-reveal="play"] { animation-play-state: running !important; }
  .reveal-off [data-reveal] { animation: none !important; }
  @media (max-width: 1000px) {
    .js [data-reveal]:not([data-reveal="done"]) {
      --clip-start: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
      animation-duration: 1000ms;
    }
  }
  @media (max-width: 750px) {
    .js [data-reveal]:not([data-reveal="done"]) { animation: none; }
  }
}

/* Home: featured + about */
.feature { display: grid; grid-template-columns: 2.1fr 1fr; gap: clamp(20px, 3vw, 56px); padding: 30px 0 60px; }
.feature-main { position: relative; display: block; overflow: hidden; background: #222; aspect-ratio: 4 / 3; }
.feature-main img { width: 100%; height: 100%; object-fit: cover; }
.feature-main::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.feature-main .meta { position: absolute; top: 22px; left: 24px; color: #fff; z-index: 1; }
.feature-main .bottom { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; }
.feature-main h2 { margin: 10px 0 0; color: #fff; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 50px); line-height: 1.1; }
.about-card img { width: 100%; aspect-ratio: 1.47; object-fit: cover; }
.about-card p { font-size: 14px; line-height: 1.55; margin: 18px 0 22px; }
.about-card .more { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.topics { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; }
.topics h3 { font-size: 14px; font-weight: 400; margin: 0 0 12px; }
.topics ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* Pills and meta */
.meta { font-size: 12px; }
.meta span + span::before { content: "\00b7"; margin: 0 7px; }
/* Category labels: outlined on lists and posts; filled with the band colour on the home page. */
.pill { display: inline-block; font-size: 12px; line-height: 1.2; padding: 6px 10px; border-radius: 4px; background: transparent; border: 1px solid var(--chip); color: var(--ink); }
.pill.c-psy { background: var(--psy); border-color: transparent; }
.pill.c-neuro { background: var(--neuro); border-color: transparent; }
.pill.c-anthro { background: var(--anthro); border-color: transparent; }
.pill.feat { background: var(--feat); border-color: transparent; }
a.pill:hover { border-color: var(--ink); }
a.pill.c-psy:hover, a.pill.c-neuro:hover, a.pill.c-anthro:hover { background: var(--chip); border-color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }

/* Home: category bands */
.band { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(16px, 2vw, 38px); padding-bottom: 60px; }
.band-panel { display: block; padding: clamp(22px, 2.4vw, 46px) clamp(18px, 1.6vw, 30px); min-height: 280px; }
/* On Wix the label and title stay pinned 6% down the screen while the band scrolls past. */
.band-sticky { position: sticky; top: 6vh; }
.band-panel .kick { font-size: 13px; margin: 0 0 14px; }
.band-panel h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.4vw, 64px); line-height: 1.1; letter-spacing: -.01em; }
.band-panel p { font-size: 14px; max-width: 26em; margin: 18px 0 0; }
.band-psy .band-panel { background: var(--psy); }
.band-neuro .band-panel { background: var(--neuro); }
.band-anthro .band-panel { background: var(--anthro); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px clamp(16px, 2vw, 38px); }

/* Post card */
.card { display: block; }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #ebe9e5; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { margin-top: 22px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; margin: 12px 0 0; }
.card h3:hover { color: var(--accent); }
.card-stats { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--chip); margin-top: 22px; padding-top: 12px; font-size: 12px; }
.card-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.card-stats svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.1; }
.card-stats .hearts { margin-left: auto; }
.card-stats .hearts svg { stroke: var(--heart); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-3 .card { border: 1px solid var(--chip); background: var(--bg); }
.grid-3 .card .body { padding: 0 20px 34px; }
.grid-3 .card .meta { margin-top: 20px; }
.grid-3 .card .excerpt { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* Archive strip */
.strip { padding: 40px 0 80px; overflow: hidden; }
.strip h2 { text-align: center; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 44px); margin: 0 0 30px; }
/* Wix gallery: square tiles, continuous linear drift at 50 px/s (site.js sets the duration from the width). */
.strip-track { display: flex; gap: clamp(12px, 2vw, 30px); width: max-content; animation: drift 120s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip a { position: relative; width: clamp(160px, 19.13vw, 364px); aspect-ratio: 1; overflow: hidden; flex: none; }
.strip a img { width: 100%; height: 100%; object-fit: cover; }
.strip a span { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; color: #fff; font-family: var(--serif); font-size: 17px; line-height: 1.25; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; }
.strip a:hover span, .strip a:focus span { opacity: 1; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } .strip { overflow-x: auto; } }

/* Blog index */
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.4vw, 44px); margin: 50px 0 10px; }
.page-lede { max-width: 46em; color: var(--muted); margin: 0 0 6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px 38px; font-size: 14px; padding: 26px 0 26px; }
.tabs a[aria-current] { color: var(--accent); }
.tabs a:hover { color: var(--accent); }
.tabs .all { text-transform: uppercase; }
.count { color: var(--muted); font-size: 14px; margin: -10px 0 26px; }

/* Post */
.post-tabs { padding-top: 24px; }
.article { max-width: 740px; margin: 0 auto; padding: 40px 0 30px; }
.article .date { font-size: 13px; }
.article h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 3.6vw, 66px); line-height: 1.12; letter-spacing: -.015em; margin: 16px 0 22px; }
.byline { font-size: 19px; margin: 0 0 6px; }
.article .pills { margin: 0 0 24px; }
.prose { font-size: 17px; line-height: 1.68; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 1.4em 0 .5em; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin: 0 0 .5em; }
.prose blockquote { margin: 0 0 1.15em; padding: 2px 0 2px 20px; border-left: 3px solid var(--neuro); font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.prose figure { margin: 6px 0 26px; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: 13px; text-align: center; margin-top: 12px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 6px 0 26px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sources { border-top: 1px solid var(--ink); margin-top: 34px; padding-top: 22px; font-size: 14px; line-height: 1.65; }
.sources h2 { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; color: var(--muted); }
.sources p { margin: 0 0 1em; padding-left: 1.6em; text-indent: -1.6em; }
.post-stats { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--chip); margin-top: 34px; padding-top: 16px; font-size: 14px; }
.like { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.like svg { width: 19px; height: 19px; fill: none; stroke: var(--heart); stroke-width: 1.2; transition: transform .15s; }
.like[aria-pressed="true"] svg { fill: var(--heart); }
.like:active svg { transform: scale(1.25); }
.post-foot { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: 14px; }
.post-foot a:hover { text-decoration: underline; }
.related { max-width: 1000px; margin: 30px auto 70px; }
.related-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.related-head h2 { font-size: 17px; font-weight: 400; margin: 0; }
.related-head a { font-size: 13px; }
.related .grid-3 .card .body { padding: 0 16px 24px; }
.related .card h3 { font-size: 17px; }

/* Plain pages */
.plain { max-width: 740px; margin: 0 auto; padding: 50px 0 80px; }
.plain h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 3.6vw, 60px); line-height: 1.1; margin: 0 0 26px; }
.plain h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 42px 0 12px; }
.plain p, .plain li { font-size: 17px; line-height: 1.65; }
.plain a { text-decoration: underline; text-underline-offset: 3px; }
.plain .lead-img { margin: 0 0 30px; }
.people { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.people li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people li strong { white-space: nowrap; }
.people li span { color: var(--muted); font-size: 15px; text-align: right; }
.sections-list { padding: 0; list-style: none; }
.sections-list li { margin: 0 0 14px; }
.sections-list a { font-family: var(--serif); font-size: 22px; text-decoration: none; }
.sections-list a:hover { text-decoration: underline; }

/* Search */
.search-box { display: flex; gap: 10px; margin: 10px 0 30px; max-width: 740px; }
.search-box input { flex: 1; font: inherit; font-size: 18px; padding: 12px 14px; border: 1px solid #9a9893; border-radius: 4px; background: #fff; color: var(--ink); }
.search-box button { font: inherit; padding: 0 22px; background: var(--ink); color: var(--bg); border: 0; border-radius: 0; cursor: pointer; }
.results { list-style: none; padding: 0; margin: 0; max-width: 740px; }
.results li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.results a { font-family: var(--serif); font-size: 23px; }
.results a:hover { text-decoration: underline; }
.results p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.results .meta { margin-top: 6px; color: var(--muted); }

/* Footer */
.site-foot { background: var(--footer); padding: 56px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1.6fr; gap: 30px; }
.subscribe h2 { margin-top: 6px; }
.subscribe label { display: block; font-size: 13px; margin: 0 0 6px; }
.subscribe input[type=email] { display: block; width: 100%; font: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid #93928f; border-radius: 4px; background: transparent; color: var(--ink); margin-bottom: 12px; }
.subscribe .check { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.subscribe .check input { width: 14px; height: 14px; margin: 0; accent-color: var(--ink); }
.subscribe button { font-family: var(--serif); font-size: 15px; padding: 10px 44px; background: var(--ink); color: var(--bg); border: 0; border-radius: 0; cursor: pointer; }
.subscribe button:hover { background: var(--accent); }
.form-msg { font-size: 13px; margin: 10px 0 0; min-height: 1.2em; }
.foot-grid .name { font-family: var(--serif); font-size: clamp(28px, 2.3vw, 40px); font-weight: 400; margin: 0 0 12px; }
.foot-grid .blurb { font-size: 13px; max-width: 26em; margin: 0; color: #3e3e3b; }
.foot-grid h2 { font-family: var(--serif); font-weight: 400; font-size: 15px; margin: 6px 0 14px; color: #4a4a47; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.foot-grid li { margin: 0 0 8px; }
.foot-base { border-top: 1px solid #cfccc6; margin-top: 44px; padding-top: 18px; font-size: 13px; }

/* Responsive */
@media (max-width: 1000px) {
  .feature { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* Phones: the band panel sits above its posts and nothing is pinned (as on Wix). */
@media (max-width: 750px) {
  .band { grid-template-columns: 1fr; }
  .band-panel { min-height: 0; }
  .band-sticky { position: static; }
}
@media (max-width: 640px) {
  .site-head .wrap { flex-wrap: wrap; gap: 6px 20px; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { margin: 0; order: 3; width: 100%; gap: 22px; }
  .head-icons { margin-left: auto; }
  .masthead { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feature-main { aspect-ratio: 4 / 5; }
  .tabs { gap: 10px 22px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: auto; }
  .people li { flex-direction: column; gap: 2px; }
  .people li span { text-align: left; }
  .foot-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16.5px; }
}
