:root {
  --bg: #f6f1e8;
  --paper: rgba(255, 252, 246, 0.92);
  --ink: #1f1d1a;
  --muted: #6f665b;
  --accent: #d65a31;
  --accent-dark: #8f2f12;
  --line: rgba(31, 29, 26, 0.12);
  --shadow: 0 24px 60px rgba(63, 40, 12, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 90, 49, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(95, 135, 108, 0.2), transparent 24%),
    linear-gradient(135deg, #efe3d2 0%, #f6f1e8 45%, #ebe1cf 100%);
}

.page-shell {
  width: min(1600px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.page-layout {
  display: grid;
  gap: 28px;
}

.top-layout {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(260px, 1fr) minmax(560px, 1.7fr);
  align-items: start;
}

.board-wrap {
  display: block;
}

.hero {
  max-width: 540px;
}

.eyebrow,
.section-label,
.meta-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.hero h1,
.section-head h2,
.board-header h2 {
  margin: 0;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.9rem);
  max-width: 12ch;
  line-height: 1.04;
}

.hero-copy,
.section-head p {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.board-card,
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.board-card {
  padding: 28px;
}

.board-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.board-meta strong,
button {
  display: block;
}

.leader-link {
  display: block;
  margin: 22px 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: transparent;
}

#leader-image {
  width: 100%;
  height: auto;
  display: block;
}

.text-link {
  display: block;
  overflow-wrap: anywhere;
  color: var(--accent-dark);
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  transition: color 160ms ease;
}

.text-link:hover {
  color: var(--accent);
}

.board-footer {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.destination-link {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 8px;
}

.board-meta {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.report-row {
  padding-top: 12px;
}

.report-button {
  padding: 0;
  border-radius: 0;
  color: var(--muted);
  background: none;
  box-shadow: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.69rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.report-button:hover {
  transform: none;
  box-shadow: none;
  color: var(--accent-dark);
}

.form-card {
  padding: 24px 24px 18px;
}

.form-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  align-items: start;
}

.takeover-form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

input::placeholder {
  color: rgba(31, 29, 26, 0.16);
}

input:focus {
  outline: 2px solid rgba(214, 90, 49, 0.28);
  border-color: rgba(214, 90, 49, 0.4);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 16px 22px;
  font: inherit;
  font-weight: 700;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #d65a31, #8f2f12);
  box-shadow: 0 18px 30px rgba(143, 47, 18, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

#checkout-button {
  margin-top: 14px;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(143, 47, 18, 0.28);
}

button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.form-message {
  min-height: 0;
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
}

@media (max-width: 900px) {
  .top-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .board-footer {
    flex-direction: column;
  }

  .board-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 12px, 1600px);
    padding-top: 20px;
  }

  .board-card,
  .form-card {
    padding: 18px;
    border-radius: 22px;
  }

  .board-header,
  .board-meta {
    flex-direction: column;
  }
}
