/* Colours, radii and sizes copied from packages/shared/src/design-tokens.ts (light theme only). */
:root {
  color-scheme: light;
  --teal-600: #0b6e78;
  --teal-700: #085a62;
  --teal-50: #e2f1f2;
  --ink-900: #142120;
  --ink-700: #3e4e4c;
  --ink-300: #d5dddb;
  --ink-100: #f4f7f6;
  --white: #ffffff;
  --ochre-700: #8f5600;
  --ochre-50: #fff1d9;
  /* 560 dp content width. */
  --content-width: 35rem;
}

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

body {
  margin: 0;
  background: var(--ink-100);
  color: var(--ink-900);
  font-family:
    Roboto,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--ink-300);
}

.site-header,
.site-footer,
main {
  padding-inline: max(16px, calc((100% - var(--content-width)) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  color: var(--ink-900);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

main {
  padding-block: 1.5rem 2rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.625rem;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.375rem;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.125rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 0 0.75rem;
}

a {
  color: var(--teal-600);
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--teal-700);
}

a:focus-visible {
  outline: 3px solid var(--teal-700);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999em;
}

.skip-link:focus {
  position: static;
  display: block;
  padding: 0.75rem 16px;
  background: var(--teal-50);
}

.lead {
  font-size: 1.125rem;
}

.hint,
.meta {
  color: var(--ink-700);
  font-size: 0.875rem;
}

.note,
.warning,
.draft-banner {
  padding: 0.75rem 1rem;
  border: 1px solid;
  border-radius: 12px;
}

.note {
  background: var(--teal-50);
  border-color: var(--teal-600);
}

.warning,
.draft-banner {
  background: var(--ochre-50);
  border-color: var(--ochre-700);
}

.preview-banner {
  margin: 0;
  padding: 0.5rem 16px;
  background: var(--ochre-50);
  border-bottom: 1px solid var(--ochre-700);
  text-align: center;
}

/* Something the owner still has to fill in. */
.todo {
  background: var(--ochre-50);
  color: var(--ochre-700);
  font-weight: 700;
}

/* Little side padding: each half of the code must fit a 360 px screen at 200% text. */
.invite-code {
  padding: 1rem 4px;
  background: var(--white);
  border: 2px solid var(--teal-600);
  border-radius: 12px;
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  user-select: all;
}

.invite-code span {
  white-space: nowrap;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  background: var(--teal-600);
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow-wrap: break-word;
}

.button,
.button:hover {
  color: var(--white);
}

.button:hover {
  background: var(--teal-700);
}

.site-footer {
  padding-block: 1rem;
  border-top: 1px solid var(--ink-300);
  color: var(--ink-700);
  font-size: 0.875rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0;
}

/* 48 px touch targets. */
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
