/* Shared by both languages and the monitoring notes. No client-side runtime. */
:root {
  color-scheme: dark;
  --bg: #080f13;
  --surface: #0c151b;
  --ink: #f3f5f7;
  --muted: #b4bec7;
  --accent: #38c4f1;
  --line: #26323b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
.shell {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 12px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  background: #080f13e8;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 76px;
}
.wordmark,
.footer-wordmark {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -1.2px;
  line-height: 1;
}
.wordmark span,
.footer-wordmark span,
.hero h1 span {
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: 34px;
  margin-left: 65px;
}
.site-nav a,
.language-nav,
.header-cta {
  font-size: 13px;
}
.site-nav a {
  padding-block: 24px;
}
.language-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.language-nav span {
  color: #63717b;
}
.language-nav [aria-current] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 7px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 23px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  min-height: 46px;
  line-height: 1.5;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #03151e;
}
.button.primary:hover {
  background: #85ddfa;
  border-color: #85ddfa;
}
.button.outline {
  border-color: #657681;
}
.button.outline:hover {
  border-color: var(--accent);
}
.header-cta {
  border-color: var(--accent) !important;
  color: var(--accent);
  padding: 9px 17px;
  min-height: 40px;
}
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  padding-block: 48px 38px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 54%;
  max-width: 610px;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(80px, 8.4vw, 118px);
  letter-spacing: -0.065em;
  line-height: 1.02;
  margin-left: -5px;
}
.hero-lead {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  margin-top: 8px;
  letter-spacing: 0.01em;
}
.hero-detail {
  max-width: 510px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 17px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.hero-interests {
  list-style: none;
  display: flex;
  gap: 27px;
  padding: 0;
  margin: 26px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.hero-interests li:before {
  content: "◇";
  color: var(--accent);
  font-size: 16px;
  margin-right: 9px;
}
.workspace {
  position: absolute;
  inset: 0 0 0 37%;
}
.workspace img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 56%;
  filter: saturate(0.48);
}
.workspace:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg), #080f1370 28%, transparent 58%),
    linear-gradient(0deg, #080f1380, transparent 40%);
}
.workspace figcaption {
  position: absolute;
  bottom: 10px;
  right: 24px;
  z-index: 1;
  font-size: 9px;
  color: #c0c7cd;
  background: #080f13c9;
  padding: 2px 6px;
}
.section {
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 29px;
  letter-spacing: -0.035em;
}
p {
  color: var(--muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.section-heading p {
  margin-top: 5px;
  font-size: 14px;
}
.inline-link {
  color: var(--accent);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: #536773;
}
.project-art {
  height: 148px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #101c25;
  position: relative;
  overflow: hidden;
}
.card-copy {
  padding: 17px 17px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-copy h3 {
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.card-copy p {
  font-size: 13px;
  line-height: 1.65;
  margin-top: 10px;
  margin-bottom: 16px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: auto 0 18px;
}
.tags li {
  font-size: 9px;
  color: #c3ccd3;
  border: 1px solid #33434e;
  border-radius: 4px;
  padding: 2px 6px;
}
.card-link {
  color: var(--accent);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-height: 24px;
}
.rack-art {
  background: #0d171e;
}
.rack-unit {
  width: 75%;
  transform: perspective(450px) rotateY(18deg);
  padding: 9px;
  border: 3px solid #40515e;
  background: #04090d;
  box-shadow: 14px 10px 0 #070c11;
}
.rack-unit i {
  display: block;
  height: 25px;
  margin: 5px 0;
  background: repeating-linear-gradient(90deg, #293842 0 3px, #101820 3px 7px);
  border: 1px solid #48565d;
  border-radius: 2px;
  position: relative;
}
.rack-unit i:after {
  content: "";
  position: absolute;
  right: 8px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.cloud-art {
  background: #102737;
}
.cloud-art svg {
  width: 115px;
  fill: none;
  stroke: #e0f4ff;
  stroke-width: 5;
}
.nerve-art {
  background: #101d25;
}
.nerve-art strong {
  font-size: 25px;
  letter-spacing: 2px;
}
.nerve-art span {
  color: var(--accent);
  font-size: 34px;
}
.cykla-art {
  background: #c3d1dd;
  color: #173449;
  flex-direction: column;
  gap: 10px;
}
.cykla-art strong {
  font-size: 18px;
  letter-spacing: 4px;
}
.cycle-ring {
  width: 37px;
  height: 37px;
  border: 2px solid #234b65;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-30deg);
}
.code-art {
  background: #101a23;
}
.code-art strong {
  font:
    48px Consolas,
    monospace;
  color: #b7c9d8;
}
.code-art span {
  color: var(--accent);
}
.about-layout {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}
.profile-visual {
  background: #0c151a;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 21px;
  padding: 25px;
}
.profile-visual img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid #3d4c57;
}
.profile-visual figcaption {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}
.profile-visual figcaption span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.about-copy p,
.skills > p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
}
.about-copy p + p {
  margin-top: 15px;
}
.about-copy .button {
  margin-top: 20px;
  padding: 9px 17px;
  font-size: 12px;
  min-height: 40px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}
.skill {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 13px 10px;
  display: flex;
  gap: 8px;
  min-height: 100px;
}
.skill-icon {
  font-size: 21px;
  color: var(--accent);
  line-height: 1.1;
}
.skill h3 {
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 6px;
}
.skill p {
  font-size: 10px;
  line-height: 1.5;
}
.notebook-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
}
.notebook-layout h2 {
  font-size: 24px;
}
.notebook-layout p {
  font-size: 13px;
}
.note-link {
  display: block;
  font-size: 17px;
  margin-block: 19px 8px;
  color: var(--ink);
}
.note-link span {
  color: var(--accent);
}
.other-project {
  margin-top: 17px;
}
.other-project a {
  color: var(--accent);
}
.project-details details {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.project-details summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
}
.project-details details:target summary {
  color: var(--accent);
}
.project-details details p {
  padding: 0 0 16px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}
.contact-layout > div > p {
  font-size: 14px;
  max-width: 420px;
  margin-block: 12px 21px;
}
.closing-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 38px;
  background: #0e1a23;
}
.closing-panel p {
  font-size: 23px !important;
  font-style: italic;
  color: #d5dfe7;
  line-height: 1.55;
}
.closing-panel span {
  color: var(--accent);
  font-size: 24px;
}
.site-footer {
  padding-block: 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 11px;
}
.footer-inner p {
  font-size: 10px;
}
.footer-inner nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.footer-inner > a:last-child {
  margin-left: auto;
}
.article-main {
  padding-block: 45px 75px;
}
.article-shell {
  max-width: 1050px;
}
.article-back {
  margin-bottom: 36px;
}
.article-header {
  max-width: 800px;
}
.article-header h1 {
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}
.article-lead {
  font-size: 22px;
  margin-top: 25px;
  line-height: 1.65;
}
.reading-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 45px;
  border-top: 1px solid var(--line);
  padding-top: 35px;
  margin-top: 40px;
}
.reading-note p {
  font-size: 14px;
}
.article-body h2 {
  font-size: 27px;
  margin-bottom: 18px;
  line-height: 1.3;
}
.article-body p {
  font-size: 17px;
  line-height: 1.85;
}
.article-body p + p {
  margin-top: 18px;
}
.article-body section + section {
  margin-top: 35px;
}
.article-end {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 25px;
}
@media (min-width: 1500px) {
  .hero-inner {
    min-height: 510px;
  }
  .project-art {
    height: 165px;
  }
}
@media (max-width: 1150px) {
  .shell {
    width: calc(100% - 64px);
  }
  .site-nav {
    margin-left: 25px;
    gap: 24px;
  }
  .header-inner {
    gap: 22px;
  }
  .hero-copy {
    width: 58%;
  }
  .hero-lead {
    font-size: 24px;
  }
  .project-grid {
    gap: 12px;
  }
  .card-copy {
    padding: 14px 12px;
  }
  .card-copy h3 {
    font-size: 14px;
  }
  .about-layout {
    grid-template-columns: 0.6fr 1fr 1.2fr;
    gap: 23px;
  }
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skill {
    min-height: 87px;
  }
  .footer-inner nav {
    gap: 16px;
  }
  .footer-inner p {
    max-width: 160px;
  }
}
@media (max-width: 900px) {
  .header-cta {
    display: none;
  }
  .site-nav {
    margin-inline: auto;
  }
  .hero-copy {
    width: 67%;
  }
  .hero-inner {
    min-height: 480px;
  }
  .workspace {
    left: 30%;
  }
  .workspace img {
    opacity: 0.72;
  }
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .project-art {
    height: 150px;
  }
  .about-layout {
    grid-template-columns: 180px 1fr;
  }
  .skills {
    grid-column: 1/-1;
  }
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .skill {
    min-height: 90px;
  }
  .skill h3 {
    font-size: 13px;
  }
  .skill p {
    font-size: 12px;
  }
  .notebook-layout,
  .contact-layout {
    gap: 35px;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
  .footer-inner nav {
    margin-left: auto;
  }
  .footer-inner p {
    max-width: none;
  }
  .reading-layout {
    grid-template-columns: 160px 1fr;
    gap: 30px;
  }
}
@media (max-width: 650px) {
  .shell {
    width: calc(100% - 40px);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    min-height: 100px;
    padding-top: 16px;
  }
  .wordmark {
    font-size: 26px;
  }
  .language-nav {
    margin-left: auto;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 0;
  }
  .site-nav a {
    font-size: 12px;
    padding: 10px 0 14px;
    min-height: 44px;
  }
  .hero-inner {
    padding-top: 32px;
    padding-bottom: 220px;
    min-height: 670px;
    align-items: start;
  }
  .hero-copy {
    width: 100%;
    max-width: 490px;
  }
  .hero h1 {
    font-size: 86px;
  }
  .hero-lead {
    font-size: 23px;
    max-width: 340px;
  }
  .hero-detail {
    font-size: 14px;
    max-width: 430px;
  }
  .hero-actions {
    gap: 12px;
    margin-top: 21px;
  }
  .button {
    font-size: 12px;
    padding: 11px 17px;
    gap: 20px;
  }
  .hero-interests {
    gap: 14px;
    font-size: 9px;
    flex-wrap: wrap;
    margin-top: 22px;
  }
  .hero-interests li:before {
    margin-right: 5px;
  }
  .workspace {
    inset: auto 0 0;
    height: 300px;
  }
  .workspace img {
    object-position: 65% 66%;
    opacity: 1;
  }
  .workspace:after {
    background:
      linear-gradient(180deg, var(--bg), transparent 48%),
      linear-gradient(0deg, #080f1340, transparent);
  }
  .workspace figcaption {
    right: 15px;
    font-size: 8px;
    bottom: 9px;
  }
  .section {
    padding-block: 30px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }
  h2 {
    font-size: 26px;
  }
  .section-heading p {
    font-size: 13px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .project-art {
    height: 125px;
  }
  .card-copy {
    padding: 14px 12px;
  }
  .card-copy h3 {
    font-size: 14px;
  }
  .card-copy p {
    font-size: 12px;
  }
  .tags {
    gap: 4px;
  }
  .tags li {
    font-size: 9px;
  }
  .card-link {
    font-size: 10px;
  }
  .project-card:last-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 0.7fr 1fr;
  }
  .project-card:last-child .project-art {
    height: 100%;
    min-height: 190px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .profile-visual {
    min-height: 150px;
    flex-direction: row;
    gap: 25px;
    justify-content: start;
  }
  .profile-visual img {
    width: 85px;
    height: 85px;
  }
  .profile-visual figcaption {
    text-align: left;
  }
  .skills {
    grid-column: auto;
  }
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skill p {
    font-size: 11px;
  }
  .skill h3 {
    font-size: 12px;
  }
  .notebook-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .closing-panel {
    padding: 18px 25px;
  }
  .closing-panel p {
    font-size: 21px !important;
  }
  .footer-inner {
    gap: 20px;
  }
  .footer-inner nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .footer-inner p {
    max-width: 190px;
  }
  .footer-inner > a:last-child {
    margin-left: 0;
  }
  .article-main {
    padding-top: 28px;
  }
  .article-lead {
    font-size: 19px;
  }
  .reading-layout {
    grid-template-columns: 1fr;
    margin-top: 28px;
    padding-top: 28px;
  }
  .reading-note {
    display: none;
  }
  .article-body h2 {
    font-size: 24px;
  }
  .article-body p {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .shell {
    width: calc(100% - 32px);
  }
  .hero-lead {
    font-size: 21px;
  }
  .hero-interests {
    gap: 9px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card:last-child {
    display: flex;
  }
  .project-card:last-child .project-art {
    min-height: 125px;
    border-right: 0;
  }
  .project-art {
    height: 150px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    padding-bottom: 215px;
  }
  .footer-inner p {
    max-width: 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
