html {
  font-family: "webfont-text", Arial, Helvetica, sans-serif;
  font-weight: 300;
}

.title {
  font-family: "webfont-title", Georgia, "Times New Roman", Times, serif;
  font-weight: 300;
}

strong {
  font-weight: 600;
}

i,
em {
  font-style: italic;
}

:root,
[data-theme=light] {
  --html-text: #555;
  --html-bg: white;
  --heading-color: #000;
  --input-default-border: #eee;
  --input-hover-border: #ccc;
  --input-active-border: #333;
  --button-default-text: black;
  --button-default-bg: #eee;
  --button-hover-text: black;
  --button-hover-bg: #ccc;
  --button-active-text: black;
  --button-active-bg: #ddd;
}

[data-theme=dark] {
  --html-text: #555;
  --html-bg: black;
  --heading-color: #ccc;
  --input-default-border: #333;
  --input-hover-border: #555;
  --input-active-border: #ccc;
  --button-default-text: #ccc;
  --button-default-bg: #333;
  --button-hover-text: #ccc;
  --button-hover-bg: #555;
  --button-active-text: #ccc;
  --button-active-bg: #444;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --html-text: #555;
    --html-bg: black;
    --heading-color: #ccc;
    --input-default-border: #333;
    --input-hover-border: #555;
    --input-active-border: #ccc;
    --button-default-text: #ccc;
    --button-default-bg: #333;
    --button-hover-text: #ccc;
    --button-hover-bg: #555;
    --button-active-text: #ccc;
    --button-active-bg: #444;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

input:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--html-bg) inset !important;
  -webkit-text-fill-color: var(--html-text) !important;
}

::-moz-placeholder {
  color: var(--html-text);
  opacity: 0.75;
}

::placeholder {
  color: var(--html-text);
  opacity: 0.75;
}

input,
button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

html {
  color: var(--html-text);
  background-color: var(--html-bg);
  font-family: "webfont-body", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  height: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  padding: 24px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 360px;
  margin: auto;
}

.title-block {
  margin-bottom: 36px;
}

.title {
  color: var(--heading-color);
  font-family: "webfont-title", Georgia, "Times New Roman", Times, serif;
  font-weight: 300;
}
.title.big {
  font-size: 72px;
  line-height: 1;
  letter-spacing: normal;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
}

.form-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

input {
  width: 100%;
  font: inherit;
  color: inherit;
  background-color: transparent;
  border: 1px solid var(--input-default-border);
  padding: 12px 16px;
  border-radius: 4px;
  transition: border-color 0.2s;
}
input:hover {
  border-color: var(--input-hover-border);
}
input:focus {
  border-color: var(--input-active-border);
}

.button-group {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.button-group.end {
  justify-content: flex-end;
}

button,
.button,
.flex-button {
  cursor: pointer;
  padding: 12px 18px;
  line-height: 1;
  border-radius: 48px;
  color: var(--button-default-text);
  background-color: var(--button-default-bg);
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s, color 0.2s;
}
button:hover, button:focus,
.button:hover,
.button:focus,
.flex-button:hover,
.flex-button:focus {
  color: var(--button-hover-text);
  background-color: var(--button-hover-bg);
}
button:active,
.button:active,
.flex-button:active {
  color: var(--button-active-text);
  background-color: var(--button-active-bg);
}
button .text,
.button .text,
.flex-button .text {
  flex-grow: 1;
  flex-shrink: 0;
  display: block;
}
button .icon,
.button .icon,
.flex-button .icon {
  flex-grow: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

footer {
  display: block;
  font-size: 12px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.3);
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: rgba(0, 0, 0, 0.03);
}
footer .footer-content {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  gap: 12px;
}
footer .footer-box {
  display: block;
  padding: 12px;
}
@media (min-width: 480px) {
  footer .footer-box {
    padding: 24px;
  }
}