:root {
  color-scheme: light;
  --page: #f5f5ef;
  --paper: #ffffff;
  --ink: #202925;
  --muted: #727c75;
  --line: #dfe4dc;
  --green: #487454;
  --green-light: #e4f1e2;
  --focus: #247e46;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.shell { width: min(100% - 40px, 680px); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 760; letter-spacing: -.065em; }
.brand-period, .accent { color: var(--green); }
.brand-mark { width: 24px; height: 24px; display: grid; grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); gap: 4px; transform: rotate(-11deg); }
.brand-mark span { background: var(--green); border-radius: 3px; }
.brand-mark span:nth-child(2) { opacity: .58; }
.brand-mark span:nth-child(3) { opacity: .36; }
.brand-mark span:nth-child(4) { opacity: .78; }
.add-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #335f42; border-radius: 12px; background: var(--green); color: white; text-decoration: none; box-shadow: 0 3px 0 #31543b; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.add-button:hover { background: #365f43; transform: translateY(2px); box-shadow: 0 1px 0 #31543b; }
.add-button svg { width: 20px; height: 20px; }

.intro { padding: 10px 0 10px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 11px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #7aaa6f; box-shadow: 0 0 0 4px var(--green-light); }
h1 { margin: 13px 0 5px; font-size: clamp(40px, 7vw, 60px); line-height: 1; letter-spacing: -.075em; font-weight: 760; }
.intro p { margin: 13px 0 0; color: var(--muted); font-size: 15px; }
.projects { flex: 1; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: 13px; font-weight: 720; letter-spacing: -.015em; }
.count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.project-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; padding-top: 14px; }
.project-card { min-width: 0; min-height: 74px; display: flex; align-items: center; gap: 15px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; text-decoration: none; box-shadow: 0 2px 0 rgba(42, 68, 44, .045); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.project-card:hover { transform: translateY(-2px); border-color: #abc7ad; box-shadow: 0 7px 17px rgba(42, 68, 44, .08); }
.project-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--green-light); color: var(--green); font-size: 17px; font-weight: 760; }
.project-copy { min-width: 0; flex: 1; }
.project-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 690; letter-spacing: -.025em; }
.project-description { display: block; white-space: normal; overflow-wrap: anywhere; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-arrow { flex: 0 0 auto; width: 18px; height: 18px; color: #829388; transition: transform .16s ease, color .16s ease; }
.project-card:hover .project-arrow { transform: translate(2px, -2px); color: var(--green); }
.list-message { margin: 14px 0 0; padding: 24px 18px; color: var(--muted); text-align: center; border: 1px dashed #c9d3c7; border-radius: 15px; font-size: 14px; }
.footer { display: flex; align-items: center; justify-content: space-between; padding: 27px 0 30px; margin-top: 38px; border-top: 1px solid var(--line); color: #919c92; font-size: 11px; }
.footer span:last-child { color: var(--green); font-size: 17px; line-height: 1; }

.admin-intro { padding-bottom: 28px; }
.admin-intro h1 { font-size: clamp(36px, 7vw, 50px); }
.form-card { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 0 rgba(42, 68, 44, .045); }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 680; }
.field input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd8ce; border-radius: 10px; background: #fcfdfb; color: var(--ink); font-size: 14px; }
.field input::placeholder { color: #9aa49c; }
.field input:focus { border-color: var(--green); outline: 3px solid #d6ead7; }
.field-note { color: var(--muted); font-size: 11px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 25px; }
.text-link { color: var(--muted); text-decoration: none; font-size: 13px; }
.text-link:hover { color: var(--green); text-decoration: underline; }
.submit-button { min-height: 42px; padding: 0 19px; border: 1px solid #335f42; border-radius: 10px; background: var(--green); color: white; font-weight: 700; font-size: 13px; cursor: pointer; }
.submit-button:hover { background: #365f43; }
.notice { padding: 12px 14px; margin: 0 0 17px; border-radius: 10px; font-size: 13px; }
.notice-success { color: #285437; background: #e4f1e2; }
.notice-error { color: #893c35; background: #f9e9e6; }

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 680px); }
  .topbar { height: 72px; }
  .intro { padding: 39px 0 34px; }
  .project-card { gap: 12px; padding: 11px; }
  .form-card { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
