/* the frame every page wears, the home's (owner, 2026-11-12): the top bar, the guide links above the
   footer and the footer, drawn by frame.js. every page loads it last, so its own styles stop here:
   the frame carries the home's tokens, type, resets and focus rings. every class it names starts
   with werk-, so on another site's page neither the frame's rules nor the page's reach the other */
.werk-bar,
.werk-links,
.werk-foot {
  --paper: #f8f6f1;
  --ink: #16150f;
  --muted: #5f5a52;
  --line: #e3ddd1;
  --surface: #fff;
  --o: #ff5a0a;
  --blue: #1b3bd1;
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  font-kerning: auto;
  font-variation-settings: normal;
  line-height: normal;
  text-rendering: auto;
}
:root[data-theme="dark"] :is(.werk-bar, .werk-links, .werk-foot) {
  --paper: #15140f;
  --ink: #f6f3ec;
  --muted: #b5aea2;
  --line: #2e2b25;
  --surface: #1f1d18;
}
:where(.werk-bar, .werk-links, .werk-foot) * {
  margin: 0;
  padding: 0;
}
:where(.werk-bar, .werk-links, .werk-foot) :is(a, button) {
  font: revert;
  color: revert;
}
:where(.werk-bar, .werk-links, .werk-foot) :is(img, svg) {
  display: revert;
}
:where(.werk-bar, .werk-links, .werk-foot) :focus-visible {
  outline: revert;
  outline-offset: revert;
}
:where(.werk-bar, .werk-links, .werk-foot) p {
  text-wrap: pretty;
}
.werk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:is(.werk-bar, .werk-links, .werk-foot) > .werk-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* the bar */
.werk-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}
.werk-bar .werk-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.werk-brand img {
  display: block;
}
.werk-hero-bar .werk-brand img {
  height: 30px;
  width: auto;
}
/* on every page but the home the wordmark and the lockup lead back to it */
a.werk-brand {
  display: block;
  border-radius: 4px;
}
a.werk-lockup {
  color: inherit;
  text-decoration: none;
}
.werk-brand .werk-for-dark,
.werk-lockup .werk-for-dark {
  display: none;
}
:root[data-theme="dark"] :is(.werk-brand, .werk-lockup) .werk-for-light {
  display: none;
}
:root[data-theme="dark"] :is(.werk-brand, .werk-lockup) .werk-for-dark {
  display: block;
}

/* the bar's controls, drawn as stickers: light and dark, the language menu and the join button */
.werk-bar-end {
  display: flex;
  align-items: center;
  gap: 10px;
}
.werk-seg {
  min-inline-size: 0;
  display: inline-flex;
  padding: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
}
.werk-seg button {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.werk-seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.werk-seg svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.werk-lang {
  position: relative;
}
.werk-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 6px 12px;
  font:
    600 14px "Archivo",
    sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.werk-lang-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.werk-lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  min-width: 220px;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.werk-lang-list a {
  display: flex;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.werk-lang-list a:hover {
  background: #f3f0ea;
}
.werk-lang-region,
.werk-lang-code {
  color: var(--muted);
}
.werk-lang-code {
  margin-left: auto;
  font-size: 12px;
}
:root[data-theme="dark"] :is(.werk-lang-btn, .werk-lang-list) {
  background: var(--surface);
}
:root[data-theme="dark"] .werk-lang-list a:hover {
  background: #2a2721;
}
.werk-bar-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: var(--o);
  /* ink on orange in both themes: cream on orange fails contrast */
  color: #16150f;
  font:
    700 15px "Archivo",
    sans-serif;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.werk-bar-join:hover {
  transform: rotate(-3deg) scale(1.05);
}
.werk-bar-join:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
}
/* once signed up it reads "you're in", drawn as a sticker */
.werk-bar-join.werk-in-list {
  background: transparent;
  border: 1.5px solid var(--ink);
}
:root[data-theme="dark"] .werk-bar-join.werk-in-list {
  color: var(--ink);
}

/* the guide links above the footer and the footer */
.werk-links {
  padding: 60px 0 30px;
  border-top: 1.5px solid var(--line);
}
.werk-links-in {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}
.werk-links h2 {
  font:
    700 15px "Archivo",
    sans-serif;
  margin-bottom: 14px;
}
.werk-links ul {
  list-style: none;
  display: grid;
  gap: 9px;
}
.werk-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.werk-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.werk-links-all {
  grid-column: 1 / -1;
  font-weight: 700;
  color: var(--ink) !important;
}
.werk-foot {
  padding: 30px 0 50px;
  color: var(--muted);
  font-size: 14px;
}
.werk-foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.werk-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
}
.werk-lockup img {
  height: 20px;
  width: auto;
}
.werk-von {
  font-size: 13px;
  color: var(--muted);
}
.werk-foot-end {
  display: flex;
  align-items: center;
  gap: 12px;
}
.werk-social-link svg {
  width: 22px;
  height: 22px;
  fill: var(--muted);
}
.werk-legal {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--muted);
}
.werk-legal a {
  color: var(--muted);
}

@media (max-width: 900px) {
  :is(.werk-bar, .werk-links, .werk-foot) > .werk-wrap {
    padding: 0 20px;
  }
  .werk-bar-join {
    font-size: 14px;
    padding: 11px 16px;
  }
  .werk-links-in {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .werk-seg {
    display: none;
  }
  .werk-bar-end {
    gap: 8px;
  }
  /* the button sits left of the join button, so a list hung from it runs past a phone's left edge:
     it hangs from the bar's own right edge instead */
  .werk-bar .werk-bar-end {
    position: relative;
  }
  .werk-bar .werk-lang {
    position: static;
  }
}
/* a phone's bar holds the wordmark, the language and the longest call to action without touching */
@media (max-width: 420px) {
  .werk-hero-bar .werk-brand img {
    height: 24px;
  }
  .werk-bar-join {
    font-size: 13px;
    padding: 10px 13px;
  }
}
@media (max-width: 370px) {
  .werk-lang-now {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .werk-bar-join {
    transition: none;
  }
}
