:root {
  color-scheme: light;
  --ink: #292622;
  --muted: #746e67;
  --paper: #fffdf9;
  --canvas: #f4eee6;
  --line: #e6ddd2;
  --accent: #a65f53;
  --accent-dark: #874a40;
  --green: #4f7057;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(214, 177, 157, 0.34), transparent 28rem),
    radial-gradient(circle at 90% 88%, rgba(167, 187, 164, 0.26), transparent 25rem),
    var(--canvas);
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.portal {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 470px);
  border: 1px solid rgba(230, 221, 210, 0.92);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.94);
  padding: clamp(30px, 7vw, 48px);
  box-shadow: 0 24px 70px rgba(67, 52, 39, 0.1);
  text-align: center;
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid #322f2b;
  border-radius: 52% 48% 45% 55%;
  background: #f9f3eb;
  box-shadow: inset 0 0 0 5px #ebe0d3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 9vw, 47px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.intro {
  max-width: 340px;
  margin: 15px auto 29px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.actions {
  display: grid;
  gap: 11px;
}

button,
.site-link {
  display: inline-flex;
  width: 100%;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

button:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button.secondary {
  border-color: #b8c9ba;
  background: #edf4ed;
  color: var(--green);
}

button.secondary:hover:not(:disabled) {
  border-color: #91ad96;
  background: #e3efe4;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.site-link {
  border: 1px solid var(--line);
  background: #faf6f0;
  color: var(--ink);
}

.site-link:hover {
  border-color: #cec0b1;
  background: #f5eee5;
  transform: translateY(-1px);
}

.status {
  min-height: 42px;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.status.success {
  color: var(--green);
}

.status.error {
  color: #9a443d;
}

button:focus-visible,
.site-link:focus-visible {
  outline: 3px solid rgba(166, 95, 83, 0.25);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .portal {
    align-items: end;
    padding: 14px;
  }

  .card {
    border-radius: 24px;
    padding: 34px 23px 28px;
  }
}
