/* @font-face {
  font-family: 'MeteorFont';
  src: url('/fonts/METEOR-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
} */
@font-face {
  font-family: 'Lazenby';
  src: url('/fonts/LazenbyCompSmooth.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Courier New', Courier, monospace;
  background-color: #ffffff;
  /* background-color: #a8cfe0; */
  /* background-image:
    radial-gradient(ellipse at 20% 10%, #c2dff0 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, #85b8d4 0%, transparent 50%); */
  min-height: 100vh;
  color: #3a3028;
}

input, textarea, select, button {
  font-family: inherit;
}

/* ── Main container ── */
.guestbook-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 32px 16px 60px;
}

/* ── Title ── */
.title {
  font-family: "Lazenby", Courier, monospace;
  font-size: clamp(2rem, 6vw, 3.2rem);
  text-align: center;
  color: #000000;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(255,255,255,0.35);
}

.intro {
  font-weight: 200;
}

/* ── Form card ── */
.guestbook-form {
  width: 90%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* background: rgba(255, 255, 255, 0.45); */
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  /* border: 1px solid rgba(255, 255, 255, 0.65); */
  border-radius: 2px;
  padding: 28px 24px;
  /* box-shadow: */
    /* 0 4px 24px rgba(44, 74, 90, 0.12), */
    /* 0 1px 4px rgba(255,255,255,0.5) inset; */
  margin-bottom: 48px;
}

/* ── Inputs ── */
.input-text,
.input-textarea,
.input-file {
  width: 100%;
  padding: 11px 14px;
  font-size: 1rem;
  border-radius: 2px;
  border: .05px solid rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.7);
  /* color: #000000; */
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-text::placeholder,
.input-textarea::placeholder {
  color: #141616;
}

.input-text:focus,
.input-textarea:focus {
  border-color: #8bd485;
  box-shadow: 0 0 0 3px rgba(135, 212, 133, 0.25);
  background: rgba(255, 255, 255, 0.9);
}

.input-textarea {
  resize: vertical;
  min-height: 90px;
}

/* .input-file {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #000000;
} */
 .file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 2px;
  border: 1px dashed rgba(0, 0, 0, 0.9);
  background: rgba(255, 255, 255, 0.5);
  color: #000000;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.file-input-label:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: #8bd485;
}

.input-file {
  display: none; /* hides the real input */
}

/* ── Color picker ── */



.color-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-picker-label {
  font-size: 0.85rem;
  color: #000000;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  padding: 0;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.selected {
  /* border-color: #2c4a5a;
  box-shadow: 0 0 0 2px rgba(44, 70, 90, 0.25); */
  border: 1px solid #000000;
  transform: scale(1.15);
}

/* ── Entry color theming ── */
.entry-name {
  transition: color 0.3s;
}

/* ── Submit button ── */
.submit-button {
  width: 100%;
  padding: 13px;
  font-size: 1.5rem;
  border-radius: 2px;
  border: .5px solid #000000;
  background: #81f976;
  color: #000000;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(196, 120, 138, 0.35);
  margin-top: 4px;
}

.submit-button:hover {
  background: #8bd485;
  box-shadow: 0 4px 16px rgba(196, 120, 138, 0.45);
}

.submit-button:active {
  transform: scale(0.98);
}

/* ── Entries grid ── */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}

/* ── Individual entry — paper look ── */
.entry {
  background: #faf7f0;
  /* background-image:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(168, 207, 224, 0.18) 27px,
      rgba(168, 207, 224, 0.18) 28px
    ); */
  border: .5px solid #000000;
  border-radius: 2px;
  padding: 20px 18px;
  /* box-shadow:
    0 2px 8px rgba(90, 70, 50, 0.08),
    2px 4px 16px rgba(90, 70, 50, 0.06),
    0 0 0 1px rgba(255,255,255,0.6) inset; */
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.entry:hover {
  transform: translateY(-3px) rotate(0.4deg);
  box-shadow:
    0 6px 20px rgba(90, 70, 50, 0.13),
    2px 8px 24px rgba(90, 70, 50, 0.09);
}

/* Faint corner fold effect */
/* .entry::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(225deg, #e8e0cc 45%, transparent 45%);
  border-top-left-radius: 6px;
  border-bottom-right-radius: 14px;
  opacity: 0.7;
} */

.entry-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c4a5a;
  margin-bottom: 6px;
}

.entry-message {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.6;
  margin-bottom: 10px;
  word-break: break-word;
}

.entry-date {
  font-size: 0.75rem;
  color: #9a8c7e;
  margin-top: 8px;
}

.entry img {
  max-width: 100%;
  border-radius: 2px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── Mobile: single column ── */
@media (max-width: 560px) {
  .entries {
    grid-template-columns: 1fr;
  }

  .guestbook-form {
    width: 100%;
    padding: 22px 16px;
  }
}