:root {
  color-scheme: light;
  --ink: #241a14;
  --muted: #74675d;
  --paper: #fffaf1;
  --panel: #fffdf8;
  --line: #eadfce;
  --char: #4c2516;
  --barrel: #8b4a24;
  --wax: #b6252b;
  --gold: #d99b35;
  --green: #3b7b58;
  --shadow: 0 18px 55px rgba(60, 31, 16, .14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(139, 74, 36, .12), transparent 32rem),
    linear-gradient(220deg, rgba(182, 37, 43, .08), transparent 30rem),
    var(--paper);
}

a {
  color: var(--char);
  font-weight: 750;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(76, 37, 22, .12);
  background: rgba(255, 250, 241, .92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff7e8;
  background: linear-gradient(145deg, var(--char), var(--barrel));
  box-shadow: inset 0 -8px 12px rgba(0, 0, 0, .18);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 24px;
  align-items: stretch;
  min-height: 430px;
}

.hero-copy,
.panel,
.card,
.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, .9);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 64px);
}

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 20%, rgba(217, 155, 53, .32), transparent 28%),
    linear-gradient(150deg, #32170f, #7b371d 52%, #c78936);
  box-shadow: var(--shadow);
}

.hero-art::before {
  position: absolute;
  inset: 18% 34% 12%;
  content: "";
  border-radius: 28px 28px 16px 16px;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 238, 195, .45) 20% 24%, transparent 26%),
    linear-gradient(#2a130c 0 11%, #c78332 11% 18%, #502615 18% 100%);
  box-shadow: 0 30px 55px rgba(0, 0, 0, .32);
}

.hero-art::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  content: "Invite. Vote. Pledge. Pour.";
  color: rgba(255, 250, 241, .86);
  font-weight: 850;
}

.eyebrow {
  color: var(--wax);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-top: .5rem;
  font-size: clamp(2.25rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.actions,
.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.button,
button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 0;
  border-radius: 8px;
  padding: .72rem 1rem;
  color: #fffaf1;
  background: var(--char);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.button:hover,
button:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.button.secondary,
button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff8eb;
}

.button.wax,
button.wax {
  background: var(--wax);
}

.button.ghost,
button.ghost {
  color: var(--char);
  background: transparent;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.panel,
.card,
.stat {
  padding: 22px;
}

.card.media {
  overflow: hidden;
  padding: 0;
}

.card-photo {
  display: grid;
  min-height: 170px;
  place-items: center;
  color: rgba(255, 250, 241, .82);
  background: linear-gradient(145deg, #3b1b10, #895026);
}

.card-photo img,
.proposal-photo {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .92rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .32rem .62rem;
  color: var(--char);
  background: #f3e4cd;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chip.green {
  color: #17412c;
  background: #dcefe3;
}

.progress {
  overflow: hidden;
  height: 11px;
  border-radius: 999px;
  background: #eadcc8;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7c6ad;
  border-radius: 8px;
  padding: .78rem .85rem;
  color: var(--ink);
  background: #fffefa;
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
}

.check {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.notice {
  border: 1px solid #d9c28c;
  border-radius: 8px;
  padding: .85rem 1rem;
  color: #5b3a11;
  background: #fff2c8;
}

.error {
  border-color: #e0a1a4;
  color: #711a20;
  background: #ffe4e6;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: .75rem;
  text-align: left;
  vertical-align: top;
}

.muted {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffaf1;
}

.votes {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.icon-button {
  min-width: 42px;
  padding: .55rem .7rem;
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy {
    padding: 28px;
  }
}
