:root {
  --ink: #2c1b10;
  --muted: #7d6652;
  --cream: #fbf3e6;
  --paper: #fffaf2;
  --line: rgba(116, 78, 38, 0.18);
  --brown: #4a2a13;
  --brown-soft: #6f441f;
  --gold: #c79633;
  --gold-light: #f1d48b;
  --navy: #12273c;
  --shadow: 0 18px 45px rgba(56, 33, 14, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at top left, rgba(241, 212, 139, 0.32), transparent 32rem),
    linear-gradient(180deg, #fff7eb 0%, var(--cream) 52%, #f5eadb 100%);
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  background-image:
    linear-gradient(30deg, var(--brown) 12%, transparent 12.5%, transparent 87%, var(--brown) 87.5%, var(--brown)),
    linear-gradient(150deg, var(--brown) 12%, transparent 12.5%, transparent 87%, var(--brown) 87.5%, var(--brown));
  background-size: 34px 58px;
}

.site-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px 12px 0;
}

.hero {
  overflow: hidden;
  border: 1px solid rgba(199, 150, 51, 0.42);
  border-radius: 22px;
  background: var(--brown);
  box-shadow: var(--shadow);
  animation: heroIn 700ms ease both;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.shortcut-section {
  margin-top: 14px;
  padding: 16px 0 8px;
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.section-head p {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h1 {
  max-width: 760px;
  margin: 0;
  color: var(--brown);
  font-size: 1.22rem;
  line-height: 1.22;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shortcut-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 154px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.9);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(74, 42, 19, 0.1);
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.shortcut-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(241, 212, 139, 0.22), transparent 48%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.shortcut-card:hover,
.shortcut-card:focus-visible,
.shortcut-card:active {
  transform: translateY(-3px) scale(0.99);
  border-color: rgba(199, 150, 51, 0.6);
  background: #fffdf8;
  box-shadow: 0 16px 38px rgba(74, 42, 19, 0.16);
  outline: none;
}

.shortcut-card:hover::after,
.shortcut-card:focus-visible::after {
  opacity: 1;
}

.shortcut-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--brown), var(--brown-soft));
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(241, 212, 139, 0.2);
}

.shortcut-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.15;
}

.shortcut-card strong {
  display: block;
  color: var(--brown);
  font-size: 0.9rem;
  line-height: 1.28;
  text-align: center;
}

.shortcut-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
}

.site-footer {
  width: min(1120px, 100%);
  margin: 12px auto 0;
  padding: 20px 14px 26px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: min(620px, calc(100% - 20px));
  margin: 0 auto;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  border: 1px solid rgba(199, 150, 51, 0.38);
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 16px 42px rgba(44, 27, 16, 0.22);
  backdrop-filter: blur(16px);
  animation: navIn 520ms ease 260ms both;
}

.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 4px 7px;
  border-radius: 16px;
  color: var(--brown);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.bottom-nav a:hover,
.bottom-nav a:focus-visible,
.bottom-nav a:active {
  background: linear-gradient(145deg, var(--brown), var(--brown-soft));
  color: var(--gold-light);
  outline: none;
  transform: translateY(-2px);
}

.bottom-nav svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}

.bottom-nav span {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  animation: revealUp 560ms ease forwards;
}

.shortcut-card:nth-child(2).is-visible {
  animation-delay: 80ms;
}

.shortcut-card:nth-child(3).is-visible {
  animation-delay: 150ms;
}

.shortcut-card:nth-child(4).is-visible {
  animation-delay: 220ms;
}

@media (min-width: 560px) {
  .site-shell {
    padding: 18px;
  }

  .hero {
    border-radius: 22px;
  }

  .hero-image {
    object-position: center;
  }

  .section-head h1 {
    font-size: 1.7rem;
  }

  .shortcut-card {
    grid-template-columns: 62px minmax(0, 1fr);
    justify-items: start;
    min-height: 118px;
    padding: 18px;
    text-align: left;
  }

  .shortcut-card strong,
  .shortcut-card small {
    text-align: left;
  }
}

@media (min-width: 920px) {
  .site-shell {
    padding: 24px 24px 10px;
  }

  .hero-image {
    max-height: 680px;
  }

  .shortcut-section {
    margin-top: 24px;
    padding-inline: 4px;
  }

  .shortcut-grid {
    gap: 14px;
  }

  .shortcut-card {
    min-height: 118px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
