:root {
  --bg: #25271e;
  --paper: #eadbc4;
  --paper-soft: #d8c6aa;
  --line: rgba(234, 219, 196, 0.32);
  --ink: #17150f;
  --muted: rgba(234, 219, 196, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, rgba(8, 8, 6, 0.08), rgba(8, 8, 6, 0.82)), var(--bg);
  color: var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.frame {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(82px, 0.18fr)) minmax(148px, 0.34fr);
  border-top: 1px solid var(--line);
}

.top a,
.top > span {
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: var(--paper-soft);
  font-size: 0.88rem;
}

.top a:first-child {
  justify-content: flex-start;
  padding-left: 28px;
}

.top a:hover,
.top a:focus-visible {
  background: rgba(234, 219, 196, 0.08);
  outline: none;
}

.phone-link {
  gap: 8px;
  color: var(--paper);
  font-weight: 700;
}

.phone-link svg,
.social-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links svg {
  fill: currentColor;
  stroke: none;
}

.site-logo {
  width: 110px;
  height: 110px;
  flex: 0 0 auto;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
}

.hero,
.guest-grid,
.entries,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero,
main > .frame:first-child {
  border-top: 1px solid var(--line);
}

.block {
  min-width: 0;
  padding: clamp(30px, 6vw, 70px);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.block:last-child {
  border-right: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--paper-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 5.1rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 3.2rem);
  line-height: 1.1;
}

.text,
.form-note,
.form-status {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.form-note,
.form-status {
  font-size: 0.9rem;
}

.form-status[data-tone="error"] {
  color: #f0a38a;
}

.form-status[data-tone="success"] {
  color: #d8c6aa;
}

.guest-form,
.login-form {
  display: grid;
  gap: 14px;
}

.guest-form label,
.login-form label {
  display: grid;
  gap: 8px;
  color: var(--paper-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guest-form input,
.guest-form textarea,
.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(8, 8, 6, 0.28);
  color: var(--paper);
  font: inherit;
  padding: 13px 14px;
  outline: none;
}

.guest-form textarea {
  min-height: 150px;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.button {
  min-height: 50px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.button.danger {
  border-color: #f0a38a;
  color: #f0a38a;
}

.entry-list {
  display: grid;
  gap: 0;
}

.entry {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.58;
}

.entry:first-child {
  border-top: 0;
}

.entry b {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.date {
  display: block;
  margin-top: 9px;
  color: rgba(234, 219, 196, 0.52);
  font-size: 0.82rem;
}

footer {
  padding: 26px 0 36px;
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 14px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .frame {
    width: calc(100% - 18px);
  }

  .top {
    grid-template-columns: repeat(3, 1fr);
  }

  .top a,
  .top > span {
    min-height: 42px;
    padding: 0 3px;
    font-size: 0.82rem;
    line-height: 1.1;
  }

  .top a:first-child {
    grid-column: 1 / 4;
    min-height: 118px;
    justify-content: center;
    padding: 8px 0 0;
  }

  .site-logo {
    width: 118px;
    height: 118px;
  }

  .phone-link {
    grid-column: 1 / 4;
    min-height: 44px;
    padding-bottom: 10px;
  }

  .hero,
  .guest-grid,
  .entries,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .block:last-child {
    border-bottom: 0;
  }
}
