:root {
  color-scheme: light;
  --ink: #26332e;
  --ink-muted: #67726d;
  --paper: #f3f1e9;
  --paper-deep: #e9e5da;
  --card: rgba(255, 255, 252, 0.76);
  --line: rgba(45, 63, 55, 0.13);
  --sage: #486c5d;
  --sage-soft: #dce8df;
  --sand: #eadfca;
  --blue-soft: #dce6e8;
  --shadow: 0 24px 80px rgba(44, 56, 51, 0.08);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 8%, rgba(180, 205, 191, 0.42), transparent 26rem),
    radial-gradient(circle at 4% 48%, rgba(230, 214, 183, 0.35), transparent 25rem),
    var(--paper);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(38, 51, 46, 0.18);
}

.brand-mark svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.header-note {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6a927d;
  box-shadow: 0 0 0 5px rgba(106, 146, 125, 0.12);
}

main {
  flex: 1;
}

.hero {
  padding: 86px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(48px, 9vw, 120px);
  align-items: center;
}

.date-line {
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.date-mark {
  width: 18px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-family:
    "Songti SC", "STSong", "Noto Serif CJK SC", "Times New Roman", serif;
  font-size: clamp(45px, 6vw, 74px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.soft-heading {
  display: block;
  color: #728079;
}

.hero-description {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.85;
}

.capture {
  max-width: 670px;
  margin-top: 43px;
}

.capture label {
  display: block;
  margin-bottom: 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.capture-row {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(45, 63, 55, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 252, 0.82);
  box-shadow: 0 14px 40px rgba(44, 56, 51, 0.06);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.capture-row:focus-within {
  border-color: rgba(72, 108, 93, 0.55);
  box-shadow:
    0 0 0 4px rgba(72, 108, 93, 0.08),
    0 14px 40px rgba(44, 56, 51, 0.08);
}

.capture input {
  min-width: 0;
  flex: 1;
  padding: 13px 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.capture input::placeholder {
  color: #99a19d;
}

.capture button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.capture button:hover {
  background: var(--sage);
  transform: translateY(-1px);
}

.capture button:active {
  transform: translateY(0);
}

.capture button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.privacy-note {
  margin: 9px 0 0 4px;
  color: #858e89;
  font-size: 11px;
}

.today-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 252, 0.86), rgba(235, 239, 230, 0.73)),
    var(--card);
  box-shadow: var(--shadow);
}

.today-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -75px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(72, 108, 93, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(72, 108, 93, 0.035),
    0 0 0 58px rgba(72, 108, 93, 0.025);
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-kicker,
.section-label {
  margin: 0 0 6px;
  color: var(--sage);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.card-topline h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 27px;
  font-weight: 500;
}

.time-pill {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.calm-ring {
  width: 154px;
  height: 154px;
  margin: 42px auto 37px;
  padding: 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--sage) 0 18%, rgba(72, 108, 93, 0.11) 18% 100%);
  transform: rotate(-28deg);
}

.calm-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f4f5ef;
}

.calm-ring div {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  text-align: center;
  transform: rotate(28deg);
}

.calm-ring strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.calm-ring span {
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 11px;
}

.today-stats {
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.today-stats div {
  padding-top: 20px;
}

.today-stats div + div {
  padding-left: 23px;
  border-left: 1px solid var(--line);
}

.today-stats dt {
  margin-bottom: 7px;
  color: var(--ink-muted);
  font-size: 11px;
}

.today-stats dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.workspace,
.recent {
  padding: 68px 0 76px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 27px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-heading > p {
  max-width: 340px;
  margin: 0 0 4px;
  color: var(--ink-muted);
  font-size: 13px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.action-card {
  min-height: 154px;
  padding: 23px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(44, 56, 51, 0.09);
}

.action-card--sage {
  background: var(--sage-soft);
}

.action-card--sand {
  background: var(--sand);
}

.action-card--blue {
  background: var(--blue-soft);
}

.action-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.57);
}

.action-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.action-copy {
  align-self: center;
  display: grid;
  gap: 8px;
}

.action-copy strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  font-weight: 600;
}

.action-copy small {
  color: rgba(38, 51, 46, 0.66);
  font-size: 12px;
  line-height: 1.55;
}

.action-arrow {
  color: rgba(38, 51, 46, 0.58);
  font-size: 17px;
}

.recent {
  padding-bottom: 90px;
}

.section-heading--compact {
  align-items: center;
}

.text-button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.empty-state {
  min-height: 150px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(45, 63, 55, 0.18);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  text-align: center;
}

.empty-state span {
  color: var(--sage);
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
}

.notes-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.note-item {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 252, 0.58);
  animation: note-in 260ms ease both;
}

.note-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 11px;
  white-space: nowrap;
}

.delete-note {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
}

.delete-note:hover {
  color: #873f35;
  background: rgba(135, 63, 53, 0.08);
}

.site-footer {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-underline-offset: 4px;
  transition: color 150ms ease;
}

.site-footer a:hover {
  color: var(--ink);
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 16px;
  border-radius: 13px;
  color: white;
  background: var(--ink);
  box-shadow: 0 16px 50px rgba(38, 51, 46, 0.22);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(72, 108, 93, 0.34);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .today-card {
    width: 100%;
    min-height: auto;
  }

  .calm-ring {
    margin-top: 32px;
    margin-bottom: 30px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    min-height: 126px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 30px, 1180px);
  }

  .site-header {
    min-height: 84px;
  }

  .header-note {
    display: none;
  }

  .hero {
    padding: 58px 0 54px;
  }

  h1 {
    font-size: clamp(39px, 12vw, 53px);
  }

  .hero-description {
    margin-top: 22px;
    font-size: 14px;
  }

  .capture {
    margin-top: 34px;
  }

  .capture-row {
    align-items: stretch;
  }

  .capture button {
    width: 50px;
    padding: 0;
  }

  .capture button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .today-card {
    padding: 25px;
    border-radius: 24px;
  }

  .workspace,
  .recent {
    padding: 54px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-heading--compact {
    align-items: center;
    flex-direction: row;
  }

  .section-heading > p {
    font-size: 12px;
  }

  .action-card {
    min-height: 118px;
    padding: 20px;
  }

  .site-footer {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
  }

  .note-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .note-meta {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
