/*
Theme Name: Saskia Baetens Sculpture
Theme URI: https://rbstudio.co.nz
Author: RB Studio
Author URI: https://rbstudio.co.nz
Description: One-page custom theme for the Saskia Baetens sculpture site. Converted from a static HTML design — the opening name treatment, the warehouse photograph and the Formspree enquiry form.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Unlicense
Text Domain: saskia-baetens
*/

:root {
  --paper: #ffffff;
  --ink: #000000;
  --grey: #767676;      /* secondary text, 4.5:1 on white */
  --hair: #d9d9d9;      /* field rules */
  --wash: #f4f4f4;     /* placeholder photograph */

  --display: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

/* ---------- Opening: the name is the page ---------- */
.opening {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 0 var(--gutter);
}

.opening h1 {
  grid-row: 2;
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.4rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: 0.3em;
  text-indent: 0.3em;          /* balances the trailing tracking so the name sits truly centred */
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  animation: arrive 1.6s cubic-bezier(.2, .6, .2, 1) both;
}

.opening p {
  grid-row: 3;
  align-self: start;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--grey);
  text-align: center;
}

.opening p a {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .35s ease;
}
.opening p a:hover { background-size: 0 1px; background-position: 100% 100%; }

@keyframes arrive {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Warehouse photograph ---------- */
.warehouse {
  margin: 0;
  padding: 0 var(--gutter);
}

.warehouse img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--wash);
}

.warehouse figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--grey);
}

/* ---------- Enquiry ---------- */
.enquire {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 8vw, 9rem);
  padding: clamp(6rem, 16vw, 15rem) var(--gutter) clamp(5rem, 10vw, 9rem);
  scroll-margin-top: 2rem;
}

.enquire h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.enquire .lede {
  margin: 1.5rem 0 0;
  max-width: 26ch;
  color: var(--grey);
}

form { max-width: 40rem; }

.field { display: block; margin-bottom: 2.25rem; }

.field span {
  display: block;
  font-size: 0.8125rem;
  color: var(--grey);
  margin-bottom: 0.25rem;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 300;
  transition: border-color .25s ease;
  appearance: none;
}

.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }

.field input:hover,
.field textarea:hover { border-bottom-color: var(--grey); }

.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--ink); }

/* Honeypot for spam bots: hidden from people and assistive tech */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
button:hover { background: var(--paper); color: var(--ink); }
button[disabled] { opacity: .5; cursor: progress; }

.status {
  margin: 1.5rem 0 0;
  min-height: 1.6em;
  font-size: 0.9375rem;
  color: var(--ink);
}

/* ---------- Footer ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0 var(--gutter) 2rem;
  font-size: 0.8125rem;
  color: var(--grey);
}

footer .contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

footer .contact a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}
footer .contact a[href^="mailto"] {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s ease;
}
footer .contact a[href^="mailto"]:hover { background-size: 100% 1px; }

footer .contact svg { display: block; width: 1.25rem; height: 1.25rem; }

.note {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 0.8125rem;
  color: var(--grey);
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .warehouse img { aspect-ratio: 4 / 5; }
  .enquire { grid-template-columns: 1fr; gap: 3rem; }
  .enquire .lede { max-width: 34ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening h1 { animation: none; }
  * { transition: none !important; }
}
