/* Lofore temporary site. System fonts only: nothing is loaded from other sites. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --field: #a8a29e;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --on-accent: #ffffff;
  --focus: #14b8a6;
  --note-bg: #f0fdfa;
  --note-line: #0f766e;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151312;
    --surface: #1e1b19;
    --text: #f5f5f4;
    --muted: #bdb7b2;
    --line: #34302d;
    --field: #78716c;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --on-accent: #042f2e;
    --focus: #5eead4;
    --note-bg: #10302c;
    --note-line: #2dd4bf;
  }
}

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

html {
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-size: 1.0625rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.skip:focus {
  left: 0.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  min-height: 4rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.mark rect {
  fill: var(--accent);
}

.mark .mark-ink {
  fill: var(--on-accent);
}

.language-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.language-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
}

.language-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.language-nav a[aria-current] {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

/* Text */
h1 {
  font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

.steps {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

.steps li {
  margin: 0.4rem 0;
  padding-left: 0.2rem;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

/* Forms */
.form {
  margin-top: 2rem;
}

.field {
  margin: 0 0 1.6rem;
  border: 0;
  padding: 0;
  min-width: 0;
}

.field > label,
legend {
  display: block;
  font-weight: 600;
  margin: 0 0 0.3rem;
  padding: 0;
}

.help {
  margin: -0.1rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--field);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

input[type="date"] {
  max-width: 16rem;
}

textarea {
  resize: vertical;
  min-height: 7.5rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
  border-radius: 8px;
}

.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.dates > div {
  flex: 1 1 13rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dates label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.choices {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.choice input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--accent);
}

.note {
  background: var(--note-bg);
  border-left: 4px solid var(--note-line);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem 0.1rem;
  margin: 0 0 1.5rem;
}

/* The field only bots fill in. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact details on the contact page */
.company {
  font-style: normal;
  color: var(--muted);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Privacy statement */
.privacy h1 {
  margin-bottom: 0.5rem;
}

.privacy h1 + p {
  color: var(--muted);
}

.privacy h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.privacy ul {
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}

.privacy li {
  margin: 0.4rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem 0 2.5rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* Language chooser at the root, and the 404 page */
.chooser main {
  padding-top: 4rem;
}

.brand-large {
  font-size: 2.4rem;
  margin: 0 0 2rem;
}

.brand-large .mark {
  width: 2.6rem;
  height: 2.6rem;
}

.choose-language {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.choose-language a {
  display: block;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.choose-language a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.choose-language .language {
  display: block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.choose-language .question {
  display: block;
  font-size: 1.15rem;
}

@media (max-width: 30rem) {
  main {
    padding-top: 1.75rem;
  }

  .actions .button {
    flex: 1 1 100%;
    text-align: center;
  }
}
