:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #252525;
  --muted: #8d8d8d;
  --soft: #eeeeee;
  --line: #e6e6e6;
  --dark: #202020;
  --mint: #b9e7dd;
  --accent: #ffb997;
  --accent-soft: #fafaf7;
  --panel: #ffb997;
  --panel-text: #252525;
}

@font-face {
  font-family: "Noto Sans Local";
  src: url("assets/fonts/NotoSans-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Local";
  src: url("assets/fonts/NotoSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Local";
  src: url("assets/fonts/NotoSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Local", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-user-select: none;
  user-select: none;
}

a {
  color: inherit;
}

body.dark-style {
  --bg: #141414;
  --text: #f1f1ed;
  --muted: #aaa7a0;
  --soft: #2b2b2b;
  --line: #ffb997;
  --dark: #fafaf7;
  --mint: #ffb997;
  --accent: #ffb997;
  --accent-soft: #22201f;
  --panel: #fafaf7;
  --panel-text: #252525;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(22px, 5vw, 96px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 100%;
  display: block;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--accent);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
  white-space: nowrap;
}

.theme-toggle {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.theme-toggle span {
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  box-shadow: inset -5px 0 0 var(--text);
  opacity: 0.72;
}

.theme-toggle:hover span {
  opacity: 1;
}

body.dark-style .theme-toggle span {
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow:
    0 -8px 0 -6px var(--accent),
    0 8px 0 -6px var(--accent),
    8px 0 0 -6px var(--accent),
    -8px 0 0 -6px var(--accent),
    6px 6px 0 -6px var(--accent),
    -6px 6px 0 -6px var(--accent),
    6px -6px 0 -6px var(--accent),
    -6px -6px 0 -6px var(--accent);
  opacity: 1;
}

.lang {
  display: inline-flex;
  gap: 2px;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease;
}

.lang button.active {
  color: var(--text);
}

.lang button:hover,
.lang button.active:hover {
  color: var(--accent);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 130px 22px 96px;
}

.hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(80px, 12vw, 190px);
  align-items: center;
  min-height: 620px;
}

.hero-contact {
  align-self: center;
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.signature {
  margin-bottom: 42px;
  color: var(--muted);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 76px;
  font-weight: 400;
  line-height: 0.8;
  transition: color 180ms ease;
}

.signature:hover {
  color: var(--accent);
}

.hero-contact p {
  margin: 0;
}

.hero-contact a {
  color: var(--muted);
  text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent);
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.hero-contact a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.hero-main {
  display: grid;
  justify-items: start;
}

.portrait {
  display: grid;
  width: 228px;
  height: 326px;
  place-items: center;
  margin-bottom: 52px;
  background: var(--accent);
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
  user-select: none;
}

.eyebrow,
.meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
  color: var(--text);
}

h1 small {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.36;
}

h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: right;
}

h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: 0;
}

.row-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(80px, 12vw, 190px);
  padding: 96px 0;
}

.section-body {
  max-width: 620px;
}

.two-col {
  display: grid;
  gap: 24px;
}

.section-body p,
.project-list p,
.experience-list p {
  color: var(--text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.project-list,
.experience-list {
  display: grid;
  gap: 60px;
}

.project-list article,
.experience-list article {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.project-list article:last-child,
.experience-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.muted {
  margin-bottom: 0;
  color: var(--muted) !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  line-height: 1.35 !important;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stats div {
  min-height: 132px;
  padding: 22px;
  background: var(--panel);
  color: var(--panel-text);
}

.stats strong {
  display: block;
  margin-bottom: 16px;
  font-size: 32px;
  line-height: 1;
}

.stats span {
  display: block;
  color: var(--panel-text);
  font-size: 13px;
  line-height: 1.3;
}

.tool-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-bottom: 48px;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

.tool-stream span:nth-child(4n + 1) {
  color: var(--text);
}

.tool-stream span {
  display: inline-flex;
  align-items: center;
}

.tool-stream span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 14px;
  margin: 0 16px;
  background: var(--accent);
  opacity: 0.85;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.skill-grid article {
  min-height: 128px;
  padding: 20px;
  background: var(--panel);
  color: var(--panel-text);
}

.skill-grid strong {
  display: block;
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1;
}

.skill-grid p {
  margin-bottom: 0;
  color: var(--panel-text);
  font-size: 13px;
  line-height: 1.35;
}

.contact-section {
  margin-top: 70px;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}

.contact-section h3 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin-top: 28px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
  outline: none;
  padding: 7px 0 10px;
  resize: vertical;
}

.contact-form input[type="file"] {
  border-bottom: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding-top: 4px;
}

.contact-form input[type="file"]::file-selector-button {
  border: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 300;
  margin-right: 12px;
  padding: 8px 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--text);
}

.contact-form button {
  justify-self: start;
  min-width: 142px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--panel-text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
  padding: 12px 18px;
}

.contact-form button:hover {
  background: var(--panel);
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-note {
  margin: 0;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  line-height: 1.45 !important;
}

.form-trap {
  display: none !important;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.contact-actions a {
  color: var(--text);
  font-size: 12px;
  font-weight: 300;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--text);
  text-decoration: none;
  opacity: 0.62;
  backdrop-filter: blur(12px);
}

.to-top img {
  width: 18px;
  height: 18px;
  opacity: 0.72;
}

.to-top:hover {
  opacity: 0.92;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .page {
    padding-top: 78px;
  }

  .hero,
  .row-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-contact,
  h2 {
    justify-items: start;
    text-align: left;
  }

  .hero {
    min-height: auto;
  }

  .signature {
    margin-bottom: 24px;
  }

  .portrait {
    margin-bottom: 36px;
  }

  .section-body {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 14px 16px;
  }

  .nav {
    gap: 18px;
    font-size: 13px;
  }

  .page {
    padding: 56px 16px 72px;
  }

  .hero-contact {
    font-size: 15px;
  }

  .signature {
    font-size: 62px;
  }

  .portrait {
    width: 100%;
    max-width: 228px;
    height: 310px;
  }

  h1,
  h3 {
    font-size: 23px;
  }

  h1 small {
    font-size: 16px;
  }

  .section-body p,
  .project-list p,
  .experience-list p {
    font-size: 15px;
    line-height: 1.56;
  }

  .row-section {
    padding: 72px 0;
  }

  .stats,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .tool-stream {
    margin-bottom: 40px;
    font-size: 15px;
  }

  .tool-stream span:not(:last-child)::after {
    height: 13px;
    margin-inline: 11px;
  }
}
