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

html {
  -webkit-text-size-adjust: 100%;
  background: #fefefe;
}

body {
  margin: 0;
  color: #141414;
  background: #fefefe;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #141414;
  outline-offset: 3px;
}

/* —— Homepage (single viewport) —— */

.home-page {
  overflow: hidden;
  height: 100dvh;
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100dvh;
  max-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  overflow: hidden;
}

.home__core {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2.5dvh, 1.5rem);
  width: 100%;
  min-height: 0;
  text-align: center;
}

.home__logo {
  width: min(88vw, clamp(14rem, 42vw, 32rem));
  max-height: min(52dvh, 28rem);
  height: auto;
  object-fit: contain;
}

.home__slogan {
  margin: 0;
  font-size: clamp(0.8125rem, 2.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.home__foot {
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.home__contact {
  font-size: clamp(0.6875rem, 1.8vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.home__contact:hover {
  text-decoration: underline;
}

/* —— Contact —— */

.contact-page {
  min-height: 100dvh;
}

.contact {
  width: min(100%, 26rem);
  margin: 0 auto;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

.contact__back {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
  text-decoration: none;
}

.contact__back:hover {
  text-decoration: underline;
}

.contact__mark {
  width: min(72vw, 9rem);
  margin-bottom: 1.75rem;
}

.contact__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contact__email {
  margin: 0 0 2rem;
  font-size: 1rem;
}

.contact__email a {
  text-decoration: underline;
}

.contact__form {
  position: relative;
  display: grid;
  gap: 1rem;
}

.contact__field {
  display: grid;
  gap: 0.35rem;
}

.contact__field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  color: #141414;
  font: inherit;
}

.contact__field textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact__submit {
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid #141414;
  border-radius: 0;
  background: #141414;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.contact__submit:hover {
  background: #000;
}

.contact__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact__turnstile {
  min-height: 0;
}

.contact__turnstile:empty {
  display: none;
}

.contact__status a {
  color: inherit;
}

.contact__status {
  margin: 0;
  font-size: 0.875rem;
  color: #141414;
}

.contact__status[hidden] {
  display: none;
}

.contact__status--error {
  color: #5c0000;
}
