/* Ruganintwali Patrick — site styles
   Colours come from the work: bone-white wall, charcoal sculpture, rust from the metal tines. */
/* Fonts are hosted with the site (SIL Open Font License, see fonts/) */
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat Brush'; src: url('../fonts/caveat-brush-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../fonts/caveat-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --stripe: #000000;
  --ground: #ECE9E3;
  --ink: #161513;
  --muted: #5E5A54;
  --body: #3D3A35;
  --rule: #C9C4BA;
  --card: #E2DED6;
  --img-bg: #DCD8D0;
  --accent: #8C4A2B;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stripe);           /* the black side stripes */
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ground); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* The light column in the middle; black shows on both sides */
.page { max-width: var(--max); margin: 0 auto; background: var(--ground); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { padding-left: 40px; padding-right: 40px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.accent { color: var(--accent) !important; }
.eyebrow { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- Header ---------- */
.site-header { padding: 28px 40px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.wordmark { font-family: 'Caveat Brush', cursive; font-size: 36px; line-height: 1; white-space: nowrap; text-decoration: none; color: var(--ink); }
.main-nav { display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.main-nav a { text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Text links with the rolling label (like Southern Guild) ---------- */
.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--sans); font-size: 14px; color: var(--ink); text-decoration: none; }
.cta .lbl { display: block; overflow: hidden; height: 1.2em; line-height: 1.2; }
.cta .lbl span { display: block; transition: transform .4s ease; }
.cta:hover .lbl span, .cta:focus-visible .lbl span { transform: translateY(-1.2em); }
.cta svg { transition: transform .4s ease; flex: none; }
.cta:hover svg { transform: translateX(3px); }
.cta.back:hover svg { transform: translateX(-3px); }
.cta.down:hover svg { transform: translateY(3px); }
.cta.added { color: var(--accent); }

/* ---------- Hero / photo stage ---------- */
.hero { position: relative; height: 680px; background: var(--img-bg); overflow: hidden; }
.hero .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.hero .slide.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); opacity: 0; transition: opacity .4s ease; pointer-events: none; z-index: 1; }
.hero .half { position: absolute; top: 0; bottom: 0; width: 50%; padding: 0; border: 0; background: transparent; cursor: none; z-index: 2; }
.hero .half.l { left: 0; } .hero .half.r { right: 0; }
.hero .half:focus-visible { outline: 2px solid #fff; outline-offset: -8px; }
.hero .follow { position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 3; color: #fff; display: none; align-items: center; gap: 8px; font-size: 17px; white-space: nowrap; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero .follow.show { display: flex; }
@media (hover: hover) { .hero:hover::after { opacity: 1; } }
/* Touch screens have no pointer to follow: show small arrows at the sides instead */
@media (hover: none) {
  .hero .half { cursor: pointer; }
  .hero .half::after { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 26px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
  .hero .half.l::after { content: "‹"; left: 14px; }
  .hero .half.r::after { content: "›"; right: 14px; }
}
.hero-caption { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.hero-caption em { font-family: var(--serif); font-size: 19px; color: var(--ink); }

/* ---------- About ---------- */
.about { padding-top: 96px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 64px; }
.about-intro { flex: 1 1 380px; min-width: 0; }
.about-name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: .95; letter-spacing: -.01em; }
.about-intro .muted { margin: 24px 0 0; font-size: 15px; }
.about-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text p { margin: 0; color: var(--body); }
.about-text .statement { font-family: var(--serif); font-size: 30px; line-height: 1.3; color: var(--ink); }
.bio-more p { margin: 0; color: var(--body); }

/* ---------- Works grid ---------- */
.works { padding-top: 32px; padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: 40px; }
.section-head h2, .rule-head, .contact h2, .studio h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.05; }
.section-head p { margin: 0; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 56px 32px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.wk { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--img-bg); }
.wk img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s ease; }
.wk .view { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; opacity: 0; transition: opacity .4s ease; color: #fff; display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.wk:hover img, .wk:focus-visible img { transform: scale(1.05); filter: brightness(.65); }
.wk:hover .view, .wk:focus-visible .view { opacity: 1; }
.card-text { display: flex; flex-direction: column; gap: 2px; }
.card-text p { margin: 0; font-size: 14px; color: var(--muted); }
.card-title { font-family: var(--serif); font-size: 24px !important; line-height: 1.2; color: var(--ink) !important; }
.card .cta { align-self: flex-start; }
.load-more-row { display: flex; justify-content: center; margin-top: 64px; }

/* ---------- Enquiry ---------- */
.contact { border-top: 1px solid var(--rule); }
.contact-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; }
.contact-intro { flex: 1 1 360px; min-width: 0; }
.contact-intro p { margin: 20px 0 0; color: var(--body); }
.contact-intro .contact-lines { margin-top: 28px; font-size: 15px; color: var(--ink); }
.selected-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.selected-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; border-bottom: 1px solid var(--rule); padding: 6px 0; }
.selected-list button { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; min-height: 32px; }
.contact-form { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-content: start; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--body); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { min-height: 48px; border: 1px solid #8F897F; background: transparent; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; }
.contact-form input[aria-invalid="true"] { border-color: #A3341F; }
.form-note { margin: 0; font-size: 14px; color: var(--body); min-height: 1.2em; }
.btn-solid { justify-self: start; min-height: 48px; padding: 0 36px; border: 0; background: var(--ink); color: var(--ground); font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.btn-solid:hover { background: var(--accent); }

/* ---------- Studio ---------- */
.studio { background: var(--ink); color: var(--ground); margin-top: 24px; }
.studio-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.studio-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.studio-head p { margin: 0; max-width: 460px; color: #B9B3A8; }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.studio-grid figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.studio-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.studio-grid figcaption { font-size: 14px; color: #B9B3A8; }

/* ---------- Exhibitions / Press ---------- */
.listing { padding-top: 48px; padding-bottom: 120px; }
.rule-head { margin: 0 0 32px !important; border-top: 1px solid var(--ink); padding-top: 20px; }
.show-row { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.show-row .kind { flex: 0 0 120px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.show-row .show-title { flex: 1 1 300px; font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.show-row .muted { flex: 1 1 200px; font-size: 15px; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.press-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--card); min-height: 200px; }
.kind-muted { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.press-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.push { margin-top: auto; }

/* ---------- Artwork page ---------- */
.artwork { padding-bottom: 48px; }
.artwork .back { margin-bottom: 8px; }
.artwork-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.artwork-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.artwork-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.05; }
.artwork-info .muted { margin: 0; font-size: 15px; }
#art-medium { margin-top: 16px; }
.artwork-actions { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; justify-content: space-between; margin-top: 20px; }
.artwork-buttons { display: flex; flex-direction: column; gap: 4px; }
.sketch { width: 170px; }
.sketch:empty { display: none; }
.sketch svg { width: 100%; height: auto; }
.artwork-photo { flex: 999 1 560px; min-width: 0; }
.stage { height: min(calc(100vh - 190px), 760px); min-height: 420px; background: transparent; }
.stage::after { display: none; }
.stage .follow { mix-blend-mode: difference; text-shadow: none; }
.stage-box { position: relative; height: 100%; margin: 0 auto; }
.stage-box img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease; }
.stage.measured .stage-box { height: calc(100% - 56px); max-width: 100%; }

/* measurement lines drawn over the photo */
.measure { position: absolute; inset: 0; pointer-events: none; z-index: 1; --m: var(--accent); }
.dimv { position: absolute; border-left: 1.5px solid var(--m); }
.dimv::before, .dimv::after { content: ""; position: absolute; left: -8px; width: 15px; border-top: 1.5px solid var(--m); }
.dimv::before { top: 0; } .dimv::after { bottom: 0; }
.dimh { position: absolute; border-top: 1.5px solid var(--m); }
.dimh::before, .dimh::after { content: ""; position: absolute; top: -8px; height: 15px; border-left: 1.5px solid var(--m); }
.dimh::before { left: 0; } .dimh::after { right: 0; }
.ring { position: absolute; border: 1.5px dashed var(--m); border-radius: 50%; }
.lead { position: absolute; width: 2%; border-top: 1.5px solid var(--m); }
.dimlbl { position: absolute; background: rgba(236,233,227,.92); color: var(--ink); font-size: 13px; line-height: 1.4; padding: 2px 8px; white-space: nowrap; }

/* ---------- Biography / CV lists ---------- */
.list-head { margin: 40px 0 4px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.show-row .year { flex: 0 0 110px; font-size: 15px; color: var(--muted); }
.bio-more { display: flex; flex-direction: column; gap: 16px; }
.bio-sub { margin: 12px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.bio-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--body); }
.bio-list span { display: inline-block; width: 56px; color: var(--muted); }
a.press-card { text-decoration: none; color: var(--ink); transition: background .3s ease; }
a.press-card:hover { background: #D8D3C9; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9B3A8; }
.footer-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ground); text-decoration: none; }

/* ---------- Hamburger menu (shown on phones only) ---------- */
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); }
.menu-bars { position: relative; display: block; width: 24px; height: 16px; margin: 0 auto; }
.menu-bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .3s ease, opacity .2s ease, top .3s ease; }
.menu-bars span:nth-child(1) { top: 0; } .menu-bars span:nth-child(2) { top: 7px; } .menu-bars span:nth-child(3) { top: 14px; }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 760px) {
  .wrap, .site-header { padding-left: 20px; padding-right: 20px; }
  .site-header { padding-top: 16px; padding-bottom: 16px; flex-wrap: nowrap; position: relative; }
  .wordmark { font-size: 28px; }
  /* menu folds into the hamburger button */
  .menu-btn { display: block; flex: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; flex-direction: column; gap: 0; padding: 4px 20px 16px; background: var(--ground); border-bottom: 1px solid var(--rule); font-size: 13px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-top: 1px solid var(--rule); }
  /* main pictures: shown whole, not cropped */
  .hero:not(.stage) { height: auto; min-height: 0; aspect-ratio: 4 / 3; background: var(--ground); }
  .hero:not(.stage) .slide { object-fit: contain; }
  .about { padding-top: 56px; gap: 32px; }
  .about-text .statement { font-size: 24px; }
  .section-head h2, .rule-head, .contact h2, .studio h2 { font-size: 40px; }
  .work-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 36px 16px; }
  .card-title { font-size: 20px !important; }
  .contact-inner, .studio-inner { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .artwork-title { font-size: 34px; }
  .stage { height: 70vh; min-height: 320px; }
  .dimlbl { font-size: 11px; padding: 1px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
