/* ==========================================================================
   Wareing Design Ltd — shared styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #111111;
  --paper: #fbfaf8;
  --line: #dcdad5;
  --muted: #6f6c66;
  --gap: clamp(16px, 3vw, 32px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px var(--gap);
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
}

.site-header .wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.site-header .wordmark span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.site-header nav {
  display: flex;
  gap: 22px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-header nav a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
  border-bottom-color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  padding: 8vh var(--gap) 6vh;
  max-width: 900px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

/* ---------- image stack (homepage) ---------- */

.stack {
  display: flex;
  flex-direction: column;
}

.stack figure {
  margin: 0;
  border-top: 1px solid var(--line);
}

.stack .frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eeece7;
}

.stack .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #a9a69f;
  background:
    repeating-linear-gradient(45deg, #f1efea 0 12px, #eae7e0 12px 24px);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

.placeholder svg {
  width: 34px;
  height: 34px;
  opacity: 0.6;
}

figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px var(--gap) 40px;
  font-size: 12.5px;
  color: var(--muted);
}

figcaption .cap-title {
  color: var(--ink);
  font-weight: 500;
}

figcaption .cap-index {
  font-variant-numeric: tabular-nums;
}

/* ---------- generic content page ---------- */

.page {
  padding: 6vh var(--gap) 10vh;
  max-width: 720px;
}

.page h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0 0 28px;
}

.page p {
  font-size: 15.5px;
  margin: 0 0 20px;
  max-width: 58ch;
}

.page p.lede {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink);
  max-width: 40ch;
  margin-bottom: 34px;
}

.services {
  list-style: none;
  margin: 36px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.services li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.services li span:first-child {
  font-weight: 500;
}

.services li span:last-child {
  color: var(--muted);
  max-width: 34ch;
  text-align: right;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 8px 0 40px;
  background: #eeece7;
}

/* ---------- team ---------- */

.team-heading {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 48px 0 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 20px;
  max-width: 640px;
}

.team-member {
  margin: 0;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eeece7;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member figcaption {
  padding: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  display: block;
}

.team-member figcaption span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* ---------- contact ---------- */

.contact-block {
  margin: 30px 0;
}

.contact-block h2 {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 8px;
}

.contact-block a,
.contact-block p {
  font-size: 17px;
  margin: 0;
}

.contact-block a {
  border-bottom: 1px solid var(--line);
}

.contact-block a:hover {
  border-bottom-color: var(--ink);
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 26px var(--gap) 40px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---------- contact form ---------- */

.contact-form {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 480px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.form-row label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.form-row input,
.form-row textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  resize: vertical;
  transition: border-color 0.2s ease;
}

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

.form-row textarea {
  min-height: 110px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.form-submit {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 14px 30px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 16px;
}

.form-error {
  font-size: 12.5px;
  color: #a3352b;
  margin-top: 12px;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-success {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  max-width: 480px;
}

/* ---------- video stack ---------- */

.stack video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view-toggle {
  padding: 0 var(--gap) 8px;
  display: flex;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.view-toggle a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.view-toggle a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (max-width: 640px) {
  .site-header {
    padding: 18px 16px;
  }
  .site-header nav {
    gap: 14px;
  }
}
