/* Palette matched to adambogren.com: warm cream paper + navy ink, with Tennessee
   orange (#FF8200) as the identity accent and KU blue (#0051BA) as the action colour.
   Orange carries the brand furniture (markers, rules, focus, selection); blue carries
   anything you click (primary button, links). Neither exact hex is placed as text on
   the paper or on itself — darker shades are used where contrast needs it. Single
   committed light theme, like the source site. */
:root {
  --paper: #f5f0e6;
  --paper-deep: #ece5d7;
  --surface: #fffdf8;
  --ink: #17243a;
  --ink-soft: #435269;
  --line: rgba(16, 43, 39, 0.18);
  --line-strong: rgba(16, 43, 39, 0.32);

  --orange: #ff8200; /* brand accent — rules, markers, focus, selection (not text) */
  --orange-ink: #9a4f00; /* orange used as small-label text (>= 5:1 on paper) */
  --orange-tint: #f7e7d3;

  --blue: #0051ba; /* action — primary button, links */
  --blue-deep: #003f91; /* primary button hover */
  --blue-tint: #e5edf8;

  --error: #b3000f;
  --error-bg: #fbe9e9;

  --radius: 12px;
  --maxw: 860px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

::selection { background: var(--orange); color: var(--surface); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px 80px; }

header.site { margin-bottom: 28px; }
header.site a.home {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
header.site a.home:hover { color: var(--blue); }

h1 {
  font-size: 27px;
  margin: 12px 0 8px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 11px;
  background: var(--orange);
  vertical-align: 0.09em;
}
h2 {
  font-size: 18px;
  margin: 30px 0 10px;
  padding-left: 13px;
  border-left: 3px solid var(--orange);
  line-height: 1.25;
}
p.lead { color: var(--ink-soft); margin: 0 0 8px; }

label {
  display: block;
  margin: 18px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
label .opt {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
}

textarea, input[type="text"] {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
textarea { min-height: 120px; }
textarea:focus, input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.counter { font-size: 12px; color: var(--ink-soft); text-align: right; margin-top: 4px; }
.counter.over { color: var(--error); font-weight: 700; }

button {
  font: inherit;
  font-weight: 750;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  min-height: 46px;
  background: var(--blue);
  color: var(--surface);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
button:hover:not(:disabled) { background: var(--blue-deep); transform: translateY(-1px); }
button:disabled { opacity: 0.5; cursor: default; }
button.secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line-strong);
}
button.secondary:hover:not(:disabled) { background: var(--blue-tint); transform: none; }

.actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.status { color: var(--ink-soft); font-size: 14px; }

.error {
  margin-top: 16px;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(179, 0, 15, 0.4);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
}

.result { margin-top: 26px; }
.result-head { display: flex; justify-content: space-between; align-items: center; }
pre.output {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange); /* callout accent, matching the source site's note/result rules */
  border-radius: var(--radius);
  padding: 16px 18px;
  font: inherit;
  font-size: 14px;
  margin-top: 8px;
}

.hint {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.hint ul { margin: 6px 0 0; padding-left: 20px; }
.hint li { margin: 3px 0; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
a.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease;
}
a.card:hover { transform: translateY(-3px); border-color: var(--orange); }
a.card h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
a.card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

footer.site {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}
[hidden] { display: none !important; }
