@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('/fonts/EBGaramond-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  background-color: #ffffff;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  position: relative;
  overflow-x: hidden;
}

/* Faint figure of Christ, fixed and vertically centred behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/img/christus.svg') center center / auto 92% no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

main {
  max-width: 600px;
  width: 100%;
  text-align: center;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  margin-bottom: 0.35em;
  /* offset the right-hand letter-spacing so the title stays optically centred */
  text-indent: 0.3em;
}

/* The collective wordmark — same face + styling as the footer, only larger.
   <wbr> markers in the markup let it wrap at the interpuncts on narrow screens. */
.wordmark {
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  letter-spacing: 0.14em;
  line-height: 1.4;
  margin-bottom: 2.75rem;
}

.about {
  font-size: 1.12em;
  line-height: 1.85;
  max-width: 30rem;
  margin: 0 auto 3rem;
  text-align: justify;
  hyphens: auto;
}

.about p + p {
  margin-top: 1.2em;
}

.about .signum {
  display: block;
  text-align: center;
  font-style: italic;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-top: 1.6em;
}

.contact-link {
  margin-bottom: 3rem;
}

.contact-link a {
  color: inherit;
  text-decoration: none;
  font-variant: small-caps;
  font-size: 1.25em;
  letter-spacing: 0.18em;
  border-bottom: 1px solid rgba(26, 26, 26, 0.35);
  padding-bottom: 0.1em;
}

.contact-link a:hover {
  border-bottom-color: rgba(26, 26, 26, 0.8);
}

footer {
  flex-shrink: 0;
  font-family: 'EB Garamond', serif;
  text-align: center;
  padding-top: 2rem;
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.15em;
  opacity: 0.5;
}

/* ---- Contact page ---- */

.form-wrap {
  max-width: 34rem;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.form-wrap h1 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  margin-bottom: 2.5rem;
}

label {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.95em;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  color: #1a1a1a;
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.3);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1.75rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: rgba(26, 26, 26, 0.7);
}

textarea {
  min-height: 11rem;
  resize: vertical;
  line-height: 1.6;
}

/* Honeypot — hidden from humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

button {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-variant: small-caps;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.5);
  border-radius: 2px;
  padding: 0.5rem 1.75rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

button:hover:not(:disabled) {
  background: #1a1a1a;
  color: #ffffff;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.back a {
  color: inherit;
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.back a:hover {
  text-decoration: underline;
}

.status {
  min-height: 1.5em;
  margin-top: 1.5rem;
  text-align: center;
  font-style: italic;
  letter-spacing: 0.03em;
}

.status.error {
  color: #8a2222;
}
