:root {
  color-scheme: light;
  --ink: #1d2925;
  --muted: #536159;
  --paper: #f7f6f0;
  --white: #fffefa;
  --green: #26483e;
  --bright: #cae689;
  --line: #cbd1c7;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-size: 17px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #90b954;
  outline-offset: 3px;
}

.site-header,
.site-footer {
  min-height: 78px;
  padding: 0 clamp(22px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header {
  background: var(--paper);
}
.brand {
  color: var(--green);
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.header-link {
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.header-link span {
  margin-left: 5px;
}

.hero {
  min-height: 525px;
  padding: 66px clamp(22px, 8.5vw, 128px) 74px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.9fr);
  gap: 7vw;
  align-items: center;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
}
.hero-copy {
  max-width: 560px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  color: #a9d294;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  font-weight: 700;
}
.hero h1,
.request-intro h2,
.how-it-works h2,
.admin-heading h1 {
  margin: 18px 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero h1 {
  max-width: 570px;
  font-size: clamp(42px, 5.3vw, 68px);
  line-height: 1.08;
}
.hero h1 span {
  color: var(--bright);
}
.hero-description {
  max-width: 440px;
  margin: 0 0 29px;
  color: #edf2ed;
  font-size: 18px;
  line-height: 1.75;
}
.button {
  min-height: 52px;
  border: 0;
  border-radius: 5px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.button-light {
  background: var(--bright);
  color: var(--ink);
}
.button-dark {
  background: var(--green);
  color: var(--white);
}
.button-outline {
  border: 2px solid #65766b;
  background: var(--white);
  color: var(--green);
}

.hero-art {
  height: 335px;
  position: relative;
  isolation: isolate;
}
.art-sun {
  position: absolute;
  z-index: -1;
  top: 18px;
  right: 15%;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #436356;
}
.appliance {
  position: absolute;
  bottom: 33px;
  width: 150px;
  height: 256px;
  border: 7px solid #ebe9da;
  border-radius: 12px;
  background: #f5f3e8;
  box-shadow: 12px 12px 0 #1c3a32;
}
.fridge {
  right: 42%;
}
.fridge div {
  position: absolute;
  inset: 55% 0 auto;
  border-top: 5px solid #dedccd;
}
.fridge i,
.washer i {
  position: absolute;
  right: 12px;
  top: 32px;
  width: 4px;
  height: 40px;
  border-radius: 5px;
  background: #b8b6a7;
}
.washer {
  right: 4%;
  width: 165px;
  height: 189px;
}
.washer-window {
  position: absolute;
  top: 47px;
  left: 22px;
  width: 105px;
  aspect-ratio: 1;
  border: 8px solid #d6d5c7;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b8d7be, #5a8070 68%);
}
.washer i {
  top: 17px;
  height: 5px;
  width: 5px;
  right: 24px;
  box-shadow:
    -12px 0 #b8b6a7,
    -24px 0 #b8b6a7;
}
.art-ground {
  position: absolute;
  z-index: -1;
  bottom: 26px;
  left: 0;
  right: -15%;
  height: 4px;
  background: #91ae89;
}
.art-note {
  position: absolute;
  bottom: 0;
  right: 4%;
  color: #cbd9c2;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.how-it-works {
  padding: 62px clamp(22px, 11vw, 164px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  align-items: center;
  background: #eeefe6;
}
.how-it-works .eyebrow,
.request-intro .eyebrow,
.admin-heading .eyebrow {
  color: #4c633c;
}
.how-it-works h2,
.request-intro h2 {
  margin: 11px 0 0;
  font-size: clamp(27px, 3vw, 38px);
}
.how-it-works > p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.how-it-works > .shop-note {
  grid-column: 1 / -1;
  max-width: 760px;
  color: var(--ink);
}

.request-section {
  padding: 88px clamp(22px, 12vw, 176px);
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1fr);
  gap: clamp(48px, 9vw, 130px);
  background: var(--white);
}
.request-intro {
  max-width: 390px;
}
.request-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.response-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 36px;
}
.response-note > span {
  color: #779b54;
  font-size: 20px;
}
.response-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.response-note strong {
  color: var(--ink);
  font-size: 16px;
}
.request-form,
#login-form {
  display: grid;
  gap: 11px;
}
.request-form label,
#login-form label {
  margin-top: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}
.request-form label span {
  color: #8a3c2e;
}
.request-form label small {
  color: var(--muted);
  font-weight: 400;
}
.request-form input,
.request-form select,
.request-form textarea,
#login-form input,
.status-row select {
  width: 100%;
  min-height: 52px;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.request-form textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row > div {
  display: grid;
  gap: 11px;
}
.request-form .button {
  justify-self: start;
  margin-top: 9px;
}
.form-message {
  min-height: 18px;
  margin: 4px 0 0;
  color: #a14135;
  font-size: 15px;
  line-height: 1.5;
}
.form-message.success {
  color: #24563a;
}
.privacy-note {
  margin: 0;
  color: #536159;
  font-size: 14px;
}

.site-footer {
  min-height: 85px;
  background: #eeefe6;
  flex-wrap: wrap;
}
.visit-count {
  flex: 1 0 100%;
  text-align: left;
}
.site-footer > span,
.site-footer > a:last-child {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.site-footer .brand {
  color: var(--green);
  font-size: 16px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.phone-icon {
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  min-height: 14px;
  max-height: 14px;
  flex: 0 0 14px;
}
.admin-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.admin-body > .site-header,
.admin-body > .site-footer {
  flex: 0 0 auto;
}
.admin-main {
  width: min(940px, calc(100% - 44px));
  margin: 24px auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}
.admin-heading {
  margin-bottom: 20px;
}
.admin-heading h1 {
  margin: 8px 0;
  font-size: clamp(38px, 5vw, 52px);
}
.admin-heading > p:last-child {
  color: var(--muted);
  font-size: 17px;
}
.login-panel {
  max-width: 420px;
  padding: 34px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}
.login-panel h2 {
  margin: 0 0 21px;
  font:
    700 24px "Avenir Next",
    Avenir,
    "Segoe UI",
    sans-serif;
}
.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dashboard-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dashboard-toolbar p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.commission-settings {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 180px) auto;
  align-items: center;
  gap: 8px 12px;
  margin: 8px 0 12px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}
.commission-settings > label {
  font-weight: 700;
}
.commission-settings > input,
.sold-price-input {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.commission-help,
#commission-message {
  grid-column: 1 / -1;
  margin: 0;
}
.commission-help {
  color: var(--muted);
  font-size: 14px;
}
.commission-settings .form-message {
  min-height: 0;
}
.commission-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.commission-page > .site-header,
.commission-page > .site-footer {
  flex: 0 0 auto;
}
.commission-main {
  width: min(940px, calc(100% - 44px));
  margin: 24px auto;
  flex: 1 1 auto;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}
.commission-access-message {
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.commission-report {
  margin-top: 20px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}
.commission-report > summary {
  padding: 14px 16px;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
.commission-report-content {
  padding: 0 16px 16px;
}
.commission-report-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
}
.commission-report-controls > div {
  display: grid;
  gap: 5px;
}
.commission-report-controls label {
  font-size: 14px;
  font-weight: 700;
}
.commission-report-controls input {
  min-height: 48px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.commission-report-summary {
  margin: 14px 0;
  font-weight: 700;
}
.commission-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.commission-report-actions .button {
  min-height: 48px;
}
.commission-report-actions .button:disabled {
  cursor: not-allowed;
}
.commission-report-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 12px;
}
.commission-report-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(190px, 1.5fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
}
.commission-report-row > span:nth-child(2) {
  color: var(--muted);
}
.commission-paid {
  color: #24563a;
  font-weight: 700;
}
.commission-unpaid {
  color: #8a3c2e;
  font-weight: 700;
}
.commission-report-empty {
  margin: 0;
  color: var(--muted);
}
.inquiry-search-label {
  margin: 8px 0;
  font-size: 16px;
  font-weight: 700;
}
.inquiry-search {
  width: 100%;
  min-height: 52px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.dashboard:not(.hidden) {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.inquiry-list {
  display: grid;
  gap: 14px;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 8px 0;
}
.inquiry-card {
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.inquiry-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.inquiry-card-heading h2 {
  margin: 0;
  font:
    700 22px "Avenir Next",
    Avenir,
    "Segoe UI",
    sans-serif;
}
.inquiry-card-heading time {
  color: var(--muted);
  font-size: 14px;
}
.inquiry-card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 17px 0;
}
.inquiry-card dl > div {
  min-width: 120px;
}
.inquiry-card dt {
  color: #536159;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.inquiry-card dd {
  margin: 4px 0 0;
  font-size: 16px;
}
.inquiry-card dd a {
  color: var(--green);
}
.inquiry-message {
  padding: 16px;
  border-radius: 4px;
  background: #f4f4ec;
  color: #303d36;
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notes-row {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 8px;
}
.notes-editor {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
}

.notes-message {
  padding: 14px;
  border-radius: 4px;
  background: #f4f4ec;
  color: #48564e;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
}
.status-row label {
  font-size: 16px;
  font-weight: 700;
}
.status-row select {
  width: auto;
  min-width: 160px;
  min-height: 48px;
}
.status-row .button {
  min-height: 48px;
}
.sold-details {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 220px);
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: #f7f6f0;
}
.sold-details > label {
  font-weight: 700;
}
.commission-display {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}
.button-remove {
  margin-left: auto;
  margin-right: 5%;
  border: 1px solid #d8aaa2;
  background: transparent;
  color: #923d32;
}
.empty-state {
  padding: 36px;
  border: 2px dashed #9ca89c;
  border-radius: 5px;
  color: var(--muted);
  text-align: center;
  font-size: 17px;
}
.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 57px;
  }
  .hero-art {
    width: min(100%, 450px);
    height: 280px;
    margin: 0 auto;
    transform: scale(0.9);
    transform-origin: top center;
  }
  .how-it-works,
  .request-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .how-it-works {
    padding-top: 46px;
    padding-bottom: 46px;
  }
  .request-section {
    padding-top: 59px;
    padding-bottom: 60px;
  }
  .response-note {
    margin-top: 20px;
  }
  .site-footer {
    padding-top: 17px;
    padding-bottom: 17px;
    flex-wrap: wrap;
  }
  .site-footer > span {
    order: 3;
    width: 100%;
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .header-link {
    line-height: 1.35;
    max-width: 100%;
  }
  .admin-body,
  .commission-page {
    display: block;
  }
  .admin-main,
  .commission-main {
    width: min(940px, calc(100% - 32px));
    margin: 16px auto 32px;
    padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  }
  .admin-heading h1 {
    font-size: clamp(28px, 8vw, 52px);
  }
  .login-panel {
    max-width: none;
    padding: 24px 20px;
  }
  .dashboard-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .dashboard-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .dashboard-toolbar-actions .button {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
    padding: 12px 16px;
    min-height: 48px;
    height: auto;
  }
  .dashboard:not(.hidden) {
    flex: none;
    min-height: auto;
  }
  .inquiry-list {
    flex: none;
    min-height: auto;
    overflow-y: visible;
    overscroll-behavior: auto;
    padding: 0;
  }
  .inquiry-card {
    padding: 20px 16px;
  }
  .commission-settings {
    grid-template-columns: 1fr;
  }
  .commission-settings .button {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
    padding: 12px 16px;
    height: auto;
  }
  .commission-help,
  #commission-message {
    grid-column: auto;
  }
  .commission-report-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .commission-report-controls > div {
    width: 100%;
  }
  .commission-report-controls input,
  .commission-report-controls .button {
    width: 100%;
  }
  .commission-report-controls .button {
    white-space: normal;
    line-height: 1.35;
    padding: 12px 16px;
    height: auto;
  }
  .commission-report-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .commission-report-actions .button {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
    padding: 12px 16px;
    height: auto;
  }
  .commission-report-list {
    max-height: none;
    overflow: visible;
  }
  .commission-report-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .commission-access-message .button {
    width: 100%;
    margin-top: 12px;
  }
  .admin-body > .site-footer,
  .commission-page > .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: auto;
    padding-top: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }
  .admin-body > .site-footer > span,
  .commission-page > .site-footer > span {
    order: unset;
    width: auto;
  }
}

@media (max-width: 480px) {
  .site-header,
  .site-footer {
    padding-right: 19px;
    padding-left: 19px;
  }
  .brand {
    font-size: 17px;
  }
  .header-link {
    font-size: 14px;
  }
  .hero {
    min-height: 0;
    padding-right: 21px;
    padding-left: 21px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-art {
    margin-left: -14px;
    width: calc(100% + 28px);
    transform: scale(0.78);
    transform-origin: top left;
    margin-bottom: -52px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .status-row {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .status-row label {
    width: 100%;
  }
  .status-row select {
    flex: 1;
    min-width: 0;
    width: 100%;
  }
  .status-row .button,
  .status-row .button-remove {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .sold-details {
    grid-template-columns: 1fr;
  }
  .commission-display {
    grid-column: auto;
  }
  .inquiry-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .inquiry-card dl > div {
    min-width: 0;
    width: 100%;
  }
  .notes-row .button {
    width: 100%;
  }
  .commission-report > summary {
    padding: 16px;
    line-height: 1.35;
  }
}
