@font-face {
  font-family: "Ubuntu Sans Local";
  src: url("assets/fonts/ubuntu-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu Sans Mono Local";
  src: url("assets/fonts/ubuntu-sans-mono-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f7f5f0;
  --ink: #282421;
  --body: #4f4944;
  --muted: #77706a;
  --line: #ddd7d0;
  --accent: #b94318;
  --mono: "Ubuntu Sans Mono Local", "Ubuntu Mono", monospace;
  --sans: "Ubuntu Sans Local", Ubuntu, sans-serif;
  --command-orange: #b94318;
  --command-blue: #397a9d;
  --command-green: #477d55;
  --command-violet: #806092;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --page: #191614;
    --ink: #f1ece6;
    --body: #d1c8c0;
    --muted: #a49a91;
    --line: #39312c;
    --accent: #f07848;
    --command-orange: #f07848;
    --command-blue: #70b9dc;
    --command-green: #8bc995;
    --command-violet: #c5a1df;
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #191614;
  --ink: #f1ece6;
  --body: #d1c8c0;
  --muted: #a49a91;
  --line: #39312c;
  --accent: #f07848;
  --command-orange: #f07848;
  --command-blue: #70b9dc;
  --command-green: #8bc995;
  --command-violet: #c5a1df;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--page); }
body {
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--page);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { color: var(--page); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.skip-link {
  position: fixed;
  z-index: 5;
  top: -4rem;
  left: 1rem;
  padding: .5rem .75rem;
  color: var(--page);
  background: var(--accent);
}
.skip-link:focus { top: 1rem; }

.site-header, main { position: relative; z-index: 1; }
.site-header {
  width: calc(100% - 48px);
  max-width: 900px;
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 600 13px var(--mono); text-decoration: none; }
.header-controls { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--accent); }
.icon { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
}
.language { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 12px var(--mono); }
.language button {
  min-width: 32px;
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.language button[aria-pressed="true"], .language button:hover { color: var(--accent); }

main {
  width: calc(100% - 40px);
  max-width: 680px;
  margin: auto;
  padding: clamp(74px, 13vh, 138px) 0 clamp(64px, 10vh, 108px);
  text-align: center;
}
.intro { margin-inline: auto; }
.role { margin: 0 0 13px; color: var(--accent); font-size: 14px; }
h1 {
  margin: 0 0 19px;
  font-size: clamp(2.15rem, 6vw, 2.8rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.summary { max-width: 57ch; margin: 0 auto; color: var(--body); font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.tools { max-width: 100%; margin: 26px 0 0; color: var(--muted); font: 12px/1.8 var(--mono); overflow-wrap: anywhere; }
.contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; margin-top: 43px; }
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  color: var(--ink);
  font-size: 14px;
  text-decoration-color: color-mix(in srgb, var(--accent), transparent 58%);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.contact a .icon { color: var(--muted); }
.contact a b { color: var(--accent); font: 13px var(--mono); }
.contact a:hover, .contact a:hover .icon { color: var(--accent); }

.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ambient-line {
  position: absolute;
  max-width: min(28vw, 420px);
  overflow: hidden;
  color: var(--command-color, var(--command-orange));
  font: 12px/1.5 var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
}
.ambient-line.show { animation: command-fade 4.8s ease-in-out both; }
@keyframes command-fade {
  0%, 100% { opacity: 0; }
  14%, 78% { opacity: var(--command-opacity, .32); }
}

@media (max-width: 600px) {
  .site-header { width: calc(100% - 36px); }
  main { width: calc(100% - 36px); padding-top: clamp(64px, 12vh, 100px); }
  .summary { font-size: 16px; }
  .tools { max-width: 36ch; margin-inline: auto; }
  .contact { gap: 8px 22px; margin-top: 34px; }
  .ambient-line { max-width: 76vw; font-size: 11px; }
  .ambient-line:nth-child(n + 3) { display: none; }
  .ambient-line.show { animation-duration: 1.9s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient { display: none; }
}
