:root {
  color-scheme: light;
  --page: #faf9f7;
  --surface: #fefdfb;
  --ink: #292623;
  --muted: #69615b;
  --accent: #ae392d;
  --accent-end: #b45135;
  --on-accent: #fffaf6;
  --line: #e5ded8;
  --halo-rose: #be49321c;
  --halo-gold: #d89b671d;
  --feature-wash: #c25d3712;
  --tile: #ffffff80;
  --shadow: #7c3a2012;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #181716; --surface: #201d1b; --ink: #f3eee9; --muted: #bbb0a7;
    --accent: #efa48f; --accent-end: #edbc95; --on-accent: #301d16;
    --line: #40352f; --halo-rose: #b44e3529; --halo-gold: #bd885119;
    --feature-wash: #d8794314; --tile: #ffffff06; --shadow: #08050326;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #181716; --surface: #201d1b; --ink: #f3eee9; --muted: #bbb0a7;
  --accent: #efa48f; --accent-end: #edbc95; --on-accent: #301d16;
  --line: #40352f; --halo-rose: #b44e3529; --halo-gold: #bd885119;
  --feature-wash: #d8794314; --tile: #ffffff06; --shadow: #08050326;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 30px; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.35; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1; padding: 10px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 23px; font-weight: 700; letter-spacing: -.7px; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-header nav > a { position: relative; padding-block: 7px; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; }
.icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }
.icon-sun { display: none; }
.theme-toggle[data-icon="sun"] .icon-sun { display: block; }
.theme-toggle[data-icon="sun"] .icon-moon { display: none; }
.site-header nav > a::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 160ms var(--ease-out); }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; }
.theme-toggle:hover { background: var(--surface); color: var(--ink); }
.hero { min-height: 630px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; padding-block: 80px 90px; }
h1 { font-size: clamp(64px, 6.3vw, 88px); font-weight: 700; line-height: 1.1; letter-spacing: -4px; }
h1 span { color: var(--accent); }
/* Negative tracking can leave the last glyph outside the text-background box. */
#hero-title > span { padding-inline-end: .08em; margin-inline-end: -.08em; }
@supports (background-clip: text) {
  h1 span { background: linear-gradient(110deg, var(--accent) 10%, var(--accent-end) 90%); background-clip: text; -webkit-background-clip: text; color: transparent; }
}
.tagline { margin-top: 20px; font-size: 36px; font-weight: 600; letter-spacing: -.7px; }
.description { margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.95; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { position: relative; isolation: isolate; min-height: 54px; padding: 13px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 600; transition: transform 160ms var(--ease-out); }
.button::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity 160ms ease; pointer-events: none; }
.primary { background: linear-gradient(115deg, var(--accent), var(--accent-end)); color: var(--on-accent); box-shadow: inset 0 1px 0 #ffffff20, 0 7px 18px var(--shadow); }
.primary::before { background: #ffffff10; box-shadow: 0 10px 22px var(--shadow); }
.primary:hover { color: var(--on-accent); }
.primary span { font-size: 23px; line-height: 1; font-weight: 400; }
.secondary { border-color: var(--line); background: var(--surface); }
.secondary::before { background: var(--feature-wash); }
.secondary:hover { color: var(--ink); }
.hero-art { position: relative; isolation: isolate; display: grid; place-items: center; }
.hero-halo { position: absolute; z-index: -1; width: 116%; height: 116%; max-width: 580px; border-radius: 50%; background: radial-gradient(ellipse at 30% 40%, var(--halo-rose), transparent 62%), radial-gradient(ellipse at 75% 65%, var(--halo-gold), transparent 60%); pointer-events: none; }
.project-logo { display: block; width: min(100%, 450px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 24px var(--shadow)); }
.tools { max-width: 960px; display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 28px; padding-block: 8px; align-items: center; }
.tools-heading h2 { font-size: 16px; font-weight: 600; }
.tools-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.tool-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool { position: relative; isolation: isolate; display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tool::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--feature-wash); opacity: 0; z-index: -1; transition: opacity 160ms ease; pointer-events: none; }
.tool-title { display: inline-flex; align-items: center; gap: 8px; }
.tool strong { font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
.tool small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tool-arrow { color: var(--muted); font-size: 17px; transition: transform 160ms var(--ease-out); }
.tool:focus-visible { color: var(--accent); }
.tool:focus-visible::before { opacity: 1; }
.tool:focus-visible .tool-arrow { color: var(--accent); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 72px 84px; }
.feature-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; padding: 38px 40px; background: var(--surface); box-shadow: 0 8px 32px var(--shadow); }
.schedule-card { background: linear-gradient(145deg, var(--surface) 30%, var(--feature-wash)), var(--surface); }
.notification-card { background: linear-gradient(215deg, var(--surface) 30%, var(--feature-wash)), var(--surface); }
.feature-card h2 { font-size: 30px; font-weight: 650; letter-spacing: -.6px; }
.feature-card p { margin-top: 15px; color: var(--muted); font-size: 16px; line-height: 1.95; }
.weekdays, .notification-channels { list-style: none; margin: 36px 0 0; padding: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.weekdays li { display: grid; place-items: center; width: 43px; height: 43px; background: var(--tile); border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: 14px; }
.notification-channels li { display: grid; place-items: center; padding: 10px 17px; min-height: 43px; border: 1px solid var(--line); border-radius: 10px; background: var(--tile); color: var(--ink); font-size: 14px; font-weight: 550; }
.site-footer { padding: 26px 0 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 30px; color: var(--muted); font-size: 11px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 25px; }
/* First-visit entry establishes hierarchy; only transforms and opacity animate. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: enter 600ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 50ms; }
  .hero-copy > :nth-child(3) { animation-delay: 100ms; }
  .hero-copy > :nth-child(4) { animation-delay: 150ms; }
  .project-logo { animation: artwork-enter 600ms var(--ease-out) 100ms both; }
  .hero-halo { animation: fade-in 600ms ease both; }
  :root:not([data-input="keyboard"]) .button:active { transform: scale(.97); }
}
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes artwork-enter { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .button:hover::before { opacity: 1; }
  .tool:hover::before { opacity: 1; }
  .tool:hover .tool-arrow { color: var(--accent); }
  .site-header nav > a:hover::after { transform: scaleX(1); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover { transform: translateY(-2px); }
  .tool:hover .tool-arrow { transform: translate(2px, -2px); }
}
@media (max-width: 1023px) {
  .wrap { width: calc(100% - 64px); }
  .hero { min-height: 550px; gap: 24px; grid-template-columns: 1.2fr 1fr; padding-block: 60px; }
  h1 { font-size: 64px; }
  .tagline { font-size: 30px; }
  .description { font-size: 15px; }
  .desktop-break { display: none; }
  .tools { grid-template-columns: 1fr; gap: 18px; }
  .tools-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .tools-heading p { margin: 0; }
  .features { gap: 22px; }
  .feature-card { padding: 30px; }
  .feature-card h2 { font-size: 28px; }
  .feature-card p { font-size: 15px; }
  .weekdays { gap: 7px; }
  .weekdays li { width: 32px; height: 32px; font-size: 12px; }
  .notification-channels { gap: 7px; }
  .notification-channels li { padding: 8px 12px; min-height: 36px; font-size: 13px; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 70px; gap: 14px; }
  .brand { font-size: 20px; }
  .site-header nav { gap: 16px; font-size: 12px; }
  .theme-toggle { width: 34px; height: 34px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 52px 38px; gap: 36px; }
  h1 { font-size: clamp(56px, 13vw, 76px); letter-spacing: -3px; }
  .tagline { font-size: 28px; margin-top: 15px; }
  .description { font-size: 15px; margin-top: 17px; }
  .actions { margin-top: 26px; gap: 10px; }
  .button { padding: 12px 18px; min-height: 50px; font-size: 14px; gap: 10px; }
  .project-logo { width: min(85%, 320px); }
  .hero-halo { width: 100%; height: 120%; }
  .tools { gap: 16px; padding-block: 8px; }
  .tools-heading h2 { font-size: 14px; }
  .tools-heading p { font-size: 11px; margin: 0; }
  .tool-links { grid-template-columns: 1fr; gap: 10px; }
  .tool { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
  .tool strong { font-size: 19px; }
  .tool small { font-size: 11px; margin: 0; }
  .tool-arrow { font-size: 16px; }
  .features { grid-template-columns: 1fr; padding-block: 40px 48px; gap: 20px; }
  .feature-card { padding: 28px 25px; }
  .feature-card h2 { font-size: 27px; }
  .weekdays, .notification-channels { margin-top: 28px; }
  .site-footer { justify-content: center; text-align: center; padding-block: 22px; gap: 12px; }
  .site-footer p { width: 100%; font-size: 10px; }
}
@media (max-width: 359px) {
  .site-header nav { gap: 12px; }
  .site-header nav > a:first-child { display: none; }
  .button { padding-inline: 15px; font-size: 13px; }
  .feature-card { padding-inline: 21px; }
  .weekdays { gap: 5px; }
  .weekdays li { width: 29px; height: 29px; }
}
@media (max-width: 480px) {
  .github-link .nav-text { display: none; }
  .site-header nav { gap: 13px; }
  .nav-link { gap: 5px; }
  .nav-link .icon { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .project-logo { animation: fade-in 200ms ease both; }
  .button, .tool-arrow, .site-header nav > a::after { transition: none; }
  .button:active { transform: none; }
}
:root[data-input="keyboard"] .button { transition: none; }
:root[data-input="keyboard"] .button:active { transform: none; }
