/* =============================================================================
   CSS CUSTOM PROPERTIES (Theme Colors)
   Edit these variables to change the entire color scheme
   ============================================================================= */

:root {
  /* Theme Colors */
  --bg-color: #d1cfcf;
  --text-color: #a69f9f;
  --link-color: #a69f9f;
  --inactive-color: hsl(from var(--link-color) h s l / 50%);;
  --header-color: white;
  --overlay-bg: rgba(255,255,255,0.5);
  --overlay-text: #827c7c;
  --toggle-inactive: #a69f9f;
  --toggle-active: #ffffff;

  /* Animation */
  --good-ease: cubic-bezier(.15, .02, 0, 1);
}

/* =============================================================================
   BASE STYLES
   ============================================================================= */

body {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "helvetica neue", helvetica, arial, sans-serif;
  opacity: 0;
  animation: fadeIn ease 3s;
  animation-fill-mode: forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* =============================================================================
   LAYOUT
   ============================================================================= */

.content {
  flex-grow: 1;
  margin: 0;
  overflow-y: auto;
  padding: 150px 70px;
  width: 50%;
}

@media (max-width: 768px) {
  .content {
    width: 70%;
  }
}

@media (max-width: 400px) {
  .content {
    width: 70%;
    padding: 100px 70px;
  }
}

/* =============================================================================
   TYPOGRAPHY & LINKS
   ============================================================================= */

a {
  text-decoration: none;
  transition: filter 0.6s var(--good-ease);
  color: var(--link-color);
}

a:hover {
  filter: blur(5px);
}

a:visited {
  text-decoration: none;
}

.inactive {
  font-style: italic;
  color: var(--inactive-color);
}


/* =============================================================================
   HEADER & NAVIGATION
   ============================================================================= */

header {
  position: fixed;
  margin: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--header-color);
  line-height: 40px;
  z-index: 100001;
  height: 40px;
  width: 50%;
  box-sizing: border-box;
}

#clock {
  position: relative;
  height: 40px;
}

/* =============================================================================
   CONTENT SECTIONS
   ============================================================================= */

p.entries {
  transition: filter 0.6s var(--good-ease);
  filter: blur(5px);
}

p.entries:hover {
  filter: blur(1px);
}

/* =============================================================================
   FORMS & SPAM PROTECTION
   ============================================================================= */

/* Guestbook form styling */
input[type="text"],
textarea {
  background-color: transparent;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "helvetica neue", helvetica, arial, sans-serif;
  font-size: 14px;
  padding: 5px;
  resize: none;
}

button[type="submit"] {
  background-color: transparent;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "helvetica neue", helvetica, arial, sans-serif;
  font-size: 14px;
  padding: 5px 10px;
  cursor: pointer;
}

/* Honeypot field - hide from humans, bots will fill it */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* =============================================================================
   SOURCE CODE OVERLAY TOGGLE
   ============================================================================= */

.switch {
  margin: 70px;
  transition: filter 0.6s var(--good-ease);
  position: fixed;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100001;
}

.switch:hover {
  filter: blur(5px);
}

.switch input {
  display: none;
}

.slider {
  color: var(--toggle-inactive);
  width: 50px;
  height: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

input:checked + .slider {
  color: var(--toggle-active);
  font-weight: bolder;
}

.source-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--overlay-bg);
  opacity: 30%;
  color: var(--overlay-text);
  padding: 20px;
  overflow-y: auto;
  white-space: pre-wrap;
  z-index: 5000;
  display: none;
  font-family: monospace;
  font-size: 12px;
  box-sizing: border-box;
  user-select: none;
  pointer-events: auto;
  transition: filter 0.6s var(--good-ease);
}
