@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-var.3100e775e8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: #243037;
  font-family:
    "Aptos", "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(247, 243, 223, 0.88), rgba(247, 243, 223, 0.94)),
    url("../assets/travel-map-backdrop-1400.723aca540f.webp") center / cover fixed,
    #f7f3df;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

.guestbook-shell {
  width: min(1120px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) clamp(12px, 3vw, 28px)
    max(22px, env(safe-area-inset-bottom));
}

.guestbook-header {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #203038;
  font-size: 14px;
  font-weight: 860;
  text-decoration: none;
}

.store-link span:first-child {
  font-size: 28px;
  line-height: 1;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
  flex: none;
  border: 2px solid rgba(255, 248, 220, 0.9);
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(28, 36, 38, 0.18);
}

.brand p,
.brand h1 {
  margin: 0;
}

.brand p {
  color: rgba(36, 48, 55, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.brand h1 {
  color: #243037;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 940;
  line-height: 1;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(14px, 2.2vw, 24px);
  align-items: start;
}

.note-panel,
.entries-panel {
  padding: 16px;
  background: rgba(255, 251, 232, 0.94);
  border: 1px solid rgba(32, 48, 56, 0.14);
  border-radius: 8px;
  box-shadow:
    0 18px 30px rgba(28, 36, 38, 0.14),
    0 4px 9px rgba(28, 36, 38, 0.08);
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.field-grid label:nth-child(3) {
  grid-column: span 2;
}

label span,
.list-head h2 {
  color: rgba(36, 48, 55, 0.72);
  font-size: 12px;
  font-weight: 860;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  color: #243037;
  background: #fffdf2;
  border: 1px solid rgba(32, 48, 56, 0.18);
  border-radius: 8px;
  outline: 0;
}

input {
  height: 44px;
  margin-top: 6px;
  padding: 0 11px;
}

textarea {
  height: 180px;
  margin-top: 6px;
  padding: 11px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(47, 186, 154, 0.84);
  box-shadow: 0 0 0 3px rgba(47, 186, 154, 0.16);
}

.note-field {
  display: block;
  margin-top: 12px;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: #243037;
  font-size: 14px;
  font-weight: 760;
}

.share-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.submit-button {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  color: #ffffff;
  font-weight: 900;
  background: #2fba9a;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.agent-line {
  min-height: 18px;
  margin: 10px 0 0;
  color: rgba(36, 48, 55, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-head h2 {
  margin: 0;
  color: #243037;
  font-size: 17px;
}

.list-head span {
  min-width: 28px;
  padding: 3px 8px;
  color: #fff9de;
  font-size: 12px;
  font-weight: 880;
  text-align: center;
  background: #243037;
  border-radius: 999px;
}

.shared-head {
  margin-top: 18px;
}

.entry-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.entry-card {
  padding: 12px;
  background: #fffdf2;
  border: 1px solid rgba(32, 48, 56, 0.12);
  border-radius: 8px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: rgba(36, 48, 55, 0.62);
  font-size: 12px;
  font-weight: 780;
}

.entry-note {
  margin: 8px 0 0;
  color: #243037;
  font-size: 15px;
  line-height: 1.38;
  white-space: pre-wrap;
}

.status-pill {
  color: #5f6f3f;
}

.entry-empty {
  padding: 14px;
  color: rgba(36, 48, 55, 0.58);
  font-size: 14px;
  font-weight: 760;
  background: rgba(255, 253, 242, 0.68);
  border-radius: 8px;
}

@media (max-width: 780px) {
  .guestbook-header {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .brand {
    justify-content: flex-start;
  }

  .guestbook-layout,
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-grid label:nth-child(3) {
    grid-column: auto;
  }
}
