
:root{
  --bg: #f1ead4;
  --panel: #eee5c8;
  --text: #2b2620;
  --muted: #7f766b;
  --accent: #6b5436;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

header.site-header{
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.navbar{
  display:flex;
  align-items:center;
  gap: 20px;
  padding: 14px 0;
}

.brand{
  font-weight: 700;
  letter-spacing:.2px;
  margin-right:auto;
}

nav a{
  display:inline-block;
  text-decoration:none;
  color: var(--text);
  background: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #a98a64;
  box-shadow: 0 2px 0 rgba(0,0,0,.05) inset;
  transition: transform .07s ease;
}
nav a:hover{ transform: translateY(-1px); }
nav a[aria-current="page"]{
  background: #f7f1de;
  border-color:#5e472c;
  box-shadow: 0 0 0 3px rgba(107,84,54,.15);
}

main{
  padding: 40px 0 80px;
}

.panel{
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.8vw, 36px);
  box-shadow: var(--shadow);
}

h1{
  margin: 0 0 8px 0;
  font-size: clamp(26px, 3.2vw, 40px);
}

.lead{
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.form-row{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media (min-width: 860px){
  .form-row{ grid-template-columns: 1.2fr .6fr 1.2fr; }
}

.input, .btn{
  appearance:none;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--white);
  font-size: 16px;
  outline: none;
}

.btn{
  width: auto;
  display: inline-flex;
  align-items:center;
  gap:10px;
  background: #fff;
  border: 2px solid #a98a64;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.05) inset;
}
.btn.primary{
  background: #5e472c;
  color: #fff;
  border-color: #5e472c;
}
.btn.ghost{ background:#fff; }
.btn.small{ padding:10px 14px; border-radius: 12px; }

.helper{ font-size:.9rem; color: var(--muted); margin-top: 6px; }

.card{
  background:#fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.stack{
  display: grid;
  gap: 12px;
}

.badge{
  display:inline-block;
  padding:2px 10px;
  border-radius: 999px;
  background:#efe7d2;
  font-size:.8rem;
  margin-left: 6px;
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* Searchable select */
.select{
  position: relative;
}
.select .list{
  position: absolute;
  z-index: 5;
  left: 0; right: 0; top: calc(100% + 6px);
  background:#fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow:auto;
  border: 1px solid rgba(0,0,0,.06);
}
.select .item{
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.select .item:last-child{ border-bottom:0; }
.select .item:hover{ background:#f5efe0; }

footer{
  padding: 40px 0;
  color: var(--muted);
  text-align:center;
}
