:root {
  --bg: #efe6d8;
  --panel: rgba(255, 251, 245, 0.86);
  --text: #172325;
  --muted: #60706d;
  --accent: #c75c36;
  --accent-dark: #a64d2d;
  --border: rgba(23, 35, 37, 0.11);
  --shadow: 0 28px 90px rgba(63, 42, 22, 0.17);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(199, 92, 54, 0.12), transparent 32%),
    linear-gradient(315deg, rgba(23, 35, 37, 0.1), transparent 28%),
    var(--bg);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.background-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.7;
}

.orb-a {
  top: -80px;
  left: -40px;
  width: 280px;
  height: 280px;
  background: rgba(199, 92, 54, 0.18);
}

.orb-b {
  right: -60px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  background: rgba(23, 35, 37, 0.1);
}

.card {
  position: relative;
  width: min(760px, 100%);
  padding: 42px 36px 26px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.view,
.message {
  animation: fade-in 220ms ease;
}

.hidden {
  display: none;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(199, 92, 54, 0.18);
}

h1 {
  margin: 18px 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 600px;
  margin: 18px 0 0;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.access-form {
  margin-top: 26px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-input,
.text-area,
.preview-box {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font: inherit;
}

.text-input {
  padding: 14px 16px;
}

.workspace-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 26px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.workspace-panel {
  min-width: 0;
}

.text-area {
  min-height: 260px;
  resize: vertical;
  padding: 16px;
}

.preview-box {
  min-height: 260px;
  padding: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.actions a,
button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.secondary-button {
  color: var(--text);
  background: rgba(23, 35, 37, 0.08);
}

.profile-panel {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(23, 35, 37, 0.05);
}

.label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  margin-top: 6px;
  font-size: 1rem;
  word-break: break-word;
}

.message {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(199, 92, 54, 0.12);
  color: var(--accent-dark);
  font-weight: 600;
}

.footer-credit {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .card {
    padding: 34px 22px 22px;
  }

  .actions {
    flex-direction: column;
  }

  .workspace-meta,
  .workspace-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .actions a,
  button {
    width: 100%;
  }
}
