@charset "UTF-8";

:root {
  --paper: #f5f2e9;
  --paper-light: #fcfaf4;
  --ink: #193e32;
  --body: #3e4b43;
  --muted: #6b746a;
  --line: #d7d9cc;
  --error: #a5372d;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { display: flow-root; margin: 0; min-height: 100vh; min-height: 100svh; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #789659; outline-offset: 4px; }
main:focus { outline: none; }
::selection { color: var(--ink); background: #d6e3b9; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(25px, 3vw, 32px); line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }

.page-frame { width: min(920px, calc(100% - 64px)); margin: 0 auto; }
.login-frame { max-width: 440px; margin-top: clamp(32px, 10vh, 96px); }
.entry-panel { padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-light); }
.entry-panel h1 { margin-bottom: 28px; font-size: 27px; }
#login-form label { display: block; font-size: 14px; margin-bottom: 10px; }
#password { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #bbc3b5; border-radius: 3px; color: var(--ink); background: #fffef9; font-size: 16px; }
#password[aria-invalid="true"] { border-color: var(--error); }
.primary-button { margin-top: 16px; min-height: 46px; width: 100%; padding: 11px 16px; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: #fffef8; font-size: 14px; }
.primary-button:hover { background: #2e5544; }
.form-error { color: var(--error); font-size: 13px; line-height: 1.7; margin-top: 12px; }

.masthead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 38px 0 24px; border-bottom: 1px solid var(--line); }
.site-heading { min-width: 0; }
.intro { margin-top: 10px; color: var(--body); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
#logout-form { flex: none; }
.text-button { min-height: 44px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--body); padding: 9px 16px; font-size: 13px; }
.text-button:hover { background: var(--paper-light); border-color: #a8b3a1; }
.collection { padding: 28px 0; }
.collection-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.collection-heading h2 { font-size: 14px; font-weight: 600; }
.collection-heading > span { font-size: 12px; color: var(--muted); }
.share-list { display: grid; gap: 14px; }
.share-card { padding: 23px 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-light); min-width: 0; }
.category { display: block; margin-bottom: 9px; color: #5c7054; font-size: 12px; overflow-wrap: anywhere; }
.card-content h3 { font-weight: 600; font-size: 22px; line-height: 1.5; }
.project-link { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; text-decoration: none; overflow-wrap: anywhere; }
.link-arrow { flex: none; font-family: Arial, sans-serif; font-size: 22px; font-weight: 400; }
.project-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-description { max-width: 720px; color: var(--body); font-size: 14px; line-height: 1.8; margin-top: 9px; overflow-wrap: anywhere; }
.project-address { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.calendar-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.calendar-open, .invite-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid var(--ink); border-radius: 3px; font-size: 13px; line-height: 1.6; text-decoration: none; }
.calendar-open { color: #fffef8; background: var(--ink); }
.calendar-open:hover { background: #2e5544; }
.invite-link { color: var(--ink); background: transparent; }
.invite-link:hover { background: #e9eee0; }
.invite-expiry, .invite-unavailable, .invite-hint { margin-top: 12px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.invite-expiry time { font-variant-numeric: tabular-nums; }
.invite-unavailable { color: var(--body); }
.empty-note { padding: 22px 0; color: var(--muted); font-size: 14px; }

.page-footer { padding: 19px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.8; }
.login-frame .page-footer { border: 0; padding: 17px 0 28px; }
.updated { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.updated time { font-variant-numeric: tabular-nums; }
.timezone { color: var(--muted); }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-200%); padding: 10px 16px; color: var(--paper-light); background: var(--ink); z-index: 2; font-size: 14px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .page-frame { width: calc(100% - 32px); }
  .entry-panel { padding: 24px 20px; }
  .entry-panel h1 { font-size: 25px; margin-bottom: 24px; }
  .masthead { gap: 16px; padding: 25px 0 20px; }
  .text-button { padding: 9px 13px; }
  .collection { padding: 23px 0; }
  .share-card { padding: 19px 18px; }
  .card-content h3 { font-size: 20px; }
  .project-description { font-size: 13px; }
  .project-address { font-size: 11px; margin-top: 13px; }
  .page-footer { font-size: 11px; }
}
