/* Art Explorers Studio: public site styles.
   Design system taken from the approved preview (cream, ink, peach shadow, sage buttons). */

@font-face { font-family: 'Nunito Sans'; src: url('../fonts/nunito-sans.woff2') format('woff2'); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('../fonts/nunito-sans-italic.woff2') format('woff2'); font-weight: 200 1000; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('../fonts/source-sans-3.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('../fonts/source-sans-3-italic.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/work-sans.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/work-sans-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('../fonts/lora.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('../fonts/lora-italic.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --ink: #34312f;
  --dark: #292725;
  --text-soft: #5b5652;
  --cream: #fbf8f3;
  --peach: #f4e4da;
  --sage: #e5ece3;
  --sage-hover: #d4e0d0;
  --sage-border: #c9d6c5;
  --green: #4f6b4c;
  --accent: #9a5f49;
  --line: #e9e1d8;
  --error: #a3392a;
  --font: 'Nunito Sans', 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1180px;
}
.font-nunito { --font: 'Nunito Sans', 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif; }
.font-avenir { --font: 'Avenir Next', Avenir, 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif; }
.font-source { --font: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif; }
.font-work { --font: 'Work Sans', 'Helvetica Neue', Arial, sans-serif; }
.font-lora { --font: Lora, Georgia, 'Times New Roman', serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--font); font-size: 1.0625rem; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--dark); font-family: inherit; line-height: 1.25; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--dark); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header (identical on every page) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .97); padding: 14px 5vw 0; }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: blur(8px); } }
.brand { display: flex; align-items: center; justify-content: center; gap: .45em; margin: 0 auto; width: max-content; max-width: 100%;
  font-size: clamp(1.75rem, 3.4vw, 2.7rem); font-weight: 500; letter-spacing: .02em; line-height: 1.1; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 1.55em; width: auto; flex: none; }
.brand-name { white-space: nowrap; }
.main-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px clamp(18px, 4vw, 48px); padding: 14px 12px 16px; border-bottom: 1px solid var(--line); }
.main-nav a { font-size: .95rem; letter-spacing: .025em; text-decoration: none; padding: 2px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--ink); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- Layout ---------- */
.site-main { max-width: var(--maxw); margin: 0 auto; padding: 52px 6vw 72px; min-height: 55vh; }
.page { max-width: 980px; margin: 0 auto; }
.page-narrow { max-width: 760px; margin: 0 auto; }
.page-title { font-size: calc(clamp(1.45rem, 2.3vw, 1.85rem) * var(--fs, 1)); font-weight: 400; margin: 0 0 26px; }

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { width: 100%; object-fit: cover; border-radius: 3px; box-shadow: 16px 16px 0 var(--peach); }
.photo-wide { max-width: 780px; margin: 0 auto 56px; }
.photo-wide img { aspect-ratio: 16 / 9; }
.photo-placeholder { aspect-ratio: 16 / 9; display: grid; place-content: center; text-align: center; background: var(--peach); color: var(--text-soft); border-radius: 3px; line-height: 1.5; }

/* ---------- Homepage hero ---------- */
.hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-photo img { aspect-ratio: 4 / 5; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; color: var(--accent); font-size: calc(.74rem * var(--fs, 1)); margin: 0 0 18px; line-height: 1.5; }
.hero-title { font-size: calc(clamp(1.45rem, 2.5vw, 2.05rem) * var(--fs, 1)); font-weight: 400; line-height: 1.2; margin: 0 0 22px; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-size: 1.2rem; font-weight: 600; margin: 1.6em 0 .5em; }
.prose h3, .prose h4 { font-size: 1.05rem; font-weight: 600; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.trial { margin: 0 0 1em; }
.closing { margin: 12px 0 0; line-height: 1.65; }
.actions { margin-top: 26px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 22px; background: var(--sage); color: var(--ink); border: 1px solid var(--sage-border); border-radius: 2px;
  font: inherit; font-size: .92rem; line-height: 1.4; letter-spacing: .02em; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--sage-hover); color: var(--dark); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Workshops ---------- */
.info-block { margin: 52px 0 0; }
.info-title { font-size: calc(1.15rem * var(--fs, 1)); font-weight: 600; margin: 0 0 14px; }
.page > .prose, .page > .trial, .page > .closing, .info-block { max-width: 760px; }
.info-list { margin: 0; display: grid; grid-template-columns: minmax(130px, max-content) 1fr; column-gap: 28px; row-gap: 6px; }
.info-list > div { display: contents; }
.info-list dt, .info-list dd { margin: 0; line-height: 1.6; }
.notes { margin-top: 32px; }
.workshops-cta { margin-top: 44px; }

/* ---------- Gallery (see gallery.css) ---------- */
.gallery-intro { margin-bottom: 26px; }
.gallery-empty { color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-details h2 { font-size: calc(1rem * var(--fs, 1)); font-weight: 600; margin: 22px 0 6px; }
.contact-details h2:first-child { margin-top: 0; }
.contact-details p, .contact-details ul { margin: 0; line-height: 1.7; }
.contact-details ul { list-style: none; padding: 0; }
.map-box { width: 100%; max-width: 460px; justify-self: end; }
.map-consent { aspect-ratio: 460 / 280; background: var(--peach); border-radius: 3px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 22px; font-size: .88rem; line-height: 1.55; }
.map-consent p { margin: 0; }
.map-frame { width: 100%; aspect-ratio: 460 / 280; border: 0; border-radius: 3px; display: block; }
.map-link { display: inline-block; margin-top: 10px; font-size: .92rem; }

/* ---------- Forms ---------- */
.form-section { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); max-width: 680px; }
.form-section h2 { font-size: calc(1.15rem * var(--fs, 1)); font-weight: 600; margin: 0 0 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .92rem; font-weight: 600; color: var(--dark); }
.field .hint { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #cfc4b8; border-radius: 3px; padding: 10px 12px; min-height: 44px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .88rem; line-height: 1.4; }
.field .consent, .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.55; font-weight: 400; color: var(--ink); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-left: 3px solid var(--error); background: #fbeeea; padding: 12px 16px; margin: 0 0 20px; line-height: 1.5; }
.form-success { border-left: 3px solid var(--green); background: var(--sage); padding: 16px 18px; margin: 0 0 20px; line-height: 1.6; }
.form-note { font-size: .85rem; color: var(--text-soft); line-height: 1.5; margin-top: 4px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.radio-row label { font-weight: 400; display: flex; align-items: center; gap: 8px; min-height: 36px; }
.radio-row input { width: 18px; height: 18px; min-height: 0; accent-color: var(--green); }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.1rem; font-weight: 600; margin: 1.8em 0 .5em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto; padding: 26px 6vw 34px; }
.footer-nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 26px; font-size: .86rem; color: var(--text-soft); }
.footer-nav a { color: var(--text-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-nav button { font: inherit; background: none; border: 0; color: var(--text-soft); padding: 0; cursor: pointer; }
.footer-nav button:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Consent banner ---------- */
.consent-banner { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .12); padding: 18px 20px; font-size: .9rem; line-height: 1.55; border-radius: 4px; }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0 0 12px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { padding: 9px 16px; min-height: 40px; }

/* ---------- Editable text styles (chosen in the admin, brand palette only) ---------- */
/* Size modifiers scale an element relative to its own design size (headings stay headings). */
.fs-s { --fs: .875; } .fs-m { --fs: 1.12; } .fs-l { --fs: 1.3; } .fs-xl { --fs: 1.55; }
:where(.fs-s, .fs-m, .fs-l, .fs-xl) { font-size: calc(1em * var(--fs)); }
.c-ink { color: var(--ink); } .c-dark { color: #1f1d1b; } .c-accent { color: var(--accent); } .c-green { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  html { scroll-padding-top: 12px; }
  .site-header { position: static; padding-top: 12px; }
  .brand { font-size: clamp(1.45rem, 6.6vw, 1.9rem); }
  .main-nav { gap: 4px 20px; padding: 10px 6px 12px; }
  .site-main { padding: 28px 6vw 56px; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 10; box-shadow: 9px 9px 0 var(--peach); }
  .photo img { box-shadow: 9px 9px 0 var(--peach); }
  .photo-wide { margin-bottom: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-box { justify-self: stretch; max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-nav > span { order: 3; flex-basis: 100%; text-align: center; }
  .info-list { column-gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .consent-banner, .btn { display: none; }
}
