:root {
  --paper: #f4f1ea;
  --ink: #2e3134;
  --muted: #5c636a;
  --blue: #4f7fa6;
  --brown: #a0602f;
  --card: #fffcf8;
  --line: #ddd6cb;
  --rain: #3e6d92;
  --miss: #e6e1d8;
  --danger: #8c3a32;
  --shadow: 0 1px 2px rgba(46, 49, 52, 0.05), 0 10px 28px rgba(46, 49, 52, 0.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--blue); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.wrap {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

header.bar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav a, nav button.linkish {
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

nav a.nav-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 8px 14px;
}

nav a.nav-cta:hover { color: var(--paper); background: #1c1e21; }

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: 40px; margin: 28px 0 12px; }
h2 { font-size: 26px; margin: 28px 0 10px; }

.kicker {
  margin: 36px 0 0;
  color: var(--brown);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16em;
  font-size: clamp(36px, 4.6vw, 56px);
  margin-top: 10px;
}

.lede { font-size: 19px; max-width: 38rem; color: #3d4348; }

.muted { color: var(--muted); }
.small { font-size: 14px; }

.card, .panel, .note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0 8px;
}

.grid .card h2 { margin-top: 0; font-size: 24px; }
.grid .card p:last-child { margin-bottom: 0; }

ol.steps {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

ol.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow);
  counter-increment: step;
}

ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 22px;
}

#example { scroll-margin-top: 88px; }

.example-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 28px;
  align-items: start;
}

.example-board h3 {
  margin: 18px 0 6px;
  font-size: 28px;
}

.example-board .month h3 { margin-top: 0; font-size: 20px; }
.example-board .note p { margin: 0; }
.example-board ul { margin: 8px 0 0; padding-left: 1.1rem; }

.priceband {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 40px 0 8px;
  padding: 32px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
}

.priceband h2 { margin: 0 0 8px; }
.priceband p { margin: 0 0 8px; max-width: 38rem; color: #e7e2d8; }
.priceband .amount { color: var(--paper); }
.priceband strong {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 48px;
  font-weight: normal;
  letter-spacing: -0.03em;
}
.priceband .button { background: var(--paper); color: var(--ink); }
.priceband .button:hover { color: var(--ink); }

.price { border-top: 3px solid var(--brown); }
.price strong {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 40px;
  font-weight: normal;
}

button, .button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .button:hover { color: var(--paper); }

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

button.secondary:hover, a.secondary:hover { color: var(--ink); background: #fff; }
button.danger { background: var(--danger); }
button.danger:hover { color: var(--paper); }

label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="file"], input[type="date"], input[type="number"], textarea, select {
  width: min(100%, 520px);
  background: #fff;
  color: var(--ink);
  border: 1px solid #d3ccc0;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}
textarea { display: block; min-height: 140px; }

input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 127, 166, 0.18);
}

body.narrow main { max-width: 460px; padding-top: 8px; }
body.narrow form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 22px 22px;
  box-shadow: var(--shadow);
}
body.narrow input[type="text"],
body.narrow input[type="email"],
body.narrow input[type="password"] { width: 100%; }

body.prose main { max-width: 42rem; }
body.prose h1 { font-size: 36px; }

.stack { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.metrics span {
  min-width: 140px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.metrics strong {
  display: block;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 32px;
  font-weight: normal;
  line-height: 1;
  margin-bottom: 4px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 650; background: #faf7f2; }
td.num, th.num { text-align: right; }
tbody tr:hover td { background: #fbf9f5; }

.flash, .error {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 16px 0;
}
.flash { background: #efe8dc; border-left: 3px solid var(--brown); }
.error { background: #f8ece8; border-left: 3px solid var(--danger); }

.legend { display: flex; gap: 16px; margin: 18px 0; font-size: 14px; color: var(--muted); }
.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -2px;
  border: 1px solid var(--line);
}
.swatch.rain { background: var(--rain); border-color: var(--rain); }
.swatch.dry { background: var(--card); }
.swatch.miss { background: var(--miss); }

.month { margin: 18px 0 24px; }
.month h2 { font-size: 18px; margin-bottom: 8px; }
.cal {
  display: grid;
  grid-template-columns: repeat(7, 40px);
  gap: 5px;
}
.cal span, .cal i {
  display: block;
  width: 40px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-style: normal;
  font-size: 13px;
  border-radius: 8px;
}
.dow { color: var(--muted); height: auto; font-size: 11px; letter-spacing: 0.04em; }
.day.rain { background: var(--rain); color: #f6f1e8; }
.day.dry { background: var(--card); border: 1px solid var(--line); }
.day.miss { background: var(--miss); color: var(--muted); }
.day.out { color: #b7b1a6; }

.field-points { margin: 8px 0 0; padding-left: 1.2rem; }
.field-points li { margin: 6px 0; }
.field-shots {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}
.phone {
  background: var(--ink);
  border-radius: 28px;
  padding: 14px 12px 18px;
  color: var(--paper);
  box-shadow: var(--shadow);
}
.phone .screen {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 14px;
}
.phone .screen h3 { margin: 4px 0 8px; font-size: 22px; }
.phone .screen .kicker { margin-top: 0; }
.phone .screen ul { margin: 8px 0; padding-left: 1.1rem; }
.alert-card {
  background: #e7f0f6;
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
}
.alert-card h3 { margin: 0 0 8px; }
.alert-card p { margin: 0 0 8px; }
.radar-map {
  height: 420px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #d5dde3;
}
.radar-map img { max-width: none; }
.leaflet-div-icon.job-pin {
  background: transparent;
  border: 0;
}
.job-pin i {
  display: block;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4f1ea;
  border: 3px solid #a0602f;
  box-shadow: 0 0 0 2px #2e3134;
}
.leaflet-tooltip.job-pin-tip {
  background: #2e3134;
  color: #f4f1ea;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: none;
}
.leaflet-tooltip.job-pin-tip::before {
  border-right-color: #2e3134;
}
input[type="range"] { width: min(100%, 420px); margin: 8px 0 16px; }
.photos { list-style: none; padding: 0; display: grid; gap: 16px; }
.photos img { width: min(100%, 420px); border-radius: 12px; display: block; }
.day.has-photo { outline: 2px solid var(--brown); outline-offset: -3px; }

.danger-zone {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

footer.site {
  margin-top: 56px;
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

footer.site nav { gap: 16px; margin-bottom: 8px; }
footer.site p { margin: 0; }

@media (max-width: 800px) {
  .wrap { width: min(1040px, calc(100% - 32px)); }
  h1, .hero h1 { font-size: 34px; }
  .grid, ol.steps { grid-template-columns: 1fr; }
  .priceband { flex-direction: column; align-items: flex-start; padding: 24px; }
  .example-board { grid-template-columns: 1fr; }
  .field-shots { grid-template-columns: 1fr; }
  .radar-map { height: 320px; }
  .bar-inner { min-height: 64px; flex-wrap: wrap; }
  .brand img { height: 32px; }
  nav { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  nav a, nav button.linkish { white-space: nowrap; font-size: 14px; }
  nav a.nav-cta { padding: 6px 10px; font-size: 13px; }
  .cal { grid-template-columns: repeat(7, minmax(0, 1fr)); width: min(100%, 320px); }
  .cal span, .cal i { width: auto; }
}
