@font-face { font-family: Poppins; src: url(fonts/poppins-regular.woff2) format("woff2"); font-weight: 400; }
@font-face { font-family: Poppins; src: url(fonts/poppins-bold.woff2) format("woff2"); font-weight: 700; }
@font-face { font-family: Fjalla One; src: url(fonts/fjalla-one.woff2) format("woff2"); font-weight: 400; }
* { box-sizing: border-box; }
body { background: #f2f0eb; color: #171717; font-family: Poppins, Arial, sans-serif; margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
.admin-header { align-items: center; background: #000; color: #fff; display: grid; gap: 24px; grid-template-columns: 130px 1fr auto; min-height: 112px; padding: 12px max(22px, calc((100vw - 1180px) / 2)); }
.admin-header img { height: 88px; object-fit: contain; width: 120px; }
.admin-header h1 { font-family: Fjalla One, Impact, sans-serif; font-size: clamp(27px, 4vw, 42px); font-weight: 400; margin: 0 0 3px; }
.admin-header p { font-size: 12px; margin: 0; }
.admin-main { margin: 0 auto; max-width: 1180px; padding: 38px 22px 80px; }
.admin-section, .login-panel { background: #fff; border: 1px solid #ddd8ce; margin-bottom: 30px; padding: clamp(22px, 4vw, 42px); }
.login-panel { margin: 50px auto; max-width: 520px; }
.admin-section h2, .login-panel h2 { font-family: Fjalla One, Impact, sans-serif; font-size: 34px; font-weight: 400; margin: 0 0 13px; }
.admin-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .13em; margin: 0 0 7px; text-transform: uppercase; }
.admin-section-heading { align-items: start; display: flex; gap: 20px; justify-content: space-between; }
.admin-section-heading a { color: #111; font-size: 13px; }
.admin-help, .admin-empty { color: #555; font-size: 13px; }
.admin-form { display: grid; gap: 18px; margin-top: 24px; }
.admin-form--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form label { display: block; font-size: 13px; font-weight: 700; }
.admin-form input, .admin-form select, .admin-form textarea { background: #fff; border: 1px solid #777; border-radius: 0; color: #111; display: block; margin-top: 7px; padding: 11px 12px; width: 100%; }
.admin-form input[type="file"] { background: #f7f5f1; padding: 16px; }
.admin-form small { color: #666; display: block; font-size: 11px; font-weight: 400; margin-top: 5px; }
.admin-form textarea { resize: vertical; }
.admin-form-full { grid-column: 1 / -1; }
.admin-check { align-items: center; display: flex !important; gap: 10px; min-height: 46px; padding-top: 18px; }
.admin-check input { display: inline-block; height: 20px; margin: 0; width: 20px; }
.admin-button { background: #000; border: 2px solid #000; color: #fff; cursor: pointer; display: inline-block; font-family: Fjalla One, Impact, sans-serif; font-size: 17px; min-width: 150px; padding: 11px 20px; }
.admin-button:hover, .admin-button:focus-visible { background: #fff; color: #000; }
.admin-button--quiet { border-color: #fff; min-width: auto; }
.notice { border: 1px solid; margin-bottom: 24px; padding: 14px 16px; }
.notice--success { background: #edf8ee; border-color: #4f8756; color: #244d29; }
.notice--error { background: #fff0ee; border-color: #a3483e; color: #76251d; }
.admin-photo-list { display: grid; gap: 26px; margin-top: 28px; }
.admin-photo { border: 1px solid #ccc7bd; display: grid; gap: 0 28px; grid-template-columns: 250px 1fr; padding: 22px; position: relative; }
.admin-photo-preview { align-self: start; position: relative; }
.admin-photo-preview img { aspect-ratio: 4 / 3; display: block; object-fit: cover; width: 100%; }
.status-badge { color: #fff; font-size: 11px; font-weight: 700; left: 8px; padding: 5px 9px; position: absolute; text-transform: uppercase; top: 8px; }
.status-badge--published { background: #276a31; }
.status-badge--draft { background: #595959; }
.admin-photo .admin-form { margin-top: 0; }
.admin-photo-actions { align-items: center; display: flex; gap: 16px; }
.admin-photo-actions span { color: #666; font-size: 11px; }
.delete-photo-form { grid-column: 1; margin-top: 14px; }
.delete-button { background: transparent; border: 0; color: #9a281e; cursor: pointer; font-size: 12px; padding: 0; text-decoration: underline; }
.password-section summary { cursor: pointer; font-family: Fjalla One, Impact, sans-serif; font-size: 24px; }
.password-form { max-width: 520px; }
@media (max-width: 800px) {
  .admin-photo { grid-template-columns: 1fr; }
  .admin-photo-preview { margin-bottom: 24px; max-width: 420px; }
  .delete-photo-form { grid-column: 1; }
}
@media (max-width: 580px) {
  .admin-header { grid-template-columns: 82px 1fr; }
  .admin-header img { height: 68px; width: 80px; }
  .admin-header form { grid-column: 1 / -1; }
  .admin-form--grid { grid-template-columns: 1fr; }
  .admin-form-full { grid-column: auto; }
  .admin-section-heading { flex-direction: column; }
  .admin-photo { padding: 14px; }
}
