:root {
  --bg: #0d0c0b;
  --card: #151311;
  --card2: #1c1916;
  --line: #29241f;
  --text: #ede6db;
  --body: #cbc2b5;
  --mute: #8d8478;
  --dim: #5f584f;
  --acc: #f2a654;
  --blue: #86a3e6;
  --paper: #efe7d8;
  --r: 18px;
  --sans: "Geist", system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.55 var(--sans);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 70% 40% at 50% -8%, #f2a65414, transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--acc); color: #1a120a; }

.ms {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

/* ---------- profile ---------- */

.profile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(155deg, #1f1b17 0%, #151311 55%, #12100e 100%);
  box-shadow: 0 1px 0 #ffffff0d inset, 0 24px 60px -30px #000;
  overflow: hidden;
}
.ava {
  position: relative;
  min-height: 268px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.ava img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  transform-origin: 50% 2%;
}
.who {
  display: flex;
  flex-direction: column;
  padding: 30px 34px 28px;
}
.who h1 {
  margin: 0;
  font-size: 46px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.035em;
}
.who h1 span {
  margin-left: 12px;
  font: 500 14px var(--mono);
  letter-spacing: 0;
  color: var(--dim);
  vertical-align: 8px;
}
.line { margin: 12px 0 0; max-width: 54ch; font-size: 16px; color: var(--body); }
.spec {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  row-gap: 14px;
}
.spec div { padding: 0 24px; border-left: 1px solid var(--line); }
.spec div:first-child { padding-left: 0; border-left: 0; }
.spec dt {
  font: 500 10.5px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.spec dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
#idtime { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

.links { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card2);
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.btn .ms { color: var(--acc); }
.btn:hover, .btn:focus-visible { border-color: #f2a65466; background: #211c17; }
.btn.main { background: var(--acc); border-color: var(--acc); color: #1d1308; }
.btn.main .ms { color: inherit; }
.btn.main:hover, .btn.main:focus-visible { background: #f6b66e; }

/* ---------- note ---------- */

.note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 16px;
  border-left: 3px solid var(--acc);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, #f2a65412, transparent 65%);
  font-size: 14px;
  color: var(--body);
}
.note span { color: var(--text); font-weight: 600; }
kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--card2);
  font: 11.5px var(--mono);
  color: var(--body);
}

/* ---------- cards ---------- */

.card {
  padding: 20px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.card h2 {
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--acc);
  letter-spacing: -.005em;
}
.card h2 small { font: 400 12px var(--mono); color: var(--dim); }

.about { grid-column: span 7; }
.about p { margin: 0 0 12px; color: var(--body); font-size: 15.5px; line-height: 1.65; }
.about p:last-child { margin: 0; color: var(--mute); }
.about b { color: var(--text); font-weight: 600; }

.clock { grid-column: span 5; display: flex; flex-direction: column; }
.now {
  margin: 4px 0 6px;
  font: 500 52px/1 var(--mono);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
#ss { color: var(--dim); font-size: 26px; letter-spacing: 0; }
.where { margin: 0; color: var(--body); }
#mood { color: var(--mute); }
.day {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
}
.day i {
  position: relative;
  height: 22px;
  border-radius: 4px;
  background: var(--card2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.day i.past { background: #f2a65426; border-color: #f2a65422; }
.day i.cur { border-color: var(--acc); }
.day i.cur::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 0%);
  background: var(--acc);
}
.dayaxis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font: 10.5px var(--mono);
  color: var(--dim);
}
.diff {
  margin: auto 0 0;
  padding-top: 14px;
  font: 12px var(--mono);
  color: var(--dim);
}

/* ---------- projects ---------- */

.work { grid-column: 1 / -1; }
.projects {
  list-style: none;
  margin: 0 -10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
}
.proj {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: start;
  gap: 14px;
  padding: 11px 10px;
  border-radius: 12px;
  transition: background .15s;
}
a.proj:hover, a.proj:focus-visible { background: var(--card2); }
.pi {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--acc);
}
.pi .ms { font-size: 21px; }
.pt { display: block; color: var(--mute); font-size: 13.5px; line-height: 1.5; }
.pt b {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.pt b .ms { font-size: 15px; color: var(--dim); transition: transform .15s, color .15s; }
a.proj:hover .pt b .ms { color: var(--acc); transform: translate(2px, -2px); }
.pt b em {
  margin-left: 4px;
  font: 400 12px var(--mono);
  font-style: normal;
  color: var(--dim);
}

/* ---------- stack ---------- */

.stack { grid-column: span 7; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cols h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font: 500 10.5px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cols li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--body); }
.cols li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 7px; border-radius: 1px; background: var(--acc); opacity: .7; }

/* ---------- page info ---------- */

.page { grid-column: span 5; display: flex; flex-direction: column; }
.bar {
  display: flex;
  gap: 2px;
  height: 14px;
  margin-top: 4px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--card2);
}
.bar i { display: block; min-width: 3px; }
.legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}
.legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.legend li i { width: 9px; height: 9px; border-radius: 2px; }
.legend li b { margin-left: auto; font: 500 12.5px var(--mono); color: var(--text); }
.sum {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font: 12.5px var(--mono);
  color: var(--mute);
}
.sum b { font-weight: 500; color: var(--text); }
.fine { margin: auto 0 0; padding-top: 12px; font: 12px var(--mono); color: var(--dim); }

/* ---------- footer ---------- */

.foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 6px 0;
  font: 12px var(--mono);
  color: var(--dim);
}

/* ---------- entrance ---------- */

.wrap > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.wrap > :nth-child(2) { animation-delay: .06s; }
.wrap > :nth-child(3) { animation-delay: .12s; }
.wrap > :nth-child(4) { animation-delay: .16s; }
.wrap > :nth-child(5) { animation-delay: .22s; }
.wrap > :nth-child(6) { animation-delay: .28s; }
.wrap > :nth-child(7) { animation-delay: .32s; }
.wrap > :nth-child(8) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  .wrap > * { animation: none; }
  .btn { transition: none; }
}

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .about, .clock, .stack, .page { grid-column: 1 / -1; }
  .projects { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 32px 14px 32px; gap: 12px; }
  .profile { grid-template-columns: 1fr; }
  .ava { min-height: 0; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--line); }
  .ava img { transform: none; object-position: 50% 0; }
  .who { padding: 22px 20px 20px; }
  .who h1 { font-size: 38px; }
  .who h1 span { display: block; margin: 8px 0 0; vertical-align: 0; }
  .spec { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .spec div, .spec div:first-child { padding: 0; border: 0; }
  .spec dd { white-space: normal; }
  .card { padding: 18px 18px 20px; }
  .now { font-size: 44px; }
  .cols { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .proj { grid-template-columns: 38px 1fr; }
  .foot { flex-direction: column; gap: 4px; }
}
