/* packages/client/src/components/forms/TextField.css */
x-text-field {
  color: var(--color-foreground);
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

x-text-field .input-container {
  background-color: var(--color-background);
  border: 1px solid var(--color-foreground);
  display: flex;
  cursor: text;
  border-radius: .375rem;
  align-items:  center;
  padding-inline-start: .75em;
  padding-inline-end: .75em;
}

form[data-submitted="true"] :is(x-text-field) .input-container:has(input:invalid) {
  border: 1px solid #f99;
}

x-text-field .input-container:focus-within {
  outline: 2px solid hsl(from var(--color-accent-1) h s 90%);
  border: none;
}

x-text-field .input-container:has(input:read-only) {
  background-color: hsl(from var(--color-background) h s 20%);
}

x-text-field input {
  appearance: none;
  font: inherit;
  cursor: inherit;
  outline: none;
  background: none;
  background-color: inherit;
  border: none;
  width: 100%;
  min-height: 42px;
  margin: auto 0;
  padding: 0;
}

/* app/client/src/components/HelloWorld.css */
x-hello-world {
  display: block;
  border: 2px solid #000;
}

x-hello-world h1 {
  color: var(--color-primary);
}

x-hello-world p {
  color: #000;
  font-size: xx-large;
}

/* app/client/src/styles/reset.css */
*, *:before, *:after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin-block-end: 0;
}

ul[role="list"], ol[role="list"] {
  list-style: none;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4, button, input, label {
  line-height: 1.1;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img, picture {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

/* app/client/src/styles/global.css */
:root {
  --color-background: oklch(100% 0 0);
  --color-foreground: oklch(0% 0 0);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #000;
    --color-foreground: #fff;
  }
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-color: var(--color-background);
  color: var(--color-foreground);
  height: 100vh;
  padding: 1rem;
}

header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items:  center;
}

header ul {
  display: flex;
  list-style: none;
  flex-direction: row;
  justify-content: end;
  gap: 1rem;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
}

/* app/client/src/index.css */

