/* makings of a memoir — guestbook theme */

html {
  font-family: serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

:root {
  --width: 600px;
  --font-main: Palatino, 'Palatino Linotype', 'Book Antiqua', 'URW Palladio L', serif;
  --font-secondary: Palatino, 'Palatino Linotype', 'Book Antiqua', 'URW Palladio L', serif;
  --font-scale: 1.2em;
  --background-color: #faf6f0;
  --heading-color: #2c2420;
  --text-color: #3d3530;
  --link-color: #2d5f4a;
  --visited-color: #3a6b55;
  --code-background-color: #f0ebe4;
  --code-color: #3d3530;
  --blockquote-color: #5c524a;
  --em-color: #3d3530c4;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-scale);
  margin: auto;
  padding: 20px;
  max-width: var(--width);
  text-align: left;
  background-color: var(--background-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.75;
  color: var(--text-color);
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--heading-color);
  font-weight: 300;
  letter-spacing: 0.04em;
}

h1#title {
  line-height: 1.4;
  border-bottom: 1px solid #ddd6cb;
  padding-bottom: 0.3em;
  display: none;
}

a {
  color: var(--link-color);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #b8cfc4;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: #2d5f4a;
}

strong, b {
  color: var(--heading-color);
}

main {
  line-height: 1.75;
  border-bottom: 1px solid #ddd6cb;
  padding-bottom: 1.2em;
}

em, i {
  color: var(--em-color);
}

hr {
  border: 0;
  border-top: 1px solid #ddd6cb;
  margin: 2.5em 0;
}

code {
  font-family: monospace;
  padding: 2px;
  background-color: var(--code-background-color);
  color: var(--code-color);
  border-radius: 3px;
}

blockquote {
  border-left: 2px solid #b8cfc4;
  color: var(--blockquote-color);
  padding-left: 1.5em;
  font-style: italic;
  line-height: 1.7;
}

footer {
  padding: 25px 0;
  text-align: center;
  font-size: 0.82em;
  color: #9a8e82;
}

.inline {
  width: auto !important;
}

.highlight, .code {
  padding: 1px 15px;
  background-color: var(--code-background-color);
  color: var(--code-color);
  border-radius: 3px;
  margin-block-start: 1em;
  margin-block-end: 1em;
  overflow-x: auto;
}

.sr-only {
  display: none;
}

.button-link {
  background: none;
  border: none;
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: #b8cfc4;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  cursor: pointer;
  font: inherit;
  transition: text-decoration-color 0.2s ease;
}

.button-link:hover {
  text-decoration-color: #2d5f4a;
}

/* Reply styling */
.guestbook-message-reply {
  margin-left: 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid #b8cfc4;
  opacity: 0.95;
}

.guestbook-message-reply blockquote {
  margin: 0;
  padding-left: 0;
  border-left: none;
}

/* Proof of Work bot deterrent */
.guestbooks___pow-container {
  margin: 0.75em 0;
}

.guestbooks___pow-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  font-size: 0.95em;
}

.guestbooks___pow-checkbox-label input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.guestbooks___pow-label-text--loading {
  opacity: 0.7;
}

.guestbooks___pow-label-text--verified {
  color: #2d5f4a;
}

.guestbooks___pow-label-text--error {
  color: #9e3a3a;
}

::selection {
  background: #d4e8dc;
  color: #2c2420;
}

/* Hide the messages header */
#guestbooks___guestbook-messages-header {
  display: none;
}

/* Hide the website input field */
label[for="website"],
input[name="website"],
input#website {
  display: none !important;
}
/* Hide the messages header */
#guestbooks___guestbook-messages-header {
  display: none;
}

/* Hide website field (2nd container) and answer field (4th container) */
#guestbooks___guestbook-form .guestbooks___input-container:nth-child(2),
#guestbooks___guestbook-form .guestbooks___input-container:nth-child(4) {
  display: none !important;
}

/* Tighten spacing between form fields */
.guestbooks___input-container {
  margin-top: 0.25em !important;
  margin-bottom: 0.25em !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.guestbooks___pow-container {
  margin-top: 0.25em !important;
  margin-bottom: 0.25em !important;
}