/* easy settings */
:root {
  --font: 'Inter', Verdana, sans-serif;
  --background: white;
  --text: black;
  --line: rgba(0, 0, 0, 0.25);
  --shade: rgba(0, 0, 0, 0.04);
  --width: 720px;
  --top-space: 80px;
  --side-space: 32px;
  --font-size: 8px;
  --line-height: 1.8;
}

/* dark mode */
@media (prefers-color-scheme: dark) {
  :root {
  --background: rgb(23, 23, 23);
  --text: white;
  --line: rgba(255, 255, 255, 0.3);
  --shade: rgba(255, 255, 255, 0.08);
}

}

/* page */
body {
  max-width: var(--width);
  margin: var(--top-space) auto 32px;
  padding: 0 var(--side-space);
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: var(--line-height);
  word-wrap: break-word;
}

/* main area */
main {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

/* headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-weight: 900;
  line-height: 1.1;
}

h1#title,
main h1:first-of-type {
  visibility: hidden;
  font-size: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: none;
  margin-bottom: none;
}

/* links */
a,
.button-link {
  color: red;
  background: transparent;
  border: 0;
  padding: 0.1em;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

a:hover,
.button-link:hover {
  color: var(--background);
  background: var(--text);
}

/* basic text */
p {
  margin-top: 16px;
}

strong,
b {
  font-weight: 900;
}

em,
i {
  font-style: italic;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

blockquote {
  border-left: 2px solid var(--text);
  padding-left: 16px;
  margin: 24px 0;
  font-style: italic;
}

/* forms */
input,
textarea,
select,
button {
  font: inherit;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  background: var(--background);
  border: 1px solid var(--line);
  padding: 8px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button,
input[type="submit"] {
  background: var(--text);
  color: var(--background);
  border: 1px solid var(--text);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 700;
}

button:hover,
input[type="submit"]:hover {
  background: var(--background);
  color: var(--text);
}

/* guestbook messages */
.guestbook-message,
[class*="guestbook-message"] {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

/* replies */
.guestbook-message-reply {
  margin-left: 32px;
  padding-left: 16px;
}

/* bot checkbox */
.guestbooks___pow-container {
  margin: 16px 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--shade);
}

.guestbooks___pow-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* footer */
footer {
  padding: 32px 0;
  text-align: center;
}

/* small utilities */
.inline {
  width: auto !important;
}

.sr-only {
  display: none;
}