/* Shared design tokens for the homepage and every project route. */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  color-scheme:dark;
  --paper:#0a111c;
  --surface:#131d2c;
  --ink:#f6f4ef;
  --muted:#a4b0c0;
  --line:#27344a;
  --accent:#ffb23d;
  --accent-2:#38d9ee;
  --button-ink:#1a1204;
  --green:#ff7a4d;
  --radius:10px;
  --content:1440px;
  --gutter:clamp(22px,4.2vw,64px)
}
html[data-theme='light'] {
  color-scheme:light;
  --paper:#fbf8f2;
  --surface:#f0eadd;
  --ink:#1a2233;
  --muted:#58606f;
  --line:#dcd3c2;
  --accent:#a85a00;
  --accent-2:#007b91;
  --button-ink:#fff;
  --green:#b3411a
}
*,*::before,*::after {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:110px
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.65 Manrope,'Segoe UI',sans-serif
}
button,input {
  font:inherit
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button {
  color:inherit;
  cursor:pointer
}
a {
  color:inherit;
  text-underline-offset:.25em
}
img {
  max-width:100%;
  display:block
}
[hidden] {
  display:none!important
}
:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px
}
::selection {
  background:var(--accent);
  color:var(--paper)
}
.accent {
  color:var(--accent)
}
.mono {
  font:400 12px/1.6 'DM Mono',monospace;
  color:var(--muted);
  letter-spacing:.025em
}
.page-width {
  width:calc(100% - 2 * var(--gutter));
  max-width:var(--content);
  margin-inline:auto
}
.skip-link {
  position:fixed;
  z-index:30;
  top:-100px;
  left:var(--gutter);
  background:var(--accent);
  color:var(--button-ink);
  padding:12px 18px
}
.skip-link:focus {
  top:10px
}
.language-switcher {
  display:flex;
  align-items:center;
  gap:7px;
  font:13px 'DM Mono',monospace;
  color:var(--muted)
}
.language {
  border:0;
  background:none;
  padding:12px 5px;
  min-height:44px;
  color:var(--muted);
  font:inherit
}
.language.active {
  color:var(--accent)
}
.theme-button {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:50%;
  font-size:25px;
  line-height:1
}
.theme-button:hover {
  border-color:var(--accent)
}
.text-link {
  display:inline-flex;
  gap:12px;
  align-items:center;
  font-weight:600;
  text-decoration:none
}
.text-link:hover {
  text-decoration:underline
}
.button,.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:16px 24px;
  min-height:52px;
  background:var(--accent);
  color:var(--button-ink);
  border:1px solid transparent;
  border-radius:6px;
  font-weight:700;
  text-decoration:none;
  transition:transform .2s
}
.button:hover,.btn:hover {
  transform:translateY(-2px)
}
.status {
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--green);
  font:12px/1.5 'DM Mono',monospace
}
.status-dot {
  display:inline-block;
  flex-shrink:0;
  height:8px;
  width:8px;
  border-radius:50%;
  background:var(--green)
}
.media-dialog {
  max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 32px);
  padding:52px 20px 20px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  color:var(--ink)
}
.media-dialog::backdrop {
  background:#000c
}
.media-dialog img {
  max-width:calc(100vw - 76px);
  max-height:calc(100dvh - 128px);
  width:auto;
  height:auto;
  object-fit:contain;
  margin:auto
}
.dialog-close {
  position:absolute;
  top:6px;
  right:8px;
  min-height:44px;
  padding:8px 14px;
  background:none;
  border:0;
  color:var(--ink)
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
}
