/*
 Theme Name: GJS
 Description: Great John Street journal, based on Canvas
 Author: Carnoustie Creative
 Template: canvas
 Version: 1.0.16
 Text Domain: gjs
*/

/* CDE Palette Variables: start */
:root {
  --cde-charcoal: #101211;
  --cde-warm-white: #F3F0EA;
  --cde-brick: #B54432;
}
/* CDE Palette Variables: end */

:root {
    --gjs-header-height: 140px;
    --gjs-charcoal: #101211;
    --gjs-paper: #f3f0ea;
    --gjs-brick: #b54432;
    --canvas-container-max: 1264px;
    --canvas-color-body-back: var(--gjs-charcoal);
    --canvas-color-body-fore: var(--gjs-paper);
    --canvas-color-heading-fore: currentColor;
    --canvas-color-link-fore: currentColor;
    --canvas-color-link-hover: currentColor;
    --canvas-color-button-back: transparent;
    --canvas-color-button-fore: var(--gjs-paper);
    --canvas-color-button-hover: var(--gjs-brick);
    --gjs-gutter: max(6.1vw, calc((100vw - 1264px) / 2));
}
body.canvas { background: var(--gjs-charcoal); color: var(--gjs-paper); font: 400 20px/1.6 'Lato', sans-serif; -webkit-font-smoothing: antialiased; }
.canvas .container { width: calc(100% - 12.2vw); max-width: 1264px; margin-inline: auto; }
.canvas h1, .canvas h2 { color: inherit; font-family: 'Playfair Display', Georgia, serif; letter-spacing: -.025em; }
.canvas h1 { font-size: clamp(46px, 4.7vw, 68px); font-weight: 700; line-height: 1.14; margin: 0 0 25px; }
.canvas h2 { font-size: clamp(36px, 3.8vw, 54px); line-height: 1.24; font-weight: 600; margin: 0 0 32px; }
.canvas p { margin: 0 0 1em; }
.canvas p:last-child { margin-bottom: 0; }
.canvas a { color: inherit; }
.canvas a:hover { color: inherit; }
.canvas :focus-visible { outline: 3px solid #cf6c58; outline-offset: 5px; }
.canvas .main { padding: 0; margin: 0; }
.canvas .main > .content:has(> .content-link:only-child) { display: none; }
.canvas .content-link { height: 0; }
.canvas .after-content-full, .canvas .cde-flex-content { margin: 0; padding: 0; }
.canvas .flex-elm { margin-block: 0; }
.canvas .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 58px; padding: 16px 22px; border: 1px solid var(--gjs-brick); border-radius: 0; box-shadow: none; color: var(--gjs-paper); background: transparent; font: 400 14px/1.4 'Lato', sans-serif; text-decoration: none; text-transform: uppercase; letter-spacing: 0; cursor: pointer; transition: background .2s ease; }
.canvas .button:hover, .canvas .button:focus-visible { background: var(--gjs-brick); color: white; }
.canvas .button i { font-size: 18px; }
.canvas .button .fa-arrow-right { transition: transform .18s cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: no-preference) {
    /* Establish the opening crop before JavaScript or the image finishes loading. */
    .hero-image img:not(.is-visible) { transform: scale(1.035); }
    .canvas .button:focus-visible .fa-arrow-right { transform: translateX(4px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .canvas .button:hover .fa-arrow-right { transform: translateX(4px); }
}
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10000; padding: 12px 20px; background: var(--gjs-paper); color: var(--gjs-charcoal); }
.skip-link:focus { top: 10px; }
/* Keep the header resize out of document flow to prevent scroll-anchor feedback. */
.canvas .site-canvas { padding-top: var(--gjs-header-height); }
.gjs-header { position: fixed; left: 0; right: 0; top: 0; z-index: 100; background: var(--gjs-charcoal); }
.admin-bar .gjs-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; min-height: var(--gjs-header-height); border-bottom: 1px solid #8b8b84; transition: min-height .22s ease; }
.header-not-at-top .header-inner { min-height: 88px; }
.brand { display: inline-flex; gap: 40px; align-items: center; flex-shrink: 0; text-decoration: none; }
.wordmark { font: 700 56px/1 'Lato', sans-serif; letter-spacing: -.055em; }
.wordmark > span { color: var(--gjs-brick); }
.brand-description { border-left: 1px solid #8b8b84; padding-left: 32px; text-transform: uppercase; font-size: 16px; line-height: 1.4; }
#gjs-navigation ul, #gjs-navigation ol { display: flex; list-style: none; padding: 0; margin: 0; gap: clamp(24px, 4.5vw, 64px); }
#gjs-navigation a { position: relative; display: block; padding: 16px 0; font-size: 14px; line-height: 1.4; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
#gjs-navigation a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; background: var(--gjs-brick); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
#gjs-navigation a:hover::after, #gjs-navigation [data-sn-active] a::after { transform: scaleX(1); }
#gjs-navigation [hidden] { display: none; }
.canvas .menu-toggle { display: none; }
.canvas .gjs-hero { position: relative; isolation: isolate; padding: 88px 0 42px; min-height: 700px; background: var(--gjs-charcoal); color: var(--gjs-paper); }
.hero-copy { position: relative; z-index: 1; width: 525px; max-width: 43%; }
.hero-image { overflow: hidden; position: absolute; inset: 0 0 0 43%; z-index: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: brightness(1.08); }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gjs-charcoal), transparent 34%); pointer-events: none; }
.introduction { max-width: 520px; font-size: 24px; line-height: 1.55; font-style: italic; }
.hero-actions { display: flex; align-items: stretch; gap: 12px; margin: 36px 0 26px; }
.hero-actions .button:first-child { min-width: 285px; }
.canvas .hero-actions .social-link { min-width: 48px; width: 48px; padding-inline: 12px; justify-content: center; }
.canvas .social-link i { font-size: 25px; }
.canvas .social-placeholder { cursor: default; }
.canvas .social-placeholder:hover { background: transparent; }
.contact-email { display: inline-block; font-size: 23px; font-style: italic; text-decoration: none; }
.canvas #people.gjs-project { background: var(--gjs-paper); color: var(--gjs-charcoal); padding: 68px 0 72px; }
.canvas #people.gjs-project .inner { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px 0; text-align: center; }
.canvas #people.gjs-project .before { grid-column: 1/-1; }
.canvas #people.gjs-project .before h2 { font-size: clamp(34px, 3.5vw, 50px); font-weight: 700; line-height: 1.3; max-width: 900px; margin: 0 auto 18px; }
.canvas #people.gjs-project .left-col, .canvas #people.gjs-project .middle-col, .canvas #people.gjs-project .right-col { padding: 0 48px; background: transparent; }
.canvas #people.gjs-project .middle-col, .canvas #people.gjs-project .right-col { border-left: 1px solid #a7a7a0; }
.gjs-project .fa-solid { display: inline-block; font-size: 55px; line-height: 1; }
.gjs-project .is-visible .fa-solid { color: var(--gjs-brick); }
.gjs-project h3 { margin: 20px 0 16px; color: inherit; font: 700 18px/1.4 'Lato', sans-serif; text-transform: uppercase; }
.gjs-project p { font-size: 21px; line-height: 1.5; }
.canvas .gjs-film { padding: 80px 0; background: var(--gjs-charcoal); color: var(--gjs-paper); }
.film-layout { display: grid; grid-template-columns: minmax(0, 2.75fr) minmax(300px, 1fr); align-items: center; gap: 80px; }
.film-player video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: #080a09; object-fit: contain; }
.film-copy h2::before, .gjs-manchester h2::before { content: ''; display: block; width: 60px; height: 5px; margin-bottom: 28px; background: var(--gjs-brick); }
.canvas .film-copy h2 { font-weight: 400; margin-bottom: 38px; }
.film-copy { font-size: 20px; line-height: 1.65; }
.film-copy .button { min-width: 300px; margin-top: 36px; border-color: #8b8b84; }
.canvas #explore.gjs-panels { padding: 80px 0 60px; background: var(--gjs-paper); color: var(--gjs-charcoal); }
.canvas #explore.gjs-panels .grid-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 47px; margin: 0; }
.canvas #explore.gjs-panels .cde-grid-item { padding: 0; background: transparent; color: var(--gjs-charcoal); border: 0; box-shadow: none; border-radius: 0; }
.canvas #explore.gjs-panels .cde-grid-item-inner { position: relative; display: block; padding: 0; border: 0; background: transparent; }
.canvas #explore.gjs-panels .item-image { overflow: hidden; border-radius: 0; margin: 0 0 32px; aspect-ratio: 1.61; }
.canvas #explore.gjs-panels .item-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.canvas #explore.gjs-panels .cde-grid-item:hover .item-image img, .canvas #explore.gjs-panels .cde-grid-item:focus-within .item-image img { transform: scale(1.035); }
.canvas #explore.gjs-panels .item-label { padding: 0; margin: 0 0 18px; font: 700 26px/1.3 'Lato', sans-serif; text-transform: uppercase; }
.canvas #explore.gjs-panels .item-label::after { content: ''; display: block; width: 60px; height: 5px; background: var(--gjs-brick); margin-top: 15px; }
.canvas #explore.gjs-panels .item-subtitle { position: absolute; top: 0; left: 0; margin: 0; padding: 7px 10px; color: white; background: #101211d9; font: 400 12px/1.3 'Lato', sans-serif; }
.canvas #explore.gjs-panels .item-content { padding: 0; font-style: italic; font-size: 20px; line-height: 1.65; }
.canvas #explore.gjs-panels .will-reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease var(--reveal-delay), transform .9s ease var(--reveal-delay); }
.canvas #explore.gjs-panels .is-visible { opacity: 1; transform: none; }
.canvas .gjs-manchester.cde-text-left-image-right.is-fullwidth.is-fullbleed { display: grid; grid-template-columns: 36% 64%; gap: 0; padding: 0; min-height: 560px; background: var(--gjs-charcoal); color: var(--gjs-paper); }
.canvas .gjs-manchester .left { padding: 80px 36px 80px var(--gjs-gutter); }
.canvas .gjs-manchester .left .inner { padding: 0; }
.canvas .gjs-manchester .left p { font-style: italic; font-size: 21px; line-height: 1.6; }
.canvas .gjs-manchester .right.img { position: relative; min-height: 100%; background-size: cover; background-position: center; }
.gjs-manchester .right.img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,var(--gjs-charcoal),transparent 30%); }
.canvas .gjs-manchester figcaption { display: none; }
.gjs-footer { border-top: 1px solid #8b8b84; padding: 60px 0 22px; }
.footer-main { display: flex; align-items: center; gap: 40px; }
.footer-main > p { border-left: 1px solid #8b8b84; padding-left: 32px; margin: 0; font-style: italic; font-size: 18px; line-height: 1.45; }
.footer-contact { display: flex; gap: 40px; align-items: center; border-left: 1px solid #8b8b84; padding-left: 65px; margin-left: auto; }
.footer-contact a { text-decoration: none; font-size: 20px; font-style: italic; }
.canvas .journal-notice { margin: 34px 0 0; text-align: center; font-size: 12px; }
@media(min-width:1600px) { .hero-image { left: calc(50% - 100px); } }
@media(max-width:1100px) {
    :root { --gjs-header-height: 112px; }
    .header-inner { gap: 25px; }
    .brand { gap: 25px; }
    .brand-description { font-size: 12px; padding-left: 20px; }
    .wordmark { font-size: 48px; }
    #gjs-navigation ul, #gjs-navigation ol { gap: 26px; }
    #gjs-navigation a { font-size: 12px; }
    .hero-copy { max-width: 49%; }
    .hero-image { left: 45%; }
    .canvas .gjs-hero { padding-top: 65px; min-height: 650px; }
    .introduction { font-size: 21px; }
    .hero-actions .button:first-child { min-width: 235px; }
    .canvas .button { font-size: 12px; gap: 22px; }
    .canvas #people.gjs-project .left-col, .canvas #people.gjs-project .middle-col, .canvas #people.gjs-project .right-col { padding: 0 28px; }
    .film-layout { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 40px; }
    .canvas #explore.gjs-panels .grid-list { gap: 30px; }
    .canvas #explore.gjs-panels .item-label { font-size: 21px; }
    .canvas .gjs-manchester.cde-text-left-image-right.is-fullwidth.is-fullbleed { grid-template-columns: 42% 58%; }
    .footer-main { gap: 25px; }
    .footer-main > p { font-size: 15px; padding-left: 24px; }
    .footer-contact { gap: 22px; padding-left: 25px; }
    .footer-contact a { font-size: 17px; }
}
@media(max-width:760px) {
    :root { --gjs-header-height: 0px; }
    .canvas .container { width: calc(100% - 48px); }
    .gjs-header, .admin-bar .gjs-header { position: relative; top: 0; }
    .header-inner, .header-not-at-top .header-inner { min-height: 104px; flex-wrap: wrap; gap: 0; }
    .wordmark { font-size: 43px; }
    .brand { gap: 18px; }
    .brand-description { padding-left: 18px; font-size: 10px; }
    .canvas .menu-toggle { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 0 10px 10px; border: 0; background: transparent; color: inherit; font: 400 12px/1 'Lato',sans-serif; }
    .menu-toggle i { font-size: 21px; }
    #gjs-navigation { display: none; width: 100%; padding: 10px 0 24px; }
    .menu-open #gjs-navigation { display: block; }
    #gjs-navigation ol, #gjs-navigation ul { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px 28px; }
    #gjs-navigation a { padding: 14px 0; font-size: 13px; }
    .canvas .gjs-hero { min-height: 0; padding: 0 0 48px; display: flex; flex-direction: column; }
    .hero-image { position: relative; inset: auto; height: 320px; width: 100%; }
    .hero-image img { object-position: 60% 44%; }
    .hero-image::after { background: linear-gradient(0deg,var(--gjs-charcoal),transparent 65%); }
    .gjs-hero > .container { margin-top: -42px; }
    .hero-copy { width: auto; max-width: none; }
    .canvas h1 { font-size: clamp(39px,8.7vw,60px); line-height: 1.14; margin-bottom: 26px; }
    .canvas h2 { font-size: 37px; }
    .introduction { max-width: 560px; font-size: 20px; }
    .hero-actions { margin: 28px 0 22px; }
    .hero-actions .button:first-child { min-width: 0; }
    .contact-email { font-size: 20px; }
    .canvas #people.gjs-project { padding: 48px 0; }
    .canvas #people.gjs-project .inner { grid-template-columns: 1fr; gap: 30px; }
    .canvas #people.gjs-project .before h2 { font-size: 31px; margin-bottom: 4px; }
    .canvas #people.gjs-project .left-col, .canvas #people.gjs-project .middle-col, .canvas #people.gjs-project .right-col { border: 0; padding: 0 16px; }
    .gjs-project .fa-solid { font-size: 43px; }
    .gjs-project h3 { margin: 15px 0 10px; font-size: 17px; }
    .gjs-project p { font-size: 19px; }
    .canvas .gjs-film { padding: 48px 0; }
    .film-layout { grid-template-columns: 1fr; gap: 32px; }
    .film-copy { order: -1; font-size: 18px; }
    .canvas .film-copy h2 { margin-bottom: 25px; }
    .film-copy h2::before, .gjs-manchester h2::before { margin-bottom: 20px; }
    .film-copy .button { min-width: 260px; margin-top: 26px; }
    .canvas #explore.gjs-panels { padding: 48px 0; }
    .canvas #explore.gjs-panels .grid-list { grid-template-columns: 1fr; gap: 40px; }
    .canvas #explore.gjs-panels .item-image { margin-bottom: 23px; aspect-ratio: 1.6; }
    .canvas #explore.gjs-panels .item-label { font-size: 24px; }
    .canvas #explore.gjs-panels .item-content { font-size: 19px; }
    .canvas .gjs-manchester.cde-text-left-image-right.is-fullwidth.is-fullbleed { display: flex; flex-direction: column; min-height: 0; }
    .canvas .gjs-manchester .left { padding: 48px 24px 25px; order: -1; }
    .canvas .gjs-manchester .left p { font-size: 20px; max-width: 550px; }
    .canvas .gjs-manchester .right.img.hide-desktop { display: none; }
    .canvas .gjs-manchester .right.img.hide-mobile { display: block; min-height: 320px; width: 100%; }
    .gjs-manchester .right.img::after { background: linear-gradient(180deg,var(--gjs-charcoal),transparent 45%); }
    .gjs-footer { padding-top: 35px; }
    .footer-main { flex-wrap: wrap; gap: 25px; }
    .footer-main > p { border: 0; padding: 0; flex: 1 1 220px; }
    .footer-contact { border: 0; padding: 0; margin: 0; width: 100%; gap: 22px; }
    .canvas .journal-notice { text-align: left; line-height: 1.6; margin-top: 26px; }
}
@media(prefers-reduced-motion:reduce) {
    .canvas *, .canvas *::before, .canvas *::after { scroll-behavior: auto; transition-duration: 0s; animation-duration: 0s; }
    .canvas #explore.gjs-panels .will-reveal { opacity: 1; transform: none; }
}

@media(max-width:760px) {
 .canvas .gjs-hero { padding: 38px 0 0; }
 .gjs-hero > .container { margin-top: 0; }
 .hero-image { order: 2; margin-top: 32px; }
 .hero-image::after { background: none; }
}
.canvas #manchester .left .inner { width: 100%; max-width: none; margin: 0; padding: 0; }

@media (min-width: 761px) and (max-width: 1000px) {
    .gjs-header .brand-description { display: none; }
}

/* Preserve editable heading line breaks and expose the poster only in edit mode. */
.gjs-hero h1, .film-copy h2 { white-space: pre-line; }
.film-player { position: relative; }
.film-poster-editor { display: none; }
.cde-front-edit-active .film-poster-editor { display: block; position: absolute; inset: 0; z-index: 2; background: var(--gjs-charcoal); }
.film-poster-editor img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 761px) {
    .canvas .gjs-hero { display: flex; align-items: center; padding-block: 42px; }
}
