/* Eliza Gardner — the eliza theme's styles.
   Ported from preview/site/assets/site.css (preview v4), rule for rule. Left out on purpose:
   "Home 2 — route" (homepage 2 is set aside) and "Comment panel" (preview only). Colours and
   fonts come from theme.json; the block-specific additions are at the end of this file.
   One selector changed: .page became main.page (WordPress gives <body> the class "page" too). */
:root{
  --ground:var(--wp--preset--color--ground); --panel:var(--wp--preset--color--panel); --ink:var(--wp--preset--color--ink);
  --muted:var(--wp--preset--color--muted); --soft:var(--wp--preset--color--soft); --rule:var(--wp--preset--color--rule);
  --accent:var(--wp--preset--color--accent);
  --serif:var(--wp--preset--font-family--serif); --sans:var(--wp--preset--font-family--sans);
  --gutter:var(--wp--preset--spacing--gutter); --header:var(--wp--preset--spacing--header);
}
*{box-sizing:border-box}
html{overscroll-behavior-x:none}
html,body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
button{font:inherit;color:inherit;cursor:pointer}
img{max-width:100%;display:block}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Placeholder "photographs" */
.ph{position:relative;background:#4A4F4C;overflow:hidden}
.ph::after{content:attr(data-label);position:absolute;left:10px;bottom:8px;font:500 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(245,243,239,.72)}
.ph--hero{display:flex;flex-direction:column}
.ph--hero .sky{flex:62;background:#8E9AA1}.ph--hero .land{flex:38;background:#4F564C}

/* Real photographs */
.ph-frame{position:relative;overflow:hidden;background:#1C1C1A}
.ph-frame img{width:100%;height:100%;object-fit:cover;display:block}
.ph-frame.contain img{object-fit:contain}
.masonry .ph-frame{width:100%}
.hero-photo{position:absolute;left:0;right:0;top:0;height:135vh;will-change:transform;overflow:hidden;background:#1C1C1A}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;display:block}
.hero-quote{text-shadow:0 1px 16px rgba(0,0,0,.5)}
.places .bg{display:block}
.places .bg-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s}
.places .bg-photo.is-on{opacity:1}
.card .ph-frame{width:100%}

/* Header */
.site-header{position:fixed;inset:0 0 auto 0;height:var(--header);z-index:50;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 clamp(12px,2.5vw,32px);background:rgba(14,14,13,.86);transition:transform .45s cubic-bezier(.2,.7,.2,1),opacity .45s}
.site-header.is-hidden{transform:translateY(-100%);opacity:0;pointer-events:none}
.site-header .brand{justify-self:center;font-family:var(--serif);font-size:clamp(20px,2vw,26px);letter-spacing:.02em;white-space:nowrap}
.menu-wrap{position:relative;justify-self:start}
.menu-toggle,.icon-btn{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 6px;background:none;border:0}
.menu-toggle{font-size:12px;letter-spacing:.18em;text-transform:uppercase}
.menu-toggle svg{transition:transform .2s}
.menu-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.menu-panel{position:absolute;top:54px;left:0;min-width:230px;display:flex;flex-direction:column;padding:8px 0;background:var(--panel);border:1px solid var(--rule)}
.menu-panel[hidden]{display:none}
.menu-panel a{padding:12px 20px;font-size:14px}
.menu-panel a[aria-current="page"]{color:var(--accent)}
.menu-panel hr{border:0;border-top:1px solid var(--rule);margin:6px 0}
.header-right{justify-self:end;display:flex;align-items:center;gap:2px}
.header-right .text-link{padding:12px;font-size:12px;letter-spacing:.18em;text-transform:uppercase}
@media (max-width:640px){.header-right .text-link{display:none}}

/* Search overlay */
.search-overlay{position:fixed;inset:0;z-index:80;background:rgba(14,14,13,.96);display:flex;flex-direction:column;padding:96px var(--gutter) 48px;gap:24px}
.search-overlay[hidden]{display:none}
.search-overlay input{width:100%;max-width:760px;background:none;border:0;border-bottom:1px solid var(--muted);color:var(--ink);font:300 clamp(28px,4vw,44px)/1.2 var(--serif);padding:8px 0}
.search-overlay input:focus{outline:none;border-bottom-color:var(--accent)}
.search-results{display:flex;flex-direction:column;max-width:760px}
.search-results a{padding:12px 0;border-bottom:1px solid var(--rule);display:flex;justify-content:space-between;gap:16px}
.search-results .kind{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.search-close{position:absolute;top:16px;right:16px}

/* Inner pages */
main.page{padding:calc(var(--header) + 48px) var(--gutter) 96px;max-width:1440px;margin:0 auto} /* main.page, not .page: WordPress also puts the class "page" on <body> */
.eyebrow{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin:0}
.page-title{margin:8px 0 0;font:300 clamp(48px,7vw,96px)/1 var(--serif)}
.lede{margin:20px 0 0;max-width:60ch;font:italic 300 clamp(20px,2.2vw,26px)/1.45 var(--serif);color:var(--soft)}
.back-link{display:inline-block;padding:12px 0;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
.section{margin-top:72px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-top:1px solid var(--rule);padding-top:16px;margin-bottom:24px}
.section-head h2{margin:0;font:300 36px/1.1 var(--serif)}
.small-caps{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid var(--ink);background:none;font-size:12px;letter-spacing:.18em;text-transform:uppercase}
.btn--solid{background:var(--ink);color:var(--ground)}
.btn:hover{text-decoration:none;border-color:var(--accent)}
.draft-note{margin-top:24px;padding:14px 16px;border:1px dashed var(--rule);color:var(--muted);font-size:13px;max-width:70ch}

/* Masonry gallery */
.masonry{columns:3 300px;column-gap:28px;margin-top:56px}
.masonry figure{margin:0 0 28px;break-inside:avoid;display:flex;flex-direction:column;gap:10px}
.masonry figcaption{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}

/* Work grid + filters */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:32px}
.chip{min-height:44px;padding:0 18px;border:1px solid var(--muted);border-radius:22px;background:none;font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--ground);border-color:var(--ink)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:36px 24px;margin-top:40px}
.grid a{display:flex;flex-direction:column;gap:10px}
.grid .meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}

/* Cards (journal, prints) */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:48px 32px;margin-top:48px}
.card{display:flex;flex-direction:column;gap:14px}
.card h3{margin:0;font:300 30px/1.15 var(--serif)}
.card p{margin:0;color:var(--soft);line-height:1.6;font-size:15px}

/* Forms */
.form{display:grid;gap:18px;max-width:640px;margin-top:40px}
.form label{display:flex;flex-direction:column;gap:8px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.form input,.form select,.form textarea{background:transparent;border:1px solid var(--rule);color:var(--ink);font:16px/1.5 var(--sans);padding:12px 14px;border-radius:0;text-transform:none;letter-spacing:0}
.form textarea{min-height:140px;resize:vertical}

/* Footer */
.site-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 32px;padding:40px var(--gutter) 56px;border-top:1px solid var(--rule);font-size:13px;color:var(--muted)}
.site-footer nav{display:flex;flex-wrap:wrap;gap:8px 24px}
.newsletter{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.newsletter input{background:transparent;border:1px solid var(--rule);color:var(--ink);padding:10px 12px;font:14px var(--sans);min-height:44px;width:300px;max-width:100%} /* AJ14.9 (S14): wide enough for its whole placeholder (220px cut it off at desktop widths) */
@media (max-width:760px){.newsletter{width:100%}.newsletter input{flex:1 1 100%;width:100%}} /* AJ14.9: full width when the footer stacks on a phone, the button beneath */

/* Places page */
.places{position:fixed;inset:0;overflow:hidden}
.places .bg{position:absolute;inset:0;display:flex;flex-direction:column}
.places .bg div{transition:background-color .6s}
.places .shade{position:absolute;inset:0;background:var(--ground);opacity:.5}
.places-inner{position:relative;height:100%;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:48px;align-items:center;padding:calc(var(--header) + 24px) var(--gutter) 48px;max-width:1440px;margin:0 auto}
.place-list{display:flex;flex-direction:column}
.place-list a{display:flex;align-items:baseline;gap:20px;padding:4px 0;opacity:.45;transition:opacity .3s}
.place-list a.is-active{opacity:1}
.place-list a:hover{text-decoration:none}
.place-list .no{width:28px;font-size:12px;letter-spacing:.1em;color:var(--soft)}
.place-list .name{font:300 clamp(36px,5vw,64px)/1.1 var(--serif)}
.place-list .arrow{font-size:22px;opacity:0}
.place-list a.is-active .arrow{opacity:1}
.place-preview{display:flex;flex-direction:column;gap:16px}
.place-preview .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:860px){
  .places{position:relative;min-height:100vh}
  .places .bg,.places .shade{position:fixed}
  .places-inner{grid-template-columns:1fr;align-items:start;height:auto}
}

/* Homepages (shared intro) */
.stage-track{position:relative}
.stage{position:sticky;top:0;height:100vh;overflow:hidden}
.stage .ph--hero{position:absolute;left:0;right:0;top:0;height:135vh;will-change:transform}
.stage .shade{position:absolute;inset:0;background:var(--ground);opacity:.12}
.hero-title{position:absolute;left:0;right:0;top:0;margin:0;text-align:center;font:300 clamp(56px,9vw,132px)/1 var(--serif);letter-spacing:.01em;text-shadow:0 2px 24px rgba(0,0,0,.45),0 0 2px rgba(0,0,0,.25);transform-origin:50% 50%;will-change:transform,opacity}
.hero-quote{position:absolute;left:50%;top:0;width:min(760px,88vw);margin:0;text-align:center;font:italic 300 clamp(20px,2.2vw,28px)/1.4 var(--serif);transform:translateX(-50%);will-change:transform,opacity}
.hero-quote span{display:inline-block;margin-right:.28em;opacity:0;transform:translate3d(0,14px,0)}
.scroll-hint{position:absolute;left:0;right:0;bottom:36px;display:flex;flex-direction:column;align-items:center;gap:10px;font-size:11px;letter-spacing:.3em;text-transform:uppercase}
.scroll-hint i{width:1px;height:40px;background:var(--ink)}

/* Home 1 — carousel */
.carousel{position:absolute;left:0;right:0;top:0;height:400px;will-change:transform,opacity}
.carousel.is-dragging .card-p{transition:none}
.carousel .card-p{will-change:transform,opacity}
.carousel .card-p{position:absolute;top:0;left:0;width:min(460px,78vw);display:flex;flex-direction:column;gap:12px;transition:transform .55s cubic-bezier(.2,.7,.2,1),opacity .55s}
.carousel .card-p .ph-frame{height:min(300px,52vw)}
.carousel .card-p .row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.carousel .card-p .row span:first-child{font:400 26px/1.1 var(--serif)}
.round-btn{position:absolute;top:122px;width:56px;height:56px;border-radius:28px;border:1px solid rgba(245,243,239,.6);background:rgba(14,14,13,.7);display:flex;align-items:center;justify-content:center}
.round-btn.prev{left:clamp(12px,3vw,48px)}.round-btn.next{right:clamp(12px,3vw,48px)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
  .hero-quote span{opacity:1!important;transform:none!important}
}

/* Place page — the wheel above the photographs (AJ2.8). S19 (AJ16.4): a homepage wheel outside the stage (one added to
   another page, or left on the homepage without its opening photo) is drawn the same way, in the page's flow. */
.carousel.inline,.carousel:not(.stage .carousel){position:relative;top:auto;width:100vw;margin:56px 0 0 calc(50% - 50vw);overflow:hidden;will-change:auto}
/* S19: the Home wheel's card holder is not the journal's card grid (.cards above): in the flow, where the wheel clips its own box, it starts at the wheel's top */
.carousel[data-variant="home"]:not(.stage .carousel)>.cards{margin-top:0}
/* S19: in a story it fills its own column, not the window: the window-wide rule above needs the column centred in the window, and a story's (.story-body, 65ch, at the left) is not */
.single-story .carousel[data-variant="home"]:not(.stage .carousel){width:auto;margin-left:0;margin-right:0}
.carousel.inline .card-p{cursor:pointer}
.carousel.inline .card-p .row span:first-child{font-size:20px}
.masonry figure.is-target .ph-frame{animation:target-glow 1.6s ease-out}
@keyframes target-glow{0%{outline:2px solid var(--accent,#C9A96E);outline-offset:4px}100%{outline:2px solid transparent;outline-offset:10px}}

/* Hover captions on every photograph (AJ2.7) */
.ph-cap{position:absolute;left:0;right:0;bottom:0;padding:36px 16px 14px;font:italic 300 16px/1.35 var(--serif);color:#F5F3EF;background:linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,0));opacity:0;transform:translate3d(0,8px,0);transition:opacity .35s,transform .35s;pointer-events:none;text-align:left}
.ph-frame:hover .ph-cap,a:focus-visible .ph-cap{opacity:1;transform:none}
@media (hover:none){.ph-cap{display:none}}
@media (prefers-reduced-motion:reduce){.ph-cap{transition:none}}

/* ---------- Added for the WordPress build (block wrappers and server-rendered captions) ---------- */
.wp-block-group{margin:0}
/* S19 (AJ16.4): the stage holds only the opening photo and its wheel (functions.php, eliza_layout_content); sections before
   or after it on the homepage, and sections beside the Places list, sit in a page-body box with the page's own padding. */
.home .page-body,.places-page .page-body{padding:48px var(--gutter) 96px;max-width:1440px;margin:0 auto}
.home .wp-block-post-content>.page-body:first-child,.places-page .wp-block-post-content>.page-body:first-child{padding-top:calc(var(--header) + 48px)}
/* The Places list beside other sections: a screen-high block in the flow, its background inside it, not fixed over the page. */
.places.inline{position:relative;min-height:100vh;overflow:hidden}
.places.inline .bg,.places.inline .shade{position:absolute}
.places.inline .places-inner{min-height:100vh}
.single-place .place-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px 32px}
.single-place .page-title{margin:8px 0 0}
.page .wp-block-post-content>.page-title,.page>.page-title{margin-top:8px}
.page .wp-block-post-content>.eyebrow+.page-title{margin-top:8px}
.page .masonry{margin-top:56px}
.places-page{min-height:100vh}
.ph-cap{display:flex;flex-direction:column;gap:4px} /* place · When, then the description when its switch is on (S7 item 2) */
@media (hover:none){.ph-cap{display:none}} /* repeated after the flex rule above, which otherwise wins over the one at line 175 */
.ph-cap-place{font:400 16px/1.3 var(--serif);font-style:normal}
.site-footer>span{display:inline}
.not-found .btn{margin-top:32px}

/* The photo view (S7 item 3): a <dialog> over the dark ground, the photo large, the details at the side;
   on a phone the details sit beneath. Markup from wp-content/plugins/atlas/assets/photo-view.js. */
.photo-view{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--ground);color:var(--ink);font-family:var(--sans);display:none;grid-template-columns:minmax(0,1fr) 320px;grid-template-rows:minmax(0,1fr);overflow:hidden}
.photo-view[open]{display:grid}
.photo-view::backdrop{background:var(--ground)}
.pv-open{overflow:hidden}
.pv-stage{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;padding:24px 72px}
.pv-img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:0 auto}
.pv-stage .round-btn{top:50%;margin-top:-28px;z-index:1}
.pv-stage .pv-prev{left:12px}.pv-stage .pv-next{right:12px}
.photo-view .pv-close{position:absolute;top:8px;right:8px;z-index:2}
.pv-panel{display:flex;flex-direction:column;gap:12px;padding:56px 32px 32px;border-left:1px solid var(--rule);background:var(--panel);overflow:auto;min-height:0}
.pv-panel p{margin:0}
.pv-counter{color:var(--muted)}
.pv-title{margin:0;font:300 clamp(26px,2.4vw,34px)/1.15 var(--serif)}
.pv-place{font:400 18px/1.3 var(--serif)}
.pv-place a:hover{color:var(--accent)}
.pv-when{color:var(--soft)}
.pv-desc{font:italic 300 17px/1.5 var(--serif);color:var(--soft)}
.pv-settings,.pv-film{color:var(--muted);line-height:1.6}
@media (max-width:899px){
  .photo-view{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;overflow:auto}
  .pv-stage{padding:48px 16px 16px}
  .pv-panel{border-left:0;border-top:1px solid var(--rule);padding:24px var(--gutter) 32px;overflow:visible}
  .pv-stage .round-btn{top:auto;bottom:-20px;margin:0;width:44px;height:44px;border-radius:22px}
  .pv-stage .pv-prev{left:var(--gutter)}.pv-stage .pv-next{right:var(--gutter)}
}
@media (prefers-reduced-motion:reduce){.pv-img{transition:none}}

/* Journal (S7 item 5): WordPress's Query Loop styled as the preview's cards (journal/index.html lines 16-31);
   a story with a photo shows it on its card and at the top of its page, one without lays out as text. */
.wp-block-post-template.cards{list-style:none;padding:0;margin:48px 0 0}
.cards .wp-block-post{display:flex;flex-direction:column;gap:14px;margin:0}
.cards .wp-block-post-featured-image{margin:0;overflow:hidden;background:#1C1C1A}
.cards .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover;display:block}
.cards .wp-block-post-date{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.cards .wp-block-post-title{margin:0;font:300 30px/1.15 var(--serif)}
.cards .wp-block-post-title a:hover{text-decoration:none;color:var(--accent)}
.cards .wp-block-post-excerpt p{margin:0;color:var(--soft);line-height:1.6;font-size:15px}
/* S20 (AJ17.24): a story without an image is a text card by design, not a card missing its picture: a fine rule over it,
   as the section headings have, its date and title starting under it */
.cards .wp-block-post:not(:has(.wp-block-post-featured-image)){border-top:1px solid var(--rule);padding-top:20px}
.single-story .story-photo{margin:16px 0 32px;max-height:70vh;overflow:hidden;background:#1C1C1A}
.single-story .story-photo img{width:100%;height:auto;max-height:70vh;object-fit:cover;display:block}
.single-story .eyebrow{margin-top:8px}
.single-story .story-body{margin-top:32px;max-width:65ch;line-height:1.7;color:var(--soft)}
.single-story .story-body p{margin:0 0 1.2em}
.single-story .story-body p.quote{margin-left:auto;margin-right:auto} /* S20 (AJ17.14): a quote in a story is centred in its column at its reading width, as on every other page */

/* Contact (S7 item 6, DRAFT): two columns from 900px, the details left and the form right; stacked below. */
.contact-layout{display:grid;gap:48px;margin-top:40px}
@media (min-width:900px){.contact-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:64px;align-items:start}}
.contact-details .contact-line{margin:0 0 24px;max-width:38ch;font:italic 300 20px/1.5 var(--serif);color:var(--soft)}
.contact-details .contact-detail{display:flex;flex-direction:column;gap:4px;margin:0 0 18px;color:var(--soft);line-height:1.5}
.contact-form{margin-top:0}
.contact-form .form-note{margin:0}
.contact-form .field{display:flex;flex-direction:column;gap:8px}
.contact-form .field .btn{align-self:flex-start}
.contact-form label{display:block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.contact-form .req{color:var(--accent)}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:2px solid var(--accent);outline-offset:2px;border-color:var(--accent)}
.contact-form [aria-invalid="true"]{border-color:var(--accent)}
.contact-form .field-error{margin:0;font-size:13px;color:var(--accent)}
.contact-form .field-error[hidden]{display:none}

/* Work page: the Kind filters (S7 item 1; the preview's work/index.html line 16-19) */
.work-filters{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.work-filters .work-count{margin:32px 0 0}
.work-filters+.masonry{margin-top:40px}
.masonry figure[hidden]{display:none}
.ph-open{cursor:pointer}

/* Sections Eliza can add in the page editor (S10): a single photo, text beside a photo (the About
   page's layout, about/index.html lines 12-24), a section heading on its own (the preview's
   .section-head rule above it), a quote set large, a button on its own line, a divider, a spacer. */
.single-photo{margin:48px 0 0}
.single-photo--inset{padding:0 var(--gutter);max-width:1100px;margin-left:auto;margin-right:auto}
.single-photo figcaption{margin:12px 0 0}
.single-photo figcaption[hidden]{display:none}
.text-photo{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:48px;align-items:start}
.text-photo--right .text-photo__photo{order:2}
.text-photo--no-photo{grid-template-columns:minmax(0,1fr)}
.text-photo__text>:first-child{margin-top:0}
h2.section-heading{margin:72px 0 24px;padding-top:16px;border-top:1px solid var(--rule);font:300 36px/1.1 var(--serif)}
.text-photo__text h2.section-heading+p{margin:0}
.quote{margin:72px auto 0;max-width:32ch;text-align:center;font:italic 300 clamp(28px,3.2vw,44px)/1.3 var(--serif);color:var(--soft)}
.btn-row{margin:32px 0 0}
.wp-block-separator{border:0;border-top:1px solid var(--rule);margin:72px 0 0;opacity:1}
.wp-block-spacer{margin:0}
.page .wp-block-post-content>.small-caps,.text-photo__text>.small-caps{margin:0}
