:root {
  --ink: #21333a;
  --muted: #64757a;
  --line: #d8dfdc;
  --paper: #fcfaf5;
  --coral: #e3715e;
  --coral-soft: #fbe2da;
  --mint: #2f8f83;
  --mint-soft: #d9eee8;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; }

main, footer {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
  border-bottom: 1px solid var(--line);
}

.intro-copy { max-width: 680px; }

.eyebrow, .site-label {
  margin: 0;
  color: var(--mint);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.lede { margin-bottom: 0; color: var(--muted); font-size: 20px; }

.profile {
  position: relative;
  flex: 0 0 168px;
  margin: 0;
}

.profile::before {
  position: absolute;
  z-index: -1;
  width: 168px;
  height: 168px;
  content: "";
  background: var(--coral-soft);
  transform: translate(16px, 16px);
}

.profile img { display: block; width: 168px; height: 168px; object-fit: cover; border: 1px solid var(--ink); }

.destinations, .updates { padding: 88px 0; }
.updates { border-top: 1px solid var(--line); }

.section-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-header > p { margin: 0 0 5px; color: var(--muted); }

h2 { margin-bottom: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 32px; font-weight: 500; line-height: 1.25; }

.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.site-card {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

a.site-card:hover, a.site-card:focus-visible { transform: translateY(-5px); outline: 2px solid var(--mint); outline-offset: 3px; }
.accent-coral:hover, .accent-coral:focus-visible { background: var(--coral-soft); }
.accent-mint:hover, .accent-mint:focus-visible { background: var(--mint-soft); }
.is-disabled { border-color: var(--line); color: var(--muted); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status { font-size: 13px; }
h3 { margin: auto 0 8px; font-family: Georgia, "Noto Serif SC", serif; font-size: 28px; font-weight: 500; line-height: 1.2; }
.site-card p { margin: 0; font-size: 15px; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.password-dialog {
  width: min(100% - 32px, 430px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
}

.password-dialog::backdrop { background: rgba(33, 51, 58, 0.46); }
.password-form { padding: 32px; }
.dialog-heading { margin-bottom: 24px; }
.dialog-heading p:last-child { margin: 10px 0 0; color: var(--muted); }
.password-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.password-form input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.password-form input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.password-error { margin: 10px 0 0; color: #b13626; font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.dialog-actions button { min-height: 40px; padding: 8px 16px; border-radius: 4px; font: inherit; font-weight: 700; cursor: pointer; }
.button-primary { border: 1px solid var(--mint); color: #fff; background: var(--mint); }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.dialog-actions button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.text-link { color: var(--mint); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.update-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.update-card { min-height: 160px; padding: 20px; border-top: 3px solid var(--coral); background: #fff; text-decoration: none; }
.update-card:hover, .update-card:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.update-card time { display: block; margin-bottom: 16px; color: var(--muted); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 12px; }
.update-card h3 { margin: 0; font-family: inherit; font-size: 17px; font-weight: 700; }
.loading, .empty { grid-column: 1 / -1; margin: 0; color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p { margin: 0; }
footer a { text-underline-offset: 3px; }

@media (max-width: 700px) {
  main, footer { width: min(100% - 32px, 560px); }
  .intro { min-height: 430px; align-items: flex-start; flex-direction: column-reverse; justify-content: center; gap: 32px; }
  .profile, .profile img { width: 112px; height: 112px; }
  .profile { flex-basis: 112px; }
  .profile::before { width: 112px; height: 112px; transform: translate(10px, 10px); }
  h1 { font-size: 56px; }
  .lede { font-size: 18px; }
  .destinations, .updates { padding: 56px 0; }
  .section-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-header > p { margin: 0; }
  .site-grid, .update-list { grid-template-columns: 1fr; }
  .site-card { min-height: 190px; }
  footer { align-items: flex-start; flex-direction: column; gap: 4px; }
}
