:root,
html[data-theme="dark"] {
  --bg: #121212;
  --panel: #181818;
  --panel-border: #2b2b2b;
  --text: #f3f3f3;
  --muted: #9a9a9a;
  --chip: #1b1b1b;
  --chip-border: #333333;
  --soft: #d7d7d7;
  --line: #242424;
  --copy: #7a7a7a;
  --chip-hover-bg: #202020;
  --chip-hover-border: #4a4a4a;
  --font: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Anton", "Impact", "Helvetica Neue", sans-serif;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --panel: #f4f4f4;
  --panel-border: #e4e4e4;
  --text: #121212;
  --muted: #666666;
  --chip: #f7f7f7;
  --chip-border: #dddddd;
  --soft: #333333;
  --line: #e6e6e6;
  --copy: #888888;
  --chip-hover-bg: #eeeeee;
  --chip-hover-border: #bbbbbb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.theme-toggle {
  position: fixed;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  right: calc(1.1rem + env(safe-area-inset-right, 0px));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
}

.theme-toggle:hover { color: var(--text); }

.switch {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #3a3a3a;
  border: 1px solid #555;
  flex-shrink: 0;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.switch-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f3f3f3;
  transition: transform 0.22s ease, background 0.22s ease;
}

html[data-theme="light"] .switch {
  background: #d9d9d9;
  border-color: #c8c8c8;
}

html[data-theme="light"] .switch-thumb {
  transform: translateX(16px);
  background: #121212;
}

.page {
  width: min(880px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 5.5rem 0 4.5rem;
}

.brand {
  display: flex;
  justify-content: center;
  padding: 0;
}

.brand img {
  width: min(147px, 39vw);
  height: auto;
}

.opening {
  text-align: center;
  padding: 5.5rem 0 5rem;
}

.opening h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.opening p {
  margin: 1.35rem auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  justify-items: center;
  text-align: center;
  margin: 0 auto 5rem;
  max-width: 760px;
}

.meta-item span {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-family: var(--font);
  font-size: 0.88rem;
  letter-spacing: 0;
  line-height: 1.35;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

a.chip:hover {
  color: var(--text);
  border-color: var(--chip-hover-border);
  background: var(--chip-hover-bg);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 2.6rem 1.8rem 2.3rem;
  margin: 0 auto 5.5rem;
  max-width: 740px;
  text-align: center;
}

.panel h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.panel p {
  max-width: 36em;
  margin: 0 auto;
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.panel p + p {
  margin-top: 0.85rem;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.7rem;
}

.signals span {
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--muted);
}

.about,
.experience {
  max-width: 640px;
  margin: 0 auto 5.5rem;
}

.experience h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.4rem;
}

.about p {
  color: var(--soft);
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.experience ul { list-style: none; }

.experience li {
  color: var(--soft);
  padding: 0.78rem 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.experience li:last-child { border-bottom: 1px solid var(--line); }

.experience .note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.footer {
  text-align: center;
  padding: 3rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
  font-size: 0.95rem;
}

.footer-links a:hover { color: var(--text); }

.footer .copy {
  font-size: 0.88rem;
  color: var(--copy);
}

@media (min-width: 720px) {
  .page { padding-top: 6.5rem; }
  .opening { padding: 6.2rem 0 5.8rem; }
  .meta {
    grid-template-columns: 0.8fr 1.6fr;
    align-items: start;
    column-gap: 2rem;
    margin-bottom: 5.5rem;
  }
  .panel { padding: 2.8rem 3.2rem 2.5rem; }
}


@media (max-width: 719px) {
  .page {
    width: min(880px, calc(100% - 1.6rem));
    padding: 4.2rem 0 3.2rem;
  }
  .opening {
    padding: 3.6rem 0 3.4rem;
  }
  .opening h1 {
    font-size: clamp(1.85rem, 9.5vw, 2.6rem);
  }
  .opening p {
    font-size: 0.98rem;
  }
  .chip {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }
  .meta { margin-bottom: 3.4rem; }
  .panel,
  .about,
  .experience { margin-bottom: 3.6rem; }
}
