/*
Theme Name: Side Quests
Theme URI: https://samuelraynor.com/
Author: Samuel Raynor and contributors
Author URI: https://samuelraynor.com/
Description: An illustrated expedition journal for a personal site, Adventures, and Field Notes. Native WordPress blocks, original ink-and-watercolour artwork, and locally hosted literary type.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: samuelraynor
Tags: blog, portfolio, one-column, custom-colors, custom-menu, editor-style, full-site-editing, wide-blocks, threaded-comments
*/

/* Expedition sketchbook: parchment, graphite, fern and faded red ink.
 * IM Fell English headings / Alegreya reading, declared locally in theme.json.
 * One original landscape, not a game HUD. No custom JavaScript or remote assets.
 */
:where(.wp-site-blocks,.editor-styles-wrapper){--sq-display:var(--wp--preset--font-family--display);--sq-rule:var(--wp--preset--color--rule);--sq-muted:var(--wp--preset--color--muted);--sq-focus:var(--wp--preset--color--accent)}
*{box-sizing:border-box}
:where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{outline:2px solid var(--sq-focus,#7d463e);outline-offset:5px}
:where(a){text-underline-offset:.2em;text-decoration-thickness:1px}
:where(.wp-block-post-title,.wp-block-heading,.wp-block-query-title,.wp-block-site-title){overflow-wrap:anywhere}
:where(.wp-block-post-content,.wp-block-post-excerpt){overflow-wrap:break-word}
:where(pre){overflow-x:auto;max-width:100%}
:where(img){max-width:100%;height:auto}
:where(input,textarea,select,button){font:inherit}
:where(input:not([type=submit]):not([type=button]):not([type=reset]),textarea,select){max-width:100%;box-sizing:border-box;color:var(--wp--preset--color--ink);background:var(--wp--preset--color--surface);border:1px solid var(--sq-muted);border-radius:0;padding:.6em}
:where(.wp-block-button.is-style-outline .wp-block-button__link){color:var(--wp--preset--color--fern);border-color:currentColor}
:where(blockquote){margin-inline:0}
:where(blockquote cite){font:normal .9rem/1.5 var(--wp--preset--font-family--reading)}
:where(table){border-collapse:collapse;max-width:100%}
:where(.wp-block-table){overflow-x:auto}
:where(.wp-block-table td,.wp-block-table th){border-color:var(--sq-rule);padding:.65em}
:where(.wp-block-image figcaption){font-style:italic}
:where(.wp-block-post-featured-image img){display:block;max-height:38rem;object-fit:contain}
.wp-site-blocks>header+main,.wp-site-blocks>main{margin-block-start:0}
/* Native site identity + native navigation, including the core mobile overlay. */
.sq-header,.sq-footer{max-width:var(--wp--style--global--wide-size);width:calc(100% - 2 * clamp(1rem,3vw,3rem));margin-inline:auto!important}
.sq-header{position:relative;padding:1.6rem 1.5% 1.4rem;border-bottom:1px solid var(--sq-rule);gap:2rem!important;min-height:6.7rem}
.sq-brand{gap:.75rem!important;flex-shrink:0;max-width:100%;min-width:0}
.sq-brand-text{margin:0!important;min-width:0}
.sq-brand-text>*{margin-block:0!important}
.sq-brand-text .wp-block-site-title{font-size:1.65rem}
.sq-brand-text .wp-block-site-tagline{margin-block-start:.25rem!important;max-width:24rem}
.sq-waymark{margin:0;flex:0 0 37px}
.sq-waymark img{display:block}
.sq-header-flourish{position:absolute;left:43%;top:50%;transform:translate(-50%,-50%);font-size:1.4rem;color:var(--sq-muted);line-height:1}
.sq-header-flourish:before,.sq-header-flourish:after{content:'';position:absolute;top:50%;width:3rem;height:1px;background:var(--sq-rule)}
.sq-header-flourish:before{right:2rem}.sq-header-flourish:after{left:2rem}
.sq-navigation{margin:0!important}
.sq-navigation .wp-block-navigation__container{gap:1.7rem}
.sq-navigation .wp-block-navigation-item__content{padding-block:.5rem;text-decoration:none}
.sq-navigation .current-menu-item>.wp-block-navigation-item__content,.sq-navigation .current-menu-ancestor>.wp-block-navigation-item__content{box-shadow:0 1px 0 var(--wp--preset--color--accent)}
.sq-navigation .wp-block-navigation-item__content:hover{text-decoration:underline;text-underline-offset:.35em}
.sq-navigation .wp-block-navigation__submenu-container{color:var(--wp--preset--color--ink);background:var(--wp--preset--color--surface);border:1px solid var(--sq-rule);padding:.5rem}
.sq-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:.5rem .75rem}
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{color:var(--wp--preset--color--ink);background:var(--wp--preset--color--paper)}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{gap:1.5rem;font-size:1.25rem}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container{border:0;background:transparent;padding-inline-start:1rem}
.sq-footer{border-top:3px double var(--sq-rule);padding:1.1rem 1.5% 1.5rem;gap:1rem!important;color:var(--sq-muted);margin-top:0}
.sq-footer-brand{gap:.8rem!important}.sq-footer .wp-block-site-title{font-family:var(--wp--preset--font-family--reading);font-size:.875rem}
.sq-footer .wp-block-site-title a{color:var(--sq-muted)}.sq-footer-note{font-style:italic}
/* The arrival plate. Everything except the decorative artwork remains editable core blocks. */
.sq-atlas{position:relative;isolation:isolate;width:100%;max-width:var(--wp--style--global--wide-size);min-height:56rem;aspect-ratio:1.5;margin-block:0!important}
.sq-atlas>*{margin-block:0!important}
.sq-atlas-image{position:absolute;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none}
.sq-atlas-image img{display:block;width:100%;height:100%;object-fit:fill}
.sq-atlas-intro{position:absolute;top:5%;left:3%;width:35%;max-width:29rem;z-index:1}
.sq-atlas-intro>*+*{margin-block-start:1.1rem}
.sq-preface{font-family:var(--sq-display);font-style:italic;font-size:1.0625rem;line-height:1.35;color:var(--wp--preset--color--accent);margin-bottom:1.7rem}
.sq-camp-title{font-size:clamp(5.8rem,8.7vw,8.5rem);font-weight:400;line-height:.9;letter-spacing:-.035em;color:#3d4938;max-width:100%;margin-top:0!important;padding-bottom:.8rem;position:relative;overflow-wrap:normal}
.sq-camp-title:after{content:'';display:block;width:82%;height:8px;border-block:1px solid #7e715580;transform:rotate(-1deg);margin-top:.85rem}
.sq-camp-lede{font:italic 1.5625rem/1.3 var(--sq-display);color:#67533e;margin-top:1.4rem!important}
.sq-camp-welcome{font-size:1.1875rem;line-height:1.6;max-width:20rem;color:#62604f}
.sq-open-journal{font-size:1.125rem;margin-top:1.1rem!important}
.sq-open-journal a{text-decoration:none;border-bottom:1px solid #7d463e88;padding-bottom:.25rem}
.sq-camp-log{position:absolute;left:3%;top:68%;width:25%;max-width:21rem;padding:.8rem .7rem .8rem 0;border-top:3px double var(--sq-rule);background:#e9dfcaf5;z-index:1}
.sq-camp-log>*+*{margin-block-start:.7rem}
.sq-log-title{font-size:1.625rem;line-height:1.2}
.sq-camp-log>p{font-size:1rem;line-height:1.5}
.sq-log-link{padding-block:.6rem;border-block:1px solid #bbb09688}
.sq-log-aside{font-style:italic;color:var(--sq-muted);font-size:.875rem!important}
.sq-atlas-destinations{position:absolute;inset:0;pointer-events:none}
.sq-pin{position:absolute;transform:translateX(-50%);width:max-content;text-align:center;padding:.5rem .9rem;pointer-events:auto;background:radial-gradient(ellipse,#e9dfcaf0 10%,#e9dfca99 55%,#e9dfca00 74%)}
.sq-pin>*{margin:0!important}
.sq-pin-title{font:400 1.85rem/1.2 var(--sq-display)}
.sq-pin-title a{color:var(--wp--preset--color--ink);text-decoration:none;border-bottom:1px solid #7e715580;padding-bottom:.2rem;display:inline-block}
.sq-pin-title a:before{content:'◇';font:1rem var(--wp--preset--font-family--reading);color:var(--wp--preset--color--accent);display:inline-block;margin-right:.55rem}
.sq-pin-title a:hover{color:var(--wp--preset--color--accent);border-bottom-color:currentColor}
.sq-pin-caption{font-size:.875rem;font-style:italic;line-height:1.5;color:var(--sq-muted);padding-top:.25rem}
.sq-pin-adventures{top:50%;left:79%}.sq-pin-notes{top:83%;left:43%}.sq-pin-character{top:87%;left:83%}
.sq-atlas-compass{position:absolute;bottom:17%;right:6%;width:130px;opacity:.7;transform:rotate(12deg);pointer-events:none}
.sq-atlas-marginalia{position:absolute;left:44%;bottom:.3%;font:italic 1.0625rem/1.4 var(--sq-display);text-align:center;transform:rotate(-4deg);color:var(--sq-muted)}
/* Real homepage content below the map; no pretend projects or fake case studies. */
.sq-home-section{margin-block:0 2.5rem!important;padding:2.2rem clamp(1rem,5vw,5rem);border-top:3px double var(--sq-rule)}
.sq-home-section h2{margin-bottom:1rem}.sq-home-section>p{color:var(--sq-muted)}
.sq-home-notes{margin-block-start:1.75rem!important}
.sq-home-notes .sq-post-entry{padding-block:1.4rem}
/* Interior leaves: title page, reading column, and a usable wide ledger. */
.sq-journal{position:relative;width:100%;max-width:72rem!important;margin:2rem auto 4.5rem!important;padding:2.75rem 3.6rem 2rem 5rem;border:1px solid var(--sq-rule);border-top:3px double var(--sq-rule);background:linear-gradient(90deg,#eae1cd66,transparent 12%,transparent 96%,#d4c9b52b),var(--wp--preset--color--surface);min-height:38rem}
.sq-journal:before{content:'';position:absolute;left:2.9rem;top:1.5rem;bottom:1.5rem;border-left:1px solid #824c492e;pointer-events:none}
.sq-journal>.sq-page-heading{max-width:none!important}.sq-page-heading{padding-bottom:1.8rem;margin-bottom:2rem;border-bottom:3px double var(--sq-rule)}
.sq-page-heading>:not(.alignwide):not(.alignfull){max-width:none!important}
.sq-page-heading .wp-block-post-title,.sq-page-heading h1{margin-block:0 .7rem}
.sq-eyebrow{font:italic 1.125rem/1.5 var(--sq-display);color:var(--wp--preset--color--accent);margin-bottom:.8rem!important}
.sq-meta{font-size:.9375rem;color:var(--sq-muted);gap:.5rem 1.2rem!important;line-height:1.5}
.sq-reading{line-height:1.8}.sq-reading>p{margin-block:0 1.4rem}.sq-reading h2{margin-top:2.3rem}
.sq-reading>p:first-child:first-letter{font-family:var(--sq-display);font-size:1.2em}
.sq-journal>.alignwide{max-width:100%!important}
.sq-post-list{list-style:none;padding:0!important}
.sq-post-entry{border-bottom:1px solid var(--sq-rule);padding:1.6rem 0 1.8rem;margin:0!important}
.sq-post-entry h2,.sq-post-entry h3{margin-top:.7rem}.sq-post-entry .wp-block-post-excerpt{margin-top:.8rem}
.sq-post-entry .wp-block-post-title a:hover{text-decoration:underline;text-underline-offset:.16em}
.sq-ledger .wp-block-query-pagination{margin-top:2rem}.wp-block-query-no-results{font-style:italic;color:var(--sq-muted);padding-block:1.5rem}
.sq-adventure-entry{padding:1.8rem 0;border-bottom:1px solid var(--sq-rule)}
.sq-adventure-entry h2 a{text-decoration:none;color:var(--wp--preset--color--ink)}.sq-adventure-entry h2 a:hover{text-decoration:underline}
.sq-quest-brief{padding:1rem 1.25rem;border-left:2px solid var(--wp--preset--color--fern);background:#e6dfcc66;color:var(--sq-muted);font-size:1.0625rem}
.sq-editor-prompt{font-size:.9375rem;font-style:italic;color:var(--wp--preset--color--accent);padding-left:1rem;border-left:1px solid var(--sq-rule)}
.sq-character-sheet{gap:2.5rem}.sq-character-identity{border:1px solid var(--sq-rule);border-top:3px double var(--sq-rule);padding:1.6rem;text-align:center;background:#e7e2d34d;min-width:0}
.sq-character-identity h2{font-size:2rem}.sq-character-compass{margin-inline:auto}.sq-character-compass img{display:block;margin-inline:auto}
.sq-character-copy{min-width:0}.sq-character-copy h2{margin-top:2rem}
.sq-adjacent-posts{border-block:1px solid var(--sq-rule);padding-block:1rem;margin-block:2.5rem!important;font-size:1rem;gap:1rem}
.sq-comments{border-top:3px double var(--sq-rule);margin-top:2rem!important;padding-top:1.5rem}
.sq-comments h2{font-size:1.75rem}.sq-comment{border-bottom:1px solid var(--sq-rule);padding-block:1.25rem}
.sq-comments .wp-block-comment-template .children{padding-left:1.5rem}.sq-comments .comment-reply-link,.sq-comments .comment-edit-link{font-size:.9375rem}
.sq-comments label{display:block}.sq-comments .comment-form-cookies-consent label{display:inline}.sq-comments textarea{width:100%}
.sq-comments .comment-form-cookies-consent{font-size:.9375rem}.sq-comments .submit,.sq-comments input[type=submit]{max-width:100%;font-size:1rem;background:var(--wp--preset--color--fern);color:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--fern);padding:.65em .75em;cursor:pointer}
.sq-comments .wp-block-comments-pagination{gap:1rem;flex-wrap:wrap}
@media(max-width:1150px){.sq-header-flourish{display:none}.sq-header{gap:1.4rem!important}.sq-navigation .wp-block-navigation__container{gap:1.3rem}.sq-journal{padding:2.2rem 2.2rem 2rem 3.6rem}.sq-journal:before{left:1.9rem}.sq-atlas{min-height:51rem}.sq-camp-title{font-size:6.2rem}.sq-camp-welcome{font-size:1.0625rem}.sq-atlas-intro{width:36%}.sq-camp-log{width:29%}.sq-pin-title{font-size:1.55rem}.sq-atlas-compass{width:105px}.sq-atlas-compass img{max-width:105px}.sq-atlas-marginalia{font-size:.9375rem}}
@media(max-width:900px){.sq-header{justify-content:center!important;padding:1.3rem 0 1rem}.sq-navigation{width:100%;justify-content:center!important}.sq-atlas{aspect-ratio:auto;min-height:0;display:flex;flex-direction:column;padding-top:1.8rem;gap:0}.sq-atlas-intro{position:relative;left:auto;top:auto;width:100%;max-width:none;order:1}.sq-preface{font-size:1rem;margin-bottom:1.3rem}.sq-camp-title{font-size:clamp(4.5rem,13vw,7.8rem);line-height:1;letter-spacing:-.03em;display:inline-block}.sq-camp-title br{display:none}.sq-camp-title:after{margin-top:.3rem;width:100%}.sq-camp-lede{font-size:1.5rem}.sq-camp-lede br{display:none}.sq-camp-welcome{font-size:1.125rem;max-width:32rem}.sq-atlas-image{position:relative;inset:auto;order:2;width:100%;height:auto;aspect-ratio:1.06;overflow:hidden;margin:0!important}.sq-atlas-image img{position:absolute;width:142%;max-width:142%;height:auto;left:-36%;top:0;object-fit:contain}.sq-atlas-destinations{position:relative;inset:auto;pointer-events:auto;order:3;border-block:1px solid var(--sq-rule)}.sq-pin{position:relative;left:auto;top:auto;transform:none;width:100%;text-align:left;background:none;padding:1.05rem 1.5rem 1.05rem .3rem}.sq-pin+.sq-pin{border-top:1px solid #bbb09677;margin-top:0!important}.sq-pin-title{font-size:1.9rem}.sq-pin-title a{border:0;width:100%;padding:0}.sq-pin-title a:after{content:'↗';float:right;font:1.25rem var(--wp--preset--font-family--reading);color:var(--wp--preset--color--accent)}.sq-pin-caption{font-size:1rem;padding-left:1.7rem}.sq-camp-log{position:relative;left:auto;top:auto;width:100%;max-width:none;order:4;background:none;padding:1rem 0;border-bottom:1px solid var(--sq-rule);margin-top:1.5rem!important}.sq-log-title{font-size:1.7rem}.sq-camp-log>p{font-size:1.125rem}.sq-log-link{border-top:0}.sq-atlas-compass{display:none}.sq-atlas-marginalia{position:relative;left:auto;bottom:auto;order:5;font-size:1.125rem;margin:1.25rem auto 1.5rem!important}.sq-home-section{padding:1.8rem 0;margin-bottom:1.5rem!important}.sq-character-sheet{gap:1.6rem}}
@media(max-width:600px){.sq-brand-text .wp-block-site-title{font-size:1.55rem}.sq-header{gap:.8rem!important}.sq-navigation{width:auto;margin-left:auto!important}.sq-header .sq-brand{margin-right:auto}.sq-navigation .wp-block-navigation__responsive-container-open{padding:.6rem}.sq-journal{padding:1.7rem 1.25rem 1.6rem 1.9rem;min-height:0;margin:1.2rem auto 2.5rem!important}.sq-journal:before{left:.9rem;top:1.2rem;bottom:1.2rem}.sq-page-heading{padding-bottom:1.5rem;margin-bottom:1.6rem}.sq-page-heading h1{font-size:clamp(2.65rem,10vw,3.8rem);letter-spacing:-.02em}.sq-eyebrow{font-size:1rem}.sq-meta{font-size:.875rem}.sq-reading{font-size:1.1875rem;line-height:1.75}.sq-character-identity{max-width:22rem;width:100%;margin:auto}.sq-character-copy{font-size:1.125rem}.sq-character-sheet{margin-inline:0}.sq-comments .wp-block-comment-template .children{padding-left:.8rem}.sq-footer{gap:.4rem!important;font-size:.875rem;padding-inline:0}.sq-footer-brand{gap:.25rem .75rem!important}.sq-footer-note{margin:0!important}.sq-pin-title{font-size:1.75rem}.sq-camp-title{font-size:clamp(3rem,17vw,5.6rem)}.sq-camp-welcome{font-size:1.0625rem}.sq-preface{font-size:.9375rem}.sq-camp-lede{font-size:1.35rem}.sq-camp-title:after{width:95%}}
/* Gutenberg gives every selectable block position:relative. Keep the arrival
 * composition in the editor too, without changing any saved block markup. */
.editor-styles-wrapper .sq-atlas .sq-atlas-image,.editor-styles-wrapper .sq-atlas .sq-atlas-intro,.editor-styles-wrapper .sq-atlas .sq-camp-log,.editor-styles-wrapper .sq-atlas .sq-atlas-destinations,.editor-styles-wrapper .sq-atlas .sq-pin,.editor-styles-wrapper .sq-atlas .sq-atlas-compass,.editor-styles-wrapper .sq-atlas .sq-atlas-marginalia{position:absolute}
.editor-styles-wrapper .sq-atlas .sq-atlas-image{z-index:0}.editor-styles-wrapper .sq-atlas .sq-atlas-intro,.editor-styles-wrapper .sq-atlas .sq-camp-log,.editor-styles-wrapper .sq-atlas .sq-atlas-destinations{z-index:1}
@media(max-width:900px){.editor-styles-wrapper .sq-atlas .sq-atlas-image,.editor-styles-wrapper .sq-atlas .sq-atlas-intro,.editor-styles-wrapper .sq-atlas .sq-camp-log,.editor-styles-wrapper .sq-atlas .sq-atlas-destinations,.editor-styles-wrapper .sq-atlas .sq-pin,.editor-styles-wrapper .sq-atlas .sq-atlas-marginalia{position:relative}.editor-styles-wrapper .sq-atlas .sq-atlas-image{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
@media print{.sq-navigation,.sq-header-flourish,.sq-atlas-compass,.sq-comments form{display:none!important}.sq-journal{border:0;background:white;margin:0!important;padding:0!important;max-width:none!important}.sq-journal:before{display:none}.sq-atlas{min-height:0;aspect-ratio:auto}.sq-atlas-image{display:none}.sq-atlas-intro,.sq-camp-log,.sq-atlas-destinations,.sq-pin,.sq-atlas-marginalia{position:static;transform:none;width:auto;max-width:none}.sq-pin{background:none}body{background:white!important;color:black!important}a{color:black!important}}
