/*
Theme Name: ArtsVizio
Theme URI: https://example.com/artsvizio
Author: ArtsVizio
Description: A pure, minimalist art gallery theme on a soft violet, blue and rose gradient. Includes Exhibitions, Open calls and a Magazine.
Version: 1.0.0
Requires at least: 5.8
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: artsvizio
*/

:root {
  --ink: #15132b;
  --quiet: #3d3a5c;
  --line: rgba(21, 19, 43, 0.28);
  --glass: rgba(255, 255, 255, 0.4);
  --violet: #bfb4d6;
  --blue: #a2b9e2;
  --rose: #e4b0cb;
  --pad: clamp(1.25rem, 3.5vw, 3rem);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  min-height: 100%;
  background-color: #b7b5dc;
  /* Brand gradient: a soft rose glow in the middle, lavender around it, periwinkle blue at the edges */
  background-image:
    radial-gradient(ellipse 95% 72vh at 50% 52vh, #e4b0cb 0%, #d1b3d6 34%, rgba(191, 180, 214, 0) 100%),
    linear-gradient(180deg, #a2b9e2 0%, #b3b6dd 38%, #c2b4d6 74%, #d9b2cd 100%);
  background-repeat: no-repeat;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; width: auto; height: auto; margin: 0;
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
}

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 0.5rem 2rem;
  max-width: var(--max); margin: 0 auto;
  padding: 1.5rem var(--pad);
}
.brand { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.custom-logo { max-height: 44px; width: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.site-nav a { color: var(--quiet); padding: 0.25rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav .current-menu-item a, .site-nav .current_page_item a { color: var(--ink); border-color: var(--ink); }

/* Menu icon: hidden on larger screens */
.nav-icon { display: none; }
.nav-check:focus-visible + .nav-icon { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Sections */
.section { padding-top: clamp(4rem, 9vw, 8rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.75rem 3rem; margin-bottom: 2rem; }
.section-head h2, .page-head h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-head p { max-width: 28rem; color: var(--quiet); margin: 0; }
.more { border-bottom: 1px solid var(--ink); padding-bottom: 1px; font-size: 0.9375rem; white-space: nowrap; }
.page-head { padding: clamp(2rem, 6vw, 5rem) 0 2.5rem; }
.page-head .intro { max-width: 36rem; color: var(--quiet); margin: 1rem 0 0; font-size: 1.125rem; }

/* Orbit: rotating image ring with the site name in the middle */
.orbit {
  --stage: min(88vh, 58rem);
  --base: min(100vw, calc(var(--stage) * 0.78));
  --r: calc(var(--base) * 0.44);
  --cw: min(calc(var(--base) * 0.26), 15rem);
  position: relative; overflow: hidden;
  height: var(--stage); min-height: 28rem;
  touch-action: pan-y; cursor: grab;
}
.orbit.is-dragging { cursor: grabbing; }
.orbit-spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; will-change: transform; }
.orbit-ring { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: orbit-turn 40s linear infinite; }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
.orbit-card {
  position: absolute; left: 0; top: 0;
  width: var(--cw); aspect-ratio: 2 / 3;
  background: var(--glass);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 12px 34px rgba(21, 19, 43, 0.14);
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1));
}
.orbit-card img, .orbit-card svg { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-select: none; user-select: none; }
.orbit-title {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0; text-align: center; pointer-events: none;
  font-family: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Times New Roman", serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.84;
  font-size: clamp(3.5rem, 23vw, 13rem);
  color: #000;
}

/* Hero */
.hero-media { background: var(--glass); overflow: hidden; }
.hero-media img, .hero-media svg { width: 100%; aspect-ratio: 5 / 2.4; object-fit: cover; }
.hero-text { padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 2rem; }
.hero { padding-top: clamp(3rem, 7vw, 6rem); }
.hero-text h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
.hero-text p { color: var(--quiet); margin: 0; }

/* Cards: exhibitions and magazine */
.shows, .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem clamp(1.25rem, 3vw, 2.5rem); }
.shows--two { grid-template-columns: 1fr 1fr; }
.card-media { display: block; background: var(--glass); overflow: hidden; }
.card-media img, .card-media svg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.025); }
.card-body { padding-top: 1rem; }
.card-cat { display: block; color: var(--quiet); font-size: 0.9375rem; margin-bottom: 0.35rem; }
.card-title { font-size: 1.375rem; line-height: 1.2; }
.card-title a { background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.card:hover .card-title a { background-size: 100% 1px; }
.card-excerpt { color: var(--quiet); margin: 0.6rem 0 0; }
.card-meta { color: var(--quiet); font-size: 0.9375rem; margin: 0.6rem 0 0; }

.card--lead { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.25rem, 3vw, 3rem); align-items: end; margin-bottom: 4rem; }
.card--lead .card-media img, .card--lead .card-media svg { aspect-ratio: 16 / 10; }
.card--lead .card-title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.card--lead .card-body { padding: 0 0 0.25rem; }
.card--lead .card-excerpt { font-size: 1.125rem; }

/* Magazine filter */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 3rem; padding: 0; list-style: none; font-size: 0.9375rem; }
.filters a { color: var(--quiet); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.filters a:hover, .filters .is-active a { color: var(--ink); border-color: var(--ink); }

/* Open calls */
.call { border-top: 1px solid var(--ink); }
.call:last-of-type { border-bottom: 1px solid var(--ink); }
.call summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 2rem; gap: 1rem 2rem; align-items: baseline;
  padding: 1.5rem 0;
}
.call summary::-webkit-details-marker { display: none; }
.c-title { font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
.c-kind, .c-date { color: var(--quiet); font-size: 0.9375rem; }
.c-left { color: var(--ink); }
.c-mark { position: relative; width: 1rem; height: 1rem; justify-self: end; align-self: center; }
.c-mark::before, .c-mark::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: var(--ink); transition: transform .25s ease; }
.c-mark::after { transform: rotate(90deg); }
.call[open] .c-mark::after { transform: rotate(0); }
.c-body { display: grid; grid-template-columns: 1.6fr 2fr; gap: 1.5rem 2rem; padding: 0 0 2.25rem; }
.c-text { max-width: 34rem; color: var(--quiet); }
.c-text > :last-child { margin-bottom: 0; }
.c-body dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.5rem 1rem; margin: 0; font-size: 0.9375rem; align-content: start; }
.c-body dt { color: var(--quiet); }
.c-body dd { margin: 0; }
.btn, .wp-block-button__link, input[type="submit"], .search-form button {
  display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 0;
  padding: 0.85rem 1.6rem; font: inherit; font-size: 0.9375rem; cursor: pointer; margin-top: 0.75rem;
}
.btn:hover, input[type="submit"]:hover { background: #2d2a52; }
.call.is-closed .c-title, .call.is-closed .c-kind, .call.is-closed .c-date { color: rgba(21, 19, 43, 0.5); }

/* Application form */
.apply { margin-top: clamp(3rem, 7vw, 5rem); max-width: 46rem; }
.apply h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.apply-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.apply-form p { margin: 0 0 1.5rem; }
.apply-form .wide { grid-column: 1 / -1; }
.apply-form label { display: block; font-size: 0.9375rem; color: var(--quiet); margin-bottom: 0.25rem; }
.apply-form input[type="text"], .apply-form input[type="email"], .apply-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  font: inherit; color: var(--ink); padding: 0.5rem 0;
}
.apply-form textarea { border: 1px solid var(--ink); padding: 0.75rem; resize: vertical; }
.apply-form input[type="file"] { font: inherit; color: var(--ink); max-width: 100%; padding: 0.5rem 0; }
.apply-form .hint { display: block; color: var(--quiet); font-size: 0.875rem; margin-top: 0.35rem; }
.apply-form .check label { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink); }
.apply-form .check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: #15132b; flex: none; }
.apply-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.apply-form .btn[disabled] { opacity: 0.6; cursor: wait; }
.file-msg { color: #8a1c3a; font-size: 0.875rem; }
.form-note { padding: 1rem 1.25rem; margin: 0 0 1.75rem; border: 1px solid var(--ink); background: rgba(255, 255, 255, 0.45); }
.form-note.is-error { border-color: #8a1c3a; color: #5c0f26; }
@media (max-width: 640px) { .apply-form .fields { grid-template-columns: 1fr; } }

/* Enquiry and contact forms */
.call .enquire { margin-top: 0.75rem; }
.call .enquire > summary.btn { display: inline-block; grid-template-columns: none; gap: 0; padding: 0.85rem 1.6rem; margin-top: 0; cursor: pointer; list-style: none; }
.call .enquire > summary.btn::-webkit-details-marker { display: none; }
.call .enquire[open] > summary.btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.enquire .apply-form { margin-top: 1.5rem; max-width: 34rem; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem clamp(2rem, 6vw, 5rem); max-width: 62rem; }
.contact-grid .apply-form { max-width: 40rem; }
.contact-side h3 { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; margin: 0 0 0.35rem; }
.contact-side p { color: var(--quiet); margin: 0 0 1.5rem; }
.contact-side a { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Services */
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); }
.dot.on { background: var(--ink); }
.gets { color: var(--ink); border-left: 1.5px solid var(--ink); padding-left: 1rem; margin: 1.25rem 0 0; }
.gets strong { display: block; font-weight: 500; font-size: 0.9375rem; margin-bottom: 0.15rem; }
.svc-group { margin-bottom: clamp(3rem, 7vw, 5rem); scroll-margin-top: 1rem; }
.svc-group .section-head h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); }

/* Articles and pages */
.entry { padding-bottom: 2rem; }
.entry-head { max-width: 52rem; padding: clamp(2rem, 6vw, 5rem) 0 2rem; }
.entry-head h1 { font-size: clamp(2.25rem, 5.5vw, 4.25rem); letter-spacing: -0.03em; }
.entry-meta { color: var(--quiet); margin: 1.25rem 0 0; font-size: 0.9375rem; }
.entry-cat { color: var(--ink); display: inline-block; margin-bottom: 1rem; font-size: 0.9375rem; border-bottom: 1px solid var(--ink); }
.entry-image { margin: 0 0 3rem; background: var(--glass); }
.entry-image img { width: 100%; max-height: 70vh; object-fit: cover; }
.entry-content { max-width: 40rem; font-size: 1.1875rem; line-height: 1.7; }
.entry-content h2 { font-size: 1.875rem; margin: 2.5rem 0 1rem; }
.entry-content h3 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
.entry-content a { border-bottom: 1px solid var(--ink); }
.entry-content blockquote { margin: 2.5rem 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--ink); font-size: 1.5rem; line-height: 1.35; letter-spacing: -0.01em; }
.entry-content blockquote p { margin: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content figure { margin: 2.5rem 0; }
.entry-content figcaption, .wp-caption-text { color: var(--quiet); font-size: 0.875rem; margin-top: 0.5rem; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.entry-content .alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { max-width: 40rem; margin-top: 2.5rem; color: var(--quiet); font-size: 0.9375rem; }
.entry-tags a { margin-right: 1rem; border-bottom: 1px solid var(--line); }
.post-navigation { max-width: 40rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 2rem; }
.post-navigation .nav-next { text-align: right; margin-left: auto; }
.post-navigation span { display: block; color: var(--quiet); }

/* Pagination, search, comments */
.pagination { margin-top: 4rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9375rem; }
.pagination .current { border-bottom: 1px solid var(--ink); }
.search-form { display: flex; gap: 0.75rem; max-width: 28rem; margin-top: 1.5rem; }
.search-form label { flex: 1; }
.search-field, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  font: inherit; color: var(--ink); padding: 0.6rem 0;
}
.search-form button { margin-top: 0; }
.comments { max-width: 40rem; margin-top: 4rem; }
.comments h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.comment-list .comment { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-metadata { color: var(--quiet); font-size: 0.875rem; }
.comment-form label { display: block; font-size: 0.9375rem; color: var(--quiet); margin-top: 1rem; }
.empty { color: var(--quiet); font-size: 1.125rem; }
.notice { border: 1px dashed var(--ink); padding: 1rem 1.25rem; color: var(--quiet); }

/* Footer */
.site-footer { margin-top: clamp(5rem, 10vw, 9rem); border-top: 1px solid var(--ink); padding: 3rem 0 3.5rem; }
.foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; font-size: 0.9375rem; }
.foot h3 { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; margin-bottom: 0.5rem; }
.foot p, .foot a { color: var(--quiet); margin: 0; }
.foot a:hover { color: var(--ink); }
.foot input[type="email"], .foot input[type="text"] { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; font: inherit; padding: 0.5rem 0; color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; color: var(--quiet); font-size: 0.875rem; }
.foot-base ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

@media (max-width: 900px) {
  .shows, .grid { grid-template-columns: 1fr 1fr; }
  .card--lead { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  /* Phones: the first three links stay visible, the rest open from the menu icon */
  .site-header { flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; padding-top: 1rem; padding-bottom: 1rem; }
  .brand, .site-header .custom-logo-link { flex: 1; }
  .nav-icon {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-right: -0.75rem; cursor: pointer;
  }
  .nav-icon span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  .nav-check:checked + .nav-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-check:checked + .nav-icon span:nth-child(2) { opacity: 0; }
  .nav-check:checked + .nav-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav { flex-basis: 100%; order: 3; }
  .site-nav ul { gap: 0.25rem 1.5rem; }
  .site-nav.has-more li:nth-child(n+4) { display: none; }
  .nav-check:checked ~ .site-nav.has-more li:nth-child(n+4) { display: list-item; }

  .shows, .shows--two, .grid { grid-template-columns: 1fr; }
  .hero-media img, .hero-media svg { aspect-ratio: 4 / 5; }
  .call summary { grid-template-columns: 1fr 2rem; gap: 0.25rem 1rem; padding: 1.25rem 0; }
  .c-title { grid-column: 1; grid-row: 1; }
  .c-mark { grid-column: 2; grid-row: 1; }
  .c-kind { grid-column: 1 / -1; grid-row: 2; }
  .c-date { grid-column: 1 / -1; grid-row: 3; }
  .c-body { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; gap: 2rem; }
  .entry-content { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-ring { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
