:root {
  --coffee-950: #24150f;
  --coffee-850: #342017;
  --coffee-700: #4a2d1f;
  --coffee-600: #7a4a2e;
  --latte-200: #ead8bd;
  --cream-100: #fff6e6;
  --cream-50: #fffaf0;
  --matcha-500: #728a4a;
  --berry-500: #b6423c;
  --brass-400: #c79a45;
  --ink-900: #1d1714;
  --shadow: 0 24px 80px rgb(74 45 31 / 18%);
  color: var(--ink-900);
  background: var(--cream-100);
  font-family:
    "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgb(199 154 69 / 32%), transparent 34rem),
    radial-gradient(circle at top right, rgb(114 138 74 / 24%), transparent 30rem),
    linear-gradient(135deg, #fff9ec, #f3dfbd);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgb(36 21 15 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(36 21 15 / 2%) 1px, transparent 1px);
  background-size: 26px 26px;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

code {
  padding: 0.2em 0.45em;
  color: var(--coffee-950);
  word-break: break-all;
  background: rgb(255 255 255 / 62%);
  border: 1px solid rgb(74 45 31 / 14%);
  border-radius: 0.55rem;
  font-family: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  min-height: 520px;
  padding: clamp(28px, 5vw, 64px);
  color: var(--cream-50);
  background:
    linear-gradient(135deg, rgb(36 21 15 / 92%), rgb(74 45 31 / 90%)),
    radial-gradient(circle at 76% 24%, rgb(199 154 69 / 34%), transparent 22rem);
  border: 1px solid rgb(255 246 230 / 22%);
  border-radius: 2.1rem;
  box-shadow: var(--shadow);
}

.hero.compact {
  min-height: auto;
  margin-bottom: 28px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--brass-400);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.18;
}

h1 {
  max-width: 760px;
  font-family: "Kaisei Decol", "Shippori Mincho", serif;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
}

h2 {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

p,
li {
  line-height: 1.85;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgb(255 246 230 / 86%);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--coffee-950);
  background: linear-gradient(135deg, #f2c56e, var(--brass-400));
  box-shadow: 0 12px 34px rgb(199 154 69 / 26%);
}

.button.secondary {
  color: var(--cream-50);
  background: rgb(255 246 230 / 12%);
  border-color: rgb(255 246 230 / 22%);
}

.button.ghost {
  color: inherit;
  background: rgb(255 255 255 / 10%);
  border-color: rgb(74 45 31 / 14%);
}

.receipt-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 360px;
  padding: 28px;
  color: var(--coffee-950);
  background:
    linear-gradient(180deg, rgb(255 250 240 / 96%), rgb(234 216 189 / 96%)),
    repeating-linear-gradient(0deg, transparent, transparent 10px, rgb(74 45 31 / 5%) 11px);
  border-radius: 1.6rem;
  box-shadow: inset 0 0 0 1px rgb(74 45 31 / 10%);
}

.receipt-card::before {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 160px;
  height: 160px;
  content: "";
  background:
    radial-gradient(circle, rgb(255 246 230 / 96%) 0 32%, transparent 33%),
    radial-gradient(circle at 44% 42%, rgb(199 154 69 / 48%), transparent 36%),
    radial-gradient(circle, rgb(122 74 46 / 50%), transparent 64%);
  border: 14px solid rgb(74 45 31 / 72%);
  border-radius: 50%;
  transform: translateX(-50%);
}

.receipt-card p,
.receipt-card small {
  margin: 0;
  color: var(--coffee-950);
}

.stamp {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 0.4rem 0.58rem;
  color: var(--berry-500);
  border: 2px solid currentcolor;
  border-radius: 0.5rem;
  font-weight: 900;
  transform: rotate(8deg);
}

.section-grid,
.admin-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.package-card,
.admin-login {
  padding: 26px;
  background: rgb(255 250 240 / 78%);
  border: 1px solid rgb(74 45 31 / 12%);
  border-radius: 1.4rem;
  box-shadow: 0 14px 42px rgb(74 45 31 / 10%);
  backdrop-filter: blur(16px);
}

.panel > *:first-child,
.package-card > *:first-child {
  margin-top: 0;
}

.menu-board {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  margin-top: 22px;
}

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

.link-grid a,
.text-link {
  color: var(--coffee-700);
  font-weight: 800;
  text-decoration-color: rgb(199 154 69 / 70%);
  text-underline-offset: 0.25em;
}

.admin-header,
.section-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.78rem 0.85rem;
  color: var(--ink-900);
  background: rgb(255 255 255 / 78%);
  border: 1px solid rgb(74 45 31 / 18%);
  border-radius: 0.8rem;
  font: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgb(74 45 31 / 12%);
}

.badge,
.notice {
  display: inline-flex;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-weight: 800;
}

.badge {
  color: var(--coffee-950);
  background: rgb(199 154 69 / 22%);
}

.notice {
  margin: 14px 0;
  color: var(--coffee-950);
  background: rgb(114 138 74 / 18%);
}

.notice.warn {
  background: rgb(199 154 69 / 22%);
}

.notice.error {
  background: rgb(182 66 60 / 18%);
}

.hint,
.empty {
  color: rgb(29 23 20 / 68%);
}

.version-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.version-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgb(255 255 255 / 58%);
  border-radius: 0.9rem;
}

@media (width <= 840px) {
  .hero,
  .section-grid,
  .menu-board,
  .admin-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .receipt-card {
    min-height: 300px;
  }

  .admin-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
