:root {
  color-scheme: light;

  /* Kingstone Consultancy brand palette */
  --chalk: #f5f2ea;
  --gunnera: #123f0a;
  --peat: #0c1712;
  --squall: #3c4f63;
  --stone: #a79e8d;
  --leaf: #4a7015;
  --crocosmia: #c97f1e;
  --rosehip: #ad5a3d;

  --panel-bg: #efeae0;
  --border: #d9d2c2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--peat);
  background: var(--chalk);
}

.accent {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 10;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--squall);
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--chalk);
}

header .logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

header h1 {
  margin: 0 0 2px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--gunnera);
}

header .accent {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
}

header .desc {
  margin: 0;
  color: var(--squall);
  font-size: 13px;
}

main {
  display: grid;
  grid-template-columns: 1fr 320px;
  height: calc(100vh - 78px);
}

#map {
  height: 100%;
}

#panel {
  border-left: 1px solid var(--border);
  background: var(--panel-bg);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#panel section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

#panel section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

#panel h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 10;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--squall);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--peat);
}

.field input[type="number"] {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--chalk);
  color: var(--peat);
}

.field input[type="number"]:focus {
  outline: 2px solid var(--gunnera);
  outline-offset: 1px;
}

.field[hidden] {
  display: none;
}

label:not(.field) {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--peat);
}

.hint {
  margin: 0;
  font-size: 13px;
  color: var(--squall);
}

.muted {
  color: var(--squall);
  font-size: 13px;
}

#generateBtn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--crocosmia);
  color: var(--chalk);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#generateBtn:hover:not(:disabled) {
  background: #b06f18;
}

#generateBtn:disabled {
  background: var(--stone);
  cursor: not-allowed;
}

#status.error {
  color: var(--rosehip);
}

#status.ok {
  color: var(--leaf);
}
