:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #6b6b65;
  --paper: #f6f6f3;
  --surface: #ffffff;
  --line: #deded8;
  --accent: #315f55;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body::before {
  display: none;
}

a {
  color: inherit;
}

.page-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0;
}

.contact-stack {
  width: 100%;
}

.panel-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.34);
  outline-offset: 3px;
}

.button-primary {
  color: #ffffff;
  background: var(--ink);
}

.button-primary:hover {
  background: #2a2a28;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: #bdbdb5;
  background: rgba(255, 255, 255, 0.48);
}

.button-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.email-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.email-line span {
  color: var(--ink);
  font-weight: 800;
}

.email-line a {
  text-decoration-color: rgba(17, 17, 17, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.footer-link {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-link a,
.text-link,
.policy-copy a {
  text-decoration-color: rgba(17, 17, 17, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact-panel {
  display: grid;
  gap: 22px;
  border: 1px solid #d8d8d1;
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.6);
}

.panel-email {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(17, 17, 17, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.policy-shell {
  align-items: center;
}

.policy-panel {
  width: 100%;
}

.policy-panel h1 {
  margin: -8px 0 0;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1;
}

.policy-copy {
  display: grid;
  gap: 18px;
}

.policy-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.policy-copy p:first-child {
  color: var(--ink);
  font-weight: 700;
}

.text-link {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 700;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 32px, 520px);
    padding: 44px 0;
  }
}

@media (max-width: 520px) {
  .actions,
  .button {
    width: 100%;
  }

  .button {
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
