:root {
  color-scheme: light;
  --paper: #fffdf8;
  --background: #f7f2e8;
  --ink: #20231f;
  --muted: #6d7069;
  --green: #176b4a;
  --green-dark: #105139;
  --green-soft: #edf7f1;
  --gold: #b68a3a;
  --line: #e8dfd0;
  --shadow: 0 24px 60px rgba(78, 60, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, #fff 0, transparent 38%),
    var(--background);
}

.page {
  width: min(100%, 500px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bsd {
  margin: 0 0 10px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.card {
  padding: 30px 22px 24px;
  border: 1px solid rgba(182, 138, 58, 0.2);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.book {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid #dbc28d;
  border-radius: 20px;
  color: var(--gold);
  background: #fff9eb;
  font-size: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 10vw, 46px);
  line-height: 1.08;
}

.send-button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.message {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: right;
}

.message-title {
  margin: 0 0 13px;
  font-weight: 800;
  line-height: 1.55;
}

.message a {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 3px;
}

.message-link {
  display: inline-block;
}

.divider {
  height: 1px;
  margin: 17px 0;
  background: var(--line);
}

.link-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.link-row + .link-row {
  margin-top: 8px;
}

.link-row span {
  font-weight: 800;
}

.button-group {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.send-button {
  min-height: 62px;
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: white;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(23, 107, 74, 0.22);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
}

.send-button:hover {
  background: var(--green-dark);
}

.send-button:active {
  transform: scale(0.985);
}

.send-button.btn-secondary {
  min-height: 54px;
  background: var(--paper);
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
}

.send-button.btn-secondary:hover {
  background: #fff9eb;
  color: #a07730;
  border-color: #a07730;
}

.note,
.missing {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.missing {
  padding: 16px;
  border-radius: 16px;
  color: #7e5420;
  background: #fff4df;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 360px) {
  .card {
    padding-inline: 17px;
  }

  .link-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
