:root {
  color-scheme:dark;
  --text:#fcf9f6;
  --muted:#d5cfda;
  --accent:#f3ceb7;
  --border:rgba(255,255,255,.16);
  --glass:rgba(38,33,49,.47);
  --shade:.5;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  color:var(--text);
  background:#242237;
  font-size:16px;
  line-height:1.6;
}

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

button,a {
  touch-action:manipulation;
}

button {
  font:inherit;
  color:inherit;
  cursor:pointer;
}

button {
  border:0;
}

a {
  color:inherit;
  text-decoration:none;
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px;
}

button:disabled {
  cursor:default;
}

.wallpaper,.veil {
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
}

.wallpaper {
  background:url("assets/dusk.jpg") center center/cover no-repeat;
  transition:background-image .5s;
}

.veil {
  z-index:-1;
  background:linear-gradient(90deg,rgba(20,18,32,.3),rgba(20,18,32,.05) 60%),rgba(15,15,29,var(--shade));
  transition:background .25s;
}

.page {
  width:min(1280px,calc(100% - 112px));
  margin:auto;
  min-height:100svh;
  display:flex;
  flex-direction:column;
}

.header {
  height:112px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.wordmark {
  display:flex;
  align-items:center;
  gap:14px;
}

.mark {
  font:italic 34px Georgia,serif;
  color:var(--accent);
}

.wordmark>span:last-child {
  font-size:11px;
  letter-spacing:2.4px;
  font-weight:600;
}

.header-right {
  display:flex;
  gap:20px;
  align-items:center;
}

.welcome {
  font-size:13px;
  color:var(--muted);
  letter-spacing:1px;
}

.header-divider {
  height:16px;
  width:1px;
  background:var(--border);
}

.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:transparent;
  transition:background .2s,transform .2s;
}

.icon-button:hover {
  background:rgba(255,255,255,.12);
}

.icon-button:active {
  transform:scale(.93);
}

.icon {
  height:20px;
  width:20px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}

main {
  display:grid;
  grid-template-columns:1fr 1.12fr;
  align-items:center;
  gap:9%;
  flex:1;
  padding:48px 0 72px;
}

.profile {
  padding-bottom:4px;
}

.eyebrow {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:11px;
  font-weight:500;
  letter-spacing:3px;
  color:var(--accent);
}

.tiny-line {
  height:1px;
  width:25px;
  background:var(--accent);
}

h1 {
  font-size:clamp(64px,6.7vw,98px);
  font-weight:400;
  letter-spacing:-5px;
  line-height:1.18;
  margin:21px 0 24px;
  white-space:nowrap;
}

h1 #profile-name {
  font-family:Georgia,"Times New Roman",serif;
  font-style:italic;
  letter-spacing:-6px;
}

.name-dot {
  color:var(--accent);
}

.intro {
  font-size:23px;
  letter-spacing:2px;
  margin:0 0 20px;
  font-weight:400;
}

.bio {
  font-size:15px;
  line-height:2.1;
  color:var(--muted);
  margin:0;
}

.interests {
  display:flex;
  gap:9px;
  margin-top:25px;
  flex-wrap:wrap;
}

.interest {
  border:1px solid var(--border);
  border-radius:30px;
  font-size:12px;
  padding:3px 13px;
  color:#e0dae2;
  background:rgba(255,255,255,.035);
}

.interest::before {
  content:'#';
  color:var(--accent);
  margin-right:6px;
}

.profile-rule {
  height:1px;
  background:linear-gradient(90deg,var(--border),transparent);
  margin:32px 0 19px;
  max-width:330px;
}

.socials {
  display:flex;
  gap:13px;
}

.social-link {
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
  transition:background .2s,transform .2s;
}

.social-link:hover {
  background:rgba(255,255,255,.17);
  transform:translateY(-3px);
}

.profile-note {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  color:#cbc3d0;
  margin-top:28px;
  letter-spacing:.8px;
}

.profile-note .icon {
  width:16px;
  height:16px;
}

.dashboard {
  min-width:0;
}

.top-cards {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.glass {
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:18px;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 8px 30px rgba(8,8,18,.05);
}

.clock-card,.quote-card {
  min-height:210px;
  padding:21px 23px;
}

.card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#e0d8e2;
  font-size:12px;
  letter-spacing:1px;
  height:23px;
}

.card-top>.icon {
  color:var(--accent);
  width:19px;
  height:19px;
}

.clock {
  display:flex;
  gap:8px;
  align-items:baseline;
  margin-top:13px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.clock time {
  font-size:clamp(38px,3.8vw,54px);
  font-weight:300;
  letter-spacing:-2px;
  line-height:1.3;
}

.clock #seconds {
  color:var(--accent);
  font-size:19px;
  font-weight:300;
}

.date {
  font-size:12px;
  margin:7px 0 13px;
  white-space:nowrap;
  color:#ded6df;
}

.timezone {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  letter-spacing:1px;
  color:#bbb3c3;
}

.clock-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent);
}

.quote-card {
  position:relative;
  display:flex;
  flex-direction:column;
}

.small {
  width:30px;
  height:30px;
  margin-right:-7px;
}

.small .icon {
  width:15px;
  height:15px;
}

.quote-mark {
  position:absolute;
  font:80px Georgia,serif;
  opacity:.09;
  top:26px;
  left:16px;
}

.quote-card blockquote {
  font-size:19px;
  letter-spacing:1.5px;
  line-height:1.85;
  margin:21px 0 13px;
  white-space:pre-line;
  position:relative;
}

.quote-source {
  font-size:11px;
  color:#c8bdcc;
  text-align:right;
  margin-top:auto;
}

.quote-source::before {
  content:'— ';
  color:var(--accent);
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:28px 0 14px;
  gap:8px;
}

.section-heading h2 {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:15px;
  letter-spacing:1px;
  font-weight:500;
  margin:0;
}

.section-heading .icon {
  width:17px;
  height:17px;
}

.section-heading>span {
  font-size:11px;
  color:#c7bdcb;
  letter-spacing:1px;
}

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

.site-link {
  display:flex;
  align-items:center;
  gap:14px;
  padding:17px 18px;
  min-height:83px;
  background:rgba(42,35,52,.45);
  border:1px solid var(--border);
  border-radius:13px;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:transform .2s,background .2s,border-color .2s;
}

.site-link:hover {
  transform:translateY(-3px);
  background:rgba(86,65,86,.66);
  border-color:rgba(243,206,183,.45);
}

.site-icon {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:11px;
  background:rgba(255,255,255,.06);
  flex-shrink:0;
}

.site-icon .icon {
  height:23px;
  width:23px;
}

.lavender {
  color:#ded5ff;
}

.sand {
  color:#eee1ce;
}

.pink {
  color:#edb3d1;
}

.peach {
  color:#f4b3a6;
}

.blue {
  color:#bacfeb;
}

.mint {
  color:#c3e3da;
}

.site-name {
  display:block;
  font-size:14px;
  font-weight:500;
}

.site-subtitle {
  display:block;
  font-size:11px;
  color:#c8bfce;
  margin-top:3px;
  letter-spacing:.4px;
}

.year-card {
  margin-top:18px;
  padding:18px 21px;
  border-radius:13px;
}

.year-heading,.year-foot {
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.year-heading {
  font-size:12px;
}

.year-heading>span:first-child {
  display:flex;
  align-items:center;
  gap:8px;
}

.year-heading .icon {
  width:15px;
  height:15px;
  color:var(--accent);
}

.year-heading strong {
  font-size:13px;
  font-weight:500;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}

.muted {
  color:#c6bdcc;
  font-size:11px;
}

progress {
  display:block;
  width:100%;
  height:4px;
  margin:13px 0 11px;
  border:0;
  border-radius:5px;
  overflow:hidden;
  background:rgba(255,255,255,.1);
}

progress::-webkit-progress-bar {
  background:rgba(255,255,255,.1);
}

progress::-webkit-progress-value {
  background:linear-gradient(90deg,#c9aaca,#edc5ab);
  border-radius:5px;
}

progress::-moz-progress-bar {
  background:#edc5ab;
}

.year-foot {
  font-size:10px;
  color:#c7bdca;
  letter-spacing:.25px;
}

.footer {
  min-height:78px;
  border-top:1px solid rgba(255,255,255,.1);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:#c5bdcb;
  font-size:11px;
  letter-spacing:.5px;
}

.footer-separator {
  margin:0 13px;
  opacity:.4;
}

.wallpaper-controls {
  display:flex;
  align-items:center;
  gap:11px;
}

.wallpaper-controls>.footer-separator {
  margin:0 0 0 3px;
}

.wallpaper-dots {
  display:flex;
  align-items:center;
  gap:6px;
}

.wallpaper-dot {
  position:relative;
  width:24px;
  height:28px;
  background:transparent;
  padding:0;
}

.wallpaper-dot::before {
  content:'';
  display:block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--dot);
  margin:auto;
  opacity:.6;
}

.wallpaper-dot[aria-pressed=true]::before {
  opacity:1;
  outline:1px solid var(--dot);
  outline-offset:4px;
}

.footer .icon-button {
  width:30px;
  height:30px;
}

.footer .icon {
  width:17px;
  height:17px;
}

dialog {
  width:min(480px,calc(100% - 32px));
  border:1px solid rgba(255,255,255,.2);
  border-radius:24px;
  background:#2c283a;
  color:var(--text);
  padding:30px;
  box-shadow:0 30px 100px #0006;
}

dialog::backdrop {
  background:rgba(13,10,24,.6);
  backdrop-filter:blur(8px);
}

.dialog-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.dialog-heading .eyebrow {
  font-size:9px;
  letter-spacing:2px;
}

.dialog-heading h2 {
  font-size:24px;
  font-weight:500;
  margin:10px 0 24px;
}

.settings-label,.brightness-label {
  font-size:14px;
  color:var(--muted);
}

.wallpaper-options {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:13px 0 25px;
}

.wallpaper-option {
  background:transparent;
  text-align:left;
  padding:0;
  border-radius:10px;
  font-size:12px;
  color:var(--muted);
}

.wallpaper-option img {
  display:block;
  width:100%;
  aspect-ratio:1.2;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:8px;
  border:2px solid transparent;
}

.wallpaper-option[aria-pressed=true] img {
  border-color:var(--accent);
}

.brightness-label {
  display:flex;
  justify-content:space-between;
}

input[type=range] {
  width:100%;
  accent-color:var(--accent);
  margin:16px 0;
}

.settings-note {
  font-size:12px;
  color:#b9afc2;
  margin-bottom:0;
}

.noscript {
  background:#292638;
  padding:15px;
  text-align:center;
}

main,.header .wordmark,.welcome {
  transition:opacity .35s,visibility .35s;
}

body.focus-mode main,body.focus-mode .wordmark,body.focus-mode .welcome {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

body.focus-mode .veil {
  background:rgba(15,15,29,.12);
}

@media(min-width:1500px) {
  main {
    gap:110px;
  }
  .page {
    width:min(1310px,calc(100% - 160px));
  }
  .clock-card,.quote-card {
    min-height:223px;
  }
  .clock time {
    font-size:58px;
  }
  .quote-card blockquote {
    font-size:21px;
  }
  .site-link {
    min-height:91px;
  }
  .profile h1 {
    font-size:108px;
  }
}

@media(max-width:1100px) {
  .page {
    width:calc(100% - 64px);
  }
  main {
    gap:5%;
    grid-template-columns:.9fr 1.1fr;
  }
  h1 {
    font-size:75px;
  }
  .clock-card,.quote-card {
    padding:18px;
  }
  .site-link {
    padding:15px 13px;
    gap:10px;
  }
  .site-subtitle {
    font-size:10px;
  }
  .intro {
    font-size:20px;
  }
  .bio {
    font-size:14px;
  }
  .quote-card blockquote {
    font-size:17px;
  }
}

@media(max-width:800px) {
  .page {
    width:min(580px,calc(100% - 40px));
  }
  .header {
    height:86px;
  }
  .welcome,.header-divider {
    display:none;
  }
  main {
    grid-template-columns:1fr;
    gap:42px;
    padding:36px 0 45px;
  }
  .profile {
    padding:0 5px;
  }
  .profile h1 {
    font-size:85px;
    margin:16px 0;
  }
  .intro {
    font-size:22px;
    margin-bottom:15px;
  }
  .bio {
    font-size:15px;
  }
  .profile-rule {
    margin:25px 0 16px;
  }
  .profile-note {
    margin-top:20px;
  }
  .top-cards {
    gap:13px;
  }
  .clock-card,.quote-card {
    min-height:205px;
    padding:22px;
  }
  .clock time {
    font-size:49px;
  }
  .quote-card blockquote {
    font-size:19px;
  }
  .site-link {
    padding:17px;
    gap:14px;
  }
  .site-subtitle {
    font-size:11px;
  }
  .footer {
    flex-wrap:wrap;
    padding:18px 0;
    justify-content:center;
    gap:8px;
  }
  .footer>span {
    text-align:center;
  }
  .wallpaper-controls {
    justify-content:center;
  }
  .wallpaper {
    background-position:54% center;
  }
  .section-heading>span {
    font-size:11px;
  }
  .year-foot {
    font-size:11px;
  }
}

@media(max-width:390px) {
  .page {
    width:calc(100% - 32px);
  }
  .profile h1 {
    font-size:72px;
  }
  .intro {
    font-size:19px;
  }
  .clock-card,.quote-card {
    padding:17px 14px;
  }
  .clock time {
    font-size:40px;
  }
  .quote-card blockquote {
    font-size:17px;
  }
  .site-link {
    padding:14px 11px;
    gap:10px;
  }
  .site-icon {
    width:31px;
    height:35px;
  }
  .site-subtitle {
    font-size:10px;
  }
  .date {
    font-size:11px;
  }
  .year-foot {
    font-size:10px;
  }
  .footer-separator {
    margin:0 7px;
  }
}

.small {
  margin-right:0;
  flex-shrink:0;
}

@media(min-width:801px) and (max-height:850px) {
  .header {
    height:76px;
  }
  main {
    padding:12px 0 20px;
  }
  .clock-card,.quote-card {
    min-height:172px;
    padding:16px 20px;
  }
  .clock {
    margin-top:5px;
  }
  .clock time {
    font-size:45px;
  }
  .date {
    margin:3px 0 8px;
  }
  .quote-card blockquote {
    margin:12px 0 8px;
    font-size:18px;
  }
  .section-heading {
    margin:20px 0 12px;
  }
  .site-link {
    min-height:66px;
    padding:11px 17px;
  }
  .year-card {
    margin-top:14px;
    padding:12px 18px;
  }
  .footer {
    min-height:56px;
  }
  .profile-note {
    margin-top:20px;
  }
}

@media(max-width:350px) {
  .top-cards {
    grid-template-columns:1fr;
  }
  .site-grid {
    grid-template-columns:1fr;
  }
  .profile h1 {
    font-size:64px;
  }
  .intro {
    font-size:18px;
  }
  .year-foot {
    flex-wrap:wrap;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition:none!important;
    animation:none!important;
    scroll-behavior:auto!important;
  }
}

