/* CaelbertChae.com — Homepage PC Clean V2.8
   PC-only layout. No mobile breakpoint or responsive reflow. */

:root {
  --bg-a: #fff;
  --bg-b: #fbfbfd;
  --glow: rgba(180, 190, 205, .10);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #86868b;
  --brand-text: #8e8e93;
  --line: rgba(29, 29, 31, .11);
  --panel: rgba(255, 255, 255, .90);
}

html[data-period="morning"] { --bg-a:#fffaf2; --bg-b:#f8f3ea; --glow:rgba(231,184,112,.17); }
html[data-period="day"] { --bg-a:#fff; --bg-b:#fbfbfd; --glow:rgba(180,190,205,.10); }
html[data-period="evening"] { --bg-a:#faedd8; --bg-b:#e9cb94; --glow:rgba(202,139,54,.20); }

html[data-period="night"] {
  color-scheme: dark;
  --bg-a:#000;
  --bg-b:#1c1c1e;
  --glow:rgba(255,255,255,.04);
  --ink:#f5f5f7;
  --muted:#a1a1a6;
  --soft:#86868b;
  --brand-text:#86868b;
  --line:rgba(245,245,247,.14);
  --panel:rgba(28,28,30,.88);
}

* { box-sizing: border-box; }

html,
body {
  min-width: 1200px;
  min-height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 17% 24%, var(--glow), transparent 37%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b));
  transition: background .45s ease, color .45s ease;
}

a,
button,
input { font: inherit; color: inherit; }

a { text-decoration: none; }
button { border: 0; }

.shell {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 48px;
}

.page {
  min-height: 100vh;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 38px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background .24s ease,
    border-color .24s ease,
    box-shadow .24s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .015);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -.01em;
}

.brand-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.brand span {
  color: var(--brand-text);
  transition: color .2s ease;
}

.brand:hover span { color: var(--ink); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.primary-nav button {
  padding: 0;
  background: none;
  cursor: pointer;
}

.primary-nav a,
.primary-nav button { transition: color .18s ease; }

.primary-nav a:hover,
.primary-nav button:hover { color: var(--ink); }

/* Hero */
.hero {
  max-width: 1152px;
  min-height: calc(100vh - 38px);
  padding-top: 20px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.logo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 224px;
  height: 224px;
  transition: transform .7s ease;
}

.hero-logo:hover { transform: scale(1.04); }

.quote-stage { min-width: 0; }

.quote {
  position: relative;
  padding-inline: 4px;
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
}

.quote-mark {
  position: absolute;
  left: -40px;
  top: -54px;
  color: var(--line);
  font-size: 104px;
  line-height: 1;
  user-select: none;
}

.quote p { margin: 0; color: var(--muted); }

.quote .one {
  font-size: 38px;
  line-height: 1.45;
  letter-spacing: .01em;
}

.quote .focus {
  margin: 11px 0 26px;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.2;
  font-style: italic;
}

.quote .close {
  font-size: 30px;
  line-height: 1.75;
}

.quote-zh {
  padding: 38px 42px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 48%, transparent);
}

.quote-zh .one { font-size:18px; letter-spacing:.32em; }
.quote-zh .focus { font-size:48px; letter-spacing:.1em; font-style:normal; }
.quote-zh .close { font-size:27px; line-height:1.9; letter-spacing:.15em; }


/* Screen 2 — Personal coordinate */
.coordinate-screen {
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.coordinate-inner {
  width: 100%;
  max-width: 1280px;
  padding-top: 74px;
  padding-bottom: 86px;
}

.coordinate-canvas {
  position: relative;
  width: 100%;
  height: 660px;
}

.coordinate-art {
  position: absolute;
  inset: 12px 10px 18px;
  width: calc(100% - 20px);
  height: calc(100% - 30px);
  color: #0354FC;
  overflow: visible;
}

.coordinate-guides path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.coordinate-flow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-soft {
  stroke-width: 1.35;
  opacity: .16;
}

.flow-main {
  stroke-width: 3.2;
  opacity: .98;
}

.flow-accent {
  stroke-width: 1.6;
  opacity: .34;
}

.coordinate-label {
  position: absolute;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 600;
}

.coordinate-think {
  top: 66px;
  left: 48.4%;
}

.coordinate-build {
  top: 205px;
  right: 45px;
}

.coordinate-live {
  left: 42px;
  bottom: 132px;
}

.coordinate-caption {
  position: absolute;
  right: 44px;
  bottom: 42px;
  margin: 0;
  color: var(--soft);
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .01em;
}

.coordinate-screen:hover .flow-main {
  stroke-width: 3.6;
}

.coordinate-screen:hover .coordinate-art {
  transform: translateY(-2px);
}

.coordinate-art,
.flow-main {
  transition: transform .8s ease, stroke-width .8s ease;
}

/* Screen 3 — One thought */
.thought-screen {
  min-height: 92vh;
  display: grid;
  align-items: center;
}

.thought-screen-inner {
  width: 100%;
  max-width: 1152px;
  padding-top: 96px;
  padding-bottom: 112px;
}

.thought {
  max-width: 980px;
}

.thought p {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  font-size: 58px;
  line-height: 1.22;
  letter-spacing: -.025em;
  font-weight: 400;
}

.thought time {
  display: block;
  margin-top: 34px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .045em;
}

.thought-zh p {
  font-size: 54px;
  line-height: 1.42;
  letter-spacing: .025em;
}

/* Footer */
.site-footer {
  padding-bottom: 16px;
  color: var(--soft);
  font-size: 11px;
}

.footer-inner {
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.footer-columns {
  margin-bottom: 54px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 48px;
}

.footer-column { min-width: 0; }
.footer-logo-column { padding-top: 1px; }

.footer-logo {
  width: 28px;
  height: 28px;
}

.footer-title {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.footer-links a,
.footer-static {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  transition: color .18s ease;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--soft);
  line-height: 1.35;
}

.footer-legal,
.footer-lang {
  display: flex;
  align-items: center;
}

.footer-legal a,
.footer-lang button {
  position: relative;
  color: var(--soft);
  background: none;
  transition: color .18s ease;
}

.footer-legal a { padding-inline: 9px; }
.footer-legal a:first-child { padding-left: 0; }

.footer-legal a + a::before,
.footer-lang button + button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 11px;
  background: var(--line);
  transform: translateY(-50%);
}

.footer-legal a:hover,
.footer-lang button:hover { color: var(--ink); }

.footer-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-lang {
  margin-left: auto;
  white-space: nowrap;
}

.footer-lang button {
  padding-inline: 8px;
  cursor: pointer;
  font-size: 11px;
}

.footer-lang button:first-child { padding-left: 0; }
.footer-lang button:last-child { padding-right: 0; }

.footer-lang button.active {
  color: var(--ink);
  font-weight: 600;
}

/* Resume dialog */
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(7px);
}

.modal.open { display: grid; }

.dialog {
  width: 360px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
}

.dialog h2 { margin:0 0 7px; font-size:20px; }
.dialog p { margin:0 0 22px; color:var(--muted); font-size:14px; }

.dialog input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  outline: none;
}

.actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.actions button {
  padding: 9px 16px;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.actions .submit {
  color: #fff;
  background: #0071e3;
}


.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;
}

body.modal-open {
  overflow: hidden;
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
