/*
Theme Name: Lina's Studio
Theme URI: https://linasstudio.com
Author: Lina's Studio
Description: A dark & light gallery theme for painters — big hero painting, staggered online gallery, painting pages with details and an enquiry form. When you activate it, it installs the bundled "Lina's Paintings" plugin and adds sample paintings, pages, exhibitions and the menu.
Version: 1.0.0
Requires at least: 6.0
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: linas-studio
*/

html[data-theme="dark"] { --bg:#121110; --bg2:#1a1816; --text:#ece4d6; --muted:#9e9384; --fill:#4d463c; --fill-hover:#5d5548; --on-fill:#ece4d6; --line:rgba(236,228,214,.14); --line-strong:rgba(236,228,214,.6); --hero-ink:#efe7da; --hshadow:0 6px 32px rgba(0,0,0,.55); --brush:1; --grain:.55; color-scheme:dark; }
html[data-theme="light"] { --bg:#eee8dd; --bg2:#e4ddcf; --text:#1d1a16; --muted:#62584b; --fill:#4d463c; --fill-hover:#3a342c; --on-fill:#eee8dd; --line:rgba(29,26,22,.14); --line-strong:rgba(29,26,22,.6); --hero-ink:#1d1a16; --hshadow:none; --brush:.85; --grain:.45; color-scheme:light; }
:root { --serif:'Cormorant Garamond', Georgia, serif; --mono:'IBM Plex Mono', ui-monospace, Menlo, monospace; --pad:clamp(20px, 5vw, 80px); }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--serif); font-size: 20px; line-height: 1.4; text-wrap: pretty; transition: background .35s, color .35s; }
a { color: inherit; }
a:hover { color: var(--muted); }
:focus-visible { outline: 1px solid var(--line-strong); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--fill); color: var(--on-fill); }

.ls-site { position: relative; z-index: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.ls-grain { position: fixed; inset: 0; z-index: 50; pointer-events: none; background-image: url(assets/images/grain.png); background-size: 320px; opacity: var(--grain); }
.ls-deco { position: absolute; z-index: -1; pointer-events: none; max-width: none; height: auto; }
.ls-wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.ls-main { position: relative; z-index: 0; flex: 1; }
.ls-stack { display: flex; flex-direction: column; gap: 14px; }

/* Header */
.ls-header { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 48px; padding-top: 30px; padding-bottom: 30px; }
.ls-brand { font-size: 27px; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.ls-nav { flex: 1 1 auto; display: flex; justify-content: center; gap: 10px clamp(20px, 2.6vw, 48px); font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ls-nav a { text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid transparent; }
.ls-nav a:hover { color: var(--text); border-bottom-color: var(--line-strong); }
.ls-nav a.is-current { border-bottom-color: var(--text); }
.ls-header-actions { display: flex; gap: 14px; align-items: center; }
.ls-mode { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer; }
.ls-mode:hover { border-color: var(--line-strong); }
.ls-cta-wrap { position: relative; display: inline-flex; }
.ls-cta-wrap img { position: absolute; left: -14px; bottom: -14px; width: calc(100% + 54px); height: 18px; max-width: none; opacity: var(--brush); pointer-events: none; }
.ls-cta { position: relative; display: inline-flex; align-items: center; height: 46px; padding: 0 20px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.ls-cta:hover { background: var(--fill); color: var(--on-fill); }
@media (max-width: 700px) { .ls-nav { white-space: normal; flex-wrap: wrap; justify-content: flex-start; order: 3; flex-basis: 100%; } }

/* Buttons & links */
.ls-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; background: var(--fill); color: var(--on-fill); border: 0; font-family: var(--mono); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.ls-btn:hover { background: var(--fill-hover); color: var(--on-fill); }
.ls-btn-sm { height: 44px; padding: 0 32px; text-transform: none; letter-spacing: 0; box-shadow: none; }
.ls-link { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.ls-kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ls-display { margin: 0; font-weight: 500; font-size: clamp(56px, 7vw, 108px); line-height: .9; text-transform: uppercase; text-shadow: var(--hshadow); overflow-wrap: break-word; }
.ls-lead { margin: 0; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; color: var(--muted); max-width: 34ch; }
.ls-lead p { margin: 0 0 .6em; }
.ls-lead p:last-child { margin: 0; }
.ls-lead a { color: var(--text); }

/* Hero */
.ls-hero { position: relative; display: flex; flex-wrap: wrap; gap: 56px 0; align-items: flex-start; padding: 40px 0 120px; }
.ls-hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 30px; position: relative; z-index: 2; padding-top: 44px; }
.ls-hero h1 { margin: 0; font-weight: 500; font-size: clamp(50px, 7vw, 112px); line-height: .9; text-transform: uppercase; text-shadow: var(--hshadow); }
.ls-hero h1 span { display: block; white-space: nowrap; }
.ls-hero-sub { margin: 0; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.12; color: var(--muted); max-width: 20ch; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; }
.ls-series { display: flex; flex-direction: column; gap: 14px; margin-top: 76px; max-width: 432px; }
.ls-series-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.ls-sq-group { display: flex; gap: 8px; }
.ls-sq { width: 24px; height: 24px; display: inline-grid; place-items: center; background: var(--bg2); border: 1px solid var(--line); color: var(--text); cursor: pointer; padding: 0; }
.ls-sq:hover { border-color: var(--line-strong); }
.ls-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ls-thumb { aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; background: var(--bg2); cursor: pointer; overflow: hidden; }
.ls-thumb.is-active { border-color: var(--text); }
.ls-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ls-hero-fig { flex: 1.45 1 540px; min-width: 0; margin: 0; position: relative; display: flex; flex-direction: column; gap: 22px; }
.ls-hero-brush { position: absolute; left: -120px; top: 34%; height: 92%; width: auto; max-width: none; opacity: var(--brush); pointer-events: none; z-index: 0; }
.ls-hero-frame { position: relative; z-index: 1; aspect-ratio: 1.58 / 1; background: var(--bg2); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.ls-hero-frame a { display: block; width: 100%; height: 100%; }
.ls-hero-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.ls-hero-title { position: absolute; right: -2%; bottom: -14%; pointer-events: none; text-align: right; font-weight: 500; font-size: clamp(48px, 5.8vw, 98px); line-height: .92; text-transform: uppercase; color: var(--hero-ink); text-shadow: var(--hshadow); }
.ls-hero-cap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); }
.ls-hero-cap a { font-size: 17px; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; align-self: flex-start; }
.ls-hero-cap span { font-size: 13px; color: var(--muted); }

/* Home gallery */
.ls-home-grid { position: relative; display: flex; gap: 28px; padding: 0 0 120px; }
.ls-cols { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 56px 24px; align-items: start; }
.ls-col { display: flex; flex-direction: column; gap: 32px; }
.ls-col h2 { margin: 0; font-weight: 500; font-size: clamp(52px, 4.8vw, 76px); line-height: .9; text-transform: uppercase; text-shadow: var(--hshadow); }
.ls-circles { display: flex; justify-content: flex-end; gap: 12px; margin-top: -78px; }
.ls-circle { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--line); color: var(--text); cursor: pointer; padding: 0; }
.ls-circle:hover { border-color: var(--line-strong); }
.ls-circle.is-next { background: none; border-color: var(--line-strong); }
.ls-scroll { flex: 0 0 20px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; padding-bottom: 20px; }
.ls-scroll span { width: 1px; height: 56px; background: var(--line-strong); }
@media (max-width: 760px) { .ls-col { padding-top: 0 !important; } .ls-circles { margin-top: 0; } .ls-scroll { display: none; } }

/* Cards */
.ls-card { display: flex; flex-direction: column; gap: 16px; }
.ls-card-img { display: block; overflow: hidden; background: var(--bg2); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.ls-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ls-card-img:hover img { transform: scale(1.03); }
.ls-card-text { display: flex; flex-direction: column; gap: 6px; text-decoration: none; font-family: var(--mono); }
.ls-card-title { font-size: 17px; letter-spacing: .03em; text-transform: uppercase; }
.ls-card-meta { font-size: 13px; color: var(--muted); }
.ls-card .ls-btn { align-self: flex-start; }
.ls-sold { align-self: flex-start; font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid var(--line); }

/* Home bottom */
.ls-home-bottom { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; padding: 64px 0 110px; border-top: 1px solid var(--line); }
.ls-home-bottom > div { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ls-big { font-size: clamp(38px, 3.8vw, 58px); line-height: .95; text-transform: uppercase; }
.ls-sub { font-size: 24px; color: var(--muted); }
.ls-quote { margin: 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; }

/* Archive / pages */
.ls-page-head { position: relative; padding: 48px 0 32px; display: flex; flex-direction: column; gap: 24px; }
.ls-filters { display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.ls-filters a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.ls-filters a.is-current { border-bottom-color: var(--text); }
.ls-filters a:hover { color: var(--text); border-bottom-color: var(--line-strong); }
.ls-filters .ls-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.ls-check { width: 14px; height: 14px; border: 1px solid var(--line-strong); display: inline-block; }
.ls-check.is-on { background: var(--text); box-shadow: inset 0 0 0 3px var(--bg); }
.ls-section { padding: 24px 0 110px; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 64px 28px; }
.ls-steps { border-top: 1px solid var(--line); padding: 56px 0 110px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
.ls-step b { display: block; font-family: var(--mono); font-weight: 400; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.ls-step h3 { margin: 0 0 10px; font-weight: 400; font-size: 38px; line-height: 1; text-transform: uppercase; }
.ls-step p { margin: 0; font-size: 22px; line-height: 1.35; color: var(--muted); }

/* Single painting */
.ls-crumbs { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 24px 0 36px; }
.ls-crumbs a { text-decoration: none; }
.ls-crumbs-nav { display: flex; gap: 28px; }
.ls-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(36px, 5vw, 88px); align-items: start; }
.ls-main-img { aspect-ratio: 4 / 4.6; background: var(--bg2); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.ls-main-img img, .ls-sq-img img, .ls-portrait img { width: 100%; height: 100%; object-fit: cover; }
.ls-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.ls-extras figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ls-sq-img { aspect-ratio: 1 / 1; background: var(--bg2); overflow: hidden; }
.ls-extras figcaption { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.ls-sticky { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 24px; }
.ls-sticky > .ls-btn, .ls-stack > .ls-btn { align-self: flex-start; }
.ls-specs { margin: 0; border-top: 1px solid var(--line); }
.ls-spec { display: grid; grid-template-columns: 36% 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ls-spec dt { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ls-spec dd { margin: 0; font-size: 24px; }
.ls-spec-year { grid-template-columns: 80px 1fr; }
.ls-spec-year dd { font-size: 22px; }
.ls-story { font-size: 26px; line-height: 1.35; }
.ls-story p { margin: 0 0 .8em; }
.ls-story p:last-child { margin: 0; }

/* Rows: exhibitions & journal */
.ls-group { display: flex; flex-direction: column; margin-bottom: 56px; }
.ls-group-label { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.ls-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr) auto; gap: 8px 40px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
a.ls-row:hover { color: var(--text); }
a.ls-row:hover .ls-row-title { font-style: italic; }
.ls-row-date { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.ls-row-title { display: block; font-size: 36px; line-height: 1.05; }
.ls-row-sub { display: block; font-size: 21px; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.ls-tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line); white-space: nowrap; }
.ls-pager .nav-links { display: flex; gap: 20px; padding-top: 28px; font-family: var(--mono); font-size: 14px; }
@media (max-width: 640px) { .ls-row { grid-template-columns: 1fr; } .ls-tag { justify-self: start; } }

/* The story */
.ls-portrait { aspect-ratio: 4 / 5; background: var(--bg2); display: grid; place-items: center; text-align: center; padding: 0; overflow: hidden; }
.ls-portrait .ls-kicker { padding: 24px; }
.ls-prose { display: flex; flex-direction: column; gap: 18px; font-size: 23px; line-height: 1.45; color: var(--muted); }
.ls-prose p { margin: 0; }
.ls-prose p:first-child { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; color: var(--text); }

/* Contact & form */
.ls-contact-links { margin: 0; display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 14px; }
.ls-form-box { background: var(--bg2); padding: clamp(24px, 3vw, 44px); }
.ls-form { display: flex; flex-direction: column; gap: 26px; }
.ls-field { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ls-field input, .ls-field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; color: var(--text); font-family: var(--serif); font-size: 24px; letter-spacing: 0; text-transform: none; padding: 8px 0; }
.ls-field input:focus, .ls-field textarea:focus { outline: none; border-bottom-color: var(--text); }
.ls-field textarea { resize: vertical; min-height: 120px; }
.ls-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-chip { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
.ls-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ls-chip:has(input:checked) { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.ls-chip:has(input:focus-visible) { outline: 1px solid var(--line-strong); outline-offset: 3px; }
.ls-painting-field { display: none; }
.ls-form:has(input[value="buy"]:checked) .ls-painting-field { display: flex; }
.ls-form .ls-btn { align-self: flex-start; }
.ls-hp { position: absolute; left: -9999px; }
.ls-error { margin: 0; font-size: 20px; color: var(--text); padding: 12px 16px; border: 1px solid var(--line-strong); }
.ls-thanks h2 { margin: 0 0 14px; font-weight: 500; font-size: 60px; line-height: .95; text-transform: uppercase; }
.ls-thanks p { margin: 0; font-size: 26px; line-height: 1.3; }

/* Articles */
.ls-article { max-width: 820px; padding: 24px 0 110px; display: flex; flex-direction: column; gap: 32px; }
.ls-article-body { font-size: 23px; line-height: 1.55; }
.ls-article-body img { height: auto; }

/* Footer */
.ls-footer { border-top: 1px solid var(--line); }
.ls-footer .ls-wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; color: var(--muted); }
.ls-footer-brand { font-family: var(--serif); font-size: 24px; color: var(--text); text-transform: none; }
.ls-footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* WordPress core */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.wp-caption-text { font-family: var(--mono); font-size: 12px; color: var(--muted); }
