:root {
  color: #3a403c;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --ink: #3a403c;
  --leaf: #5f6d5c;
  --paper: rgba(255, 255, 255, 0.5);
  --line: rgba(58, 64, 60, 0.22);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    calc(4.6rem + env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  color: var(--ink);
  background-color: #d5ddd4;
  background-image: linear-gradient(
    180deg,
    #eef2ee 0% 11%,
    #e3ebe4 11% 22%,
    #d7e1d6 22% 36%,
    #e6eee5 36% 48%,
    #d3ddd2 48% 61%,
    #e0e8df 61% 73%,
    #c9d4c8 73% 86%,
    #b7c4b6 86% 100%
  );
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}

h1, p { margin: 0; font-weight: 400; }

a { color: inherit; }

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.contact-page {
  width: min(34rem, 100%);
  margin: 0 auto;
}

.head { text-align: center; }

.mark-wrap {
  display: block;
  width: min(7.5rem, 34vw);
  margin: 0 auto 0.4rem;
}

.mark {
  width: 100%;
  height: auto;
  display: block;
}

h1 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 450;
  letter-spacing: 0.16em;
}

.role {
  margin-top: 0.45rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.intro {
  margin-top: 1.6rem;
  line-height: 1.65;
  text-align: center;
  letter-spacing: 0.01em;
}

.card {
  margin-top: 1.6rem;
  padding: 1.4rem 1.3rem 1.2rem;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(58, 64, 60, 0.08);
}

.form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.7;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  background: rgba(255, 255, 255, 0.8);
}

.field [aria-invalid="true"] { border-color: #a0564a; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.send {
  justify-self: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--leaf);
  color: #f4f6f3;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
}

.send:hover:not(:disabled) { background: #55634f; }
.send:disabled { opacity: 0.6; cursor: default; }

.status {
  min-height: 1.2em;
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.status.bad { color: #8a4a40; }

.done {
  text-align: center;
  line-height: 1.6;
}

.namaste {
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.back {
  display: inline-block;
  margin-top: 1rem;
  letter-spacing: 0.06em;
}

.direct {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.direct a { text-decoration: none; }
.direct a:hover,
.direct a:focus-visible { text-decoration: underline; }

@media (max-width: 640px) {
  .intro { margin-top: 1.2rem; font-size: 0.95rem; }
  .card { margin-top: 1.2rem; padding: 1.15rem 1rem 1rem; }
}
