/* CobKit family palette. No remote fonts or images. */
:root {
  --corn: #f7c948;
  --corn-deep: #b7791f;
  --husk: #2f855a;
  --husk-dark: #22543d;
  --ink: #1f2933;
  --muted: #617080;
  --cream: #fff8df;
  --field: #f3ead0;
  --panel: #fffdf5;
  --line: #ded2aa;
  --shadow: 0 18px 45px rgba(74, 50, 12, .14);
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  background:
    radial-gradient(circle at 18% 10%, rgba(247, 201, 72, .28), transparent 26rem),
    linear-gradient(135deg, #fffaf0 0%, #f4edd5 45%, #edf7ed 100%);
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(247, 201, 72, .45);
  outline-offset: 2px;
}

.app-header {
  display: flex;
  align-items: center;
  padding: .8rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 253, 245, .92);
  border-bottom: 1px solid rgba(183, 121, 31, .25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  color: #233d21;
  font-weight: 900;
  background:
    linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, .42) 44% 56%, transparent 56%),
    var(--corn);
  border: 2px solid var(--husk);
}

.brand strong,
.brand small { display: block; }

.brand small,
.eyebrow,
.note,
.page-footer { color: var(--muted); }

.page {
  width: min(40rem, calc(100% - 2rem));
  margin: 1.5rem auto 2.5rem;
}

.eyebrow {
  margin: 0 0 .35rem;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 .6rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 .85rem;
  font-size: 1.2rem;
}

.lede { margin: 0 0 1.25rem; }

.card {
  padding: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1rem;
}

.control { min-width: 0; }

label {
  display: block;
  margin: 0 0 .4rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 2.5rem;
  padding: .5rem .65rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note { margin: .35rem 0 0; font-size: .95rem; }

.custom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.result-label {
  margin: 1rem 0 .35rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.result {
  margin: 0;
  padding: .85rem .95rem;
  background: var(--cream);
  border-left: 4px solid var(--husk);
  border-radius: var(--radius);
}

.page-footer {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto 2rem;
  font-size: .92rem;
}

@media (max-width: 36rem) {
  .fields { grid-template-columns: 1fr; }
}
