:root {
  color-scheme: light;
  --ink: #292b24;
  --muted: #65675d;
  --paper: #f7f5ef;
  --green: #364a38;
  --line: #dedfd4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, sans-serif;
}

header {
  max-width: 1100px;
  margin: auto;
  padding: 30px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  font: 700 29px Georgia, serif;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--ink);
}

.brand span {
  color: var(--green);
}

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

main {
  max-width: 650px;
  margin: 35px auto;
  padding: 0 20px;
}

.card {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px #292b2406;
}

h1 {
  font: normal 40px/1.15 Georgia, serif;
  letter-spacing: -1px;
  margin: 14px 0 22px;
}

p {
  color: var(--muted);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
}

form {
  margin-top: 28px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 7px;
}

input,textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #bfc4b6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

input:focus-visible,textarea:focus-visible,a:focus-visible,button:focus-visible {
  outline: 3px solid #8ba982;
  outline-offset: 3px;
}

button,.button {
  display: inline-block;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font: 600 15px/1.6 system-ui, sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  margin-top: 22px;
}

.secondary {
  background: #e9ede4;
  color: var(--green);
}

.text-button {
  background: transparent;
  color: var(--green);
  margin-top: 8px;
}

.small,.optional {
  font-size: 13px;
  font-weight: 400;
}

.error {
  background: #fff0ec;
  padding: 12px;
  border-radius: 8px;
  color: #923b2d;
}

.notice {
  padding: 12px 18px;
  background: #e6eee0;
  border-radius: 8px;
  color: var(--green);
}

a {
  color: var(--green);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

.handle {
  font-size: 14px;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 20px;
}

@media(max-width:600px) {
  header {
    padding: 22px;
  }
  .tagline {
    display: none;
  }
  main {
    margin: 15px auto;
  }
  .card {
    padding: 26px;
  }
  h1 {
    font-size: 34px;
  }
}

.app-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; padding: 10px 20px; border-block: 1px solid var(--line); font-size: 14px; }
main.wide { max-width: 980px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { margin-bottom: 12px; }
h2 { font: normal 27px/1.3 Georgia, serif; margin: 0 0 10px; overflow-wrap: anywhere; }
h2 a { text-decoration: none; }
.entry { margin: 18px 0; padding: 25px; }
.entry p { margin: 8px 0; }
.compact { width: auto; white-space: nowrap; margin-top: 0; }
.search-form { display: grid; grid-template-columns: 2fr 1fr auto; align-items: end; gap: 18px; padding: 24px; margin-bottom: 28px; }
.search-form label { margin-top: 0; }
select { width: 100%; padding: 12px; border: 1px solid #bfc4b6; border-radius: 8px; background: white; font: inherit; color: var(--ink); }
select:focus-visible { outline: 3px solid #8ba982; outline-offset: 3px; }
fieldset { padding: 0; margin: 24px 0 0; border: 0; min-width: 0; }
legend { font-size: 14px; font-weight: 600; }
.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 20px; }
.rating { color: var(--green); font-size: 21px; font-weight: 700; white-space: nowrap; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.badge { display: inline-block; background: #edf0e8; color: var(--green); border-radius: 5px; font-size: 12px; padding: 4px 9px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 24px; margin: 26px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; }
.danger { color: #923b2d; }
.danger-button { background: #923b2d; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 4px 0 12px; }
@media (max-width: 650px) {
  .search-form { grid-template-columns: 1fr; }
  .page-heading { flex-direction: column; align-items: stretch; }
  .score-grid { grid-template-columns: 1fr; }
}
h1 { overflow-wrap: anywhere; }
.row > * { min-width: 0; }

.actions { align-items: center; }
.actions form { margin: 0; }
.actions details { flex-basis: 100%; }
summary { cursor: pointer; color: var(--green); }
[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }
.section-heading { margin-top: 32px; }
