html,
body {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  margin-top: 52px;
}

:root {
  color-scheme: light dark;

  /* app */
  --ld-bg: #0b0f1a;
  --ld-fg: #f5f7ff;
  --ld-muted: rgba(245, 247, 255, 0.7);
  --ld-panel: rgba(255, 255, 255, 0.08);
  --ld-accent: #7ad7ff;
  --ld-accent-strong: #4cb3ff;
  --ld-border: rgba(255, 255, 255, 0.2);
  --ld-radius: 1rem;

  /* block system */
  --ld-block-font: "Caprasimo", "Inter", system-ui, sans-serif;
  --ld-block-radius: 0.38rem;
  --ld-block-frame-thickness: 0.55rem;

  --ld-block-face-hi: #f6efde;
  --ld-block-face: #efe5cf;
  --ld-block-face-lo: #e4d4b0;

  /* toy colors */
  --ld-red: #c83b33;
  --ld-green: #2f7a4b;
  --ld-yellow: #e0b12d;
  --ld-blue: #2f5f8f;
  --ld-brown: rgba(95, 70, 45, 0.9);
}

body {
  background: var(--ld-bg);
  color: var(--ld-fg);
  font-family: var(--ld-block-font);
}

button {
  font: inherit;
}

#app {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

#app > section {
  min-width: 0;
}

/* =========================================================
   LD Hero Logo
   ========================================================= */

.ld-hero {
  margin: 0 auto;
}
.ld-hero img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   Letterdrop Block System
   ========================================================= */

/* TILE (single colored frame + inset face) */
.ld-block-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;

  border-radius: var(--ld-block-radius);
  background: currentColor;
  border: 0;

  box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.35);

  position: relative;
  padding: var(--ld-block-frame-thickness);
}

/* inset face */
.ld-block-tile::before {
  content: "";
  position: absolute;
  inset: var(--ld-block-frame-thickness);
  border-radius: calc(var(--ld-block-radius) * 0.7);

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(120, 90, 50, 0.06) 0px,
      rgba(120, 90, 50, 0.06) 1px,
      rgba(255, 255, 255, 0) 4px,
      rgba(255, 255, 255, 0) 7px
    ),
    linear-gradient(
      180deg,
      var(--ld-block-face-hi),
      var(--ld-block-face) 55%,
      var(--ld-block-face-lo)
    );

  box-shadow:
    inset 0 0.2rem 0.3rem rgba(255, 255, 255, 0.55),
    inset 0 -0.25rem 0.4rem rgba(0, 0, 0, 0.12);
}

/* LETTER */
.ld-letter {
  position: relative;
  z-index: 1;

  font-family: var(--ld-block-font);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  display: inline-block;

  color: currentColor;

  /* subtle pressed depth */
  text-shadow:
    -0.03em -0.03em 0 rgba(255, 255, 255, 0.25),
    0.06em 0.09em 0.14em rgba(0, 0, 0, 0.22);

  -webkit-font-smoothing: antialiased;
}

/* color utility classes */
.ld-red { color: var(--ld-red); }
.ld-green { color: var(--ld-green); }
.ld-yellow { color: var(--ld-yellow); }
.ld-blue { color: var(--ld-blue); }


/* =========================================================
   Buttons / Fields
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999rem;
  padding: 0.65rem 1.6rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ld-accent-strong);
  color: #04121f;
  box-shadow: 0 0.5rem 1.6rem rgba(76, 179, 255, 0.35);
}

.btn-primary:not(:disabled):hover {
  transform: translateY(-0.1rem);
}

.btn-secondary {
  background: transparent;
  color: var(--ld-fg);
  border: 1px solid var(--ld-border);
}

.field {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--ld-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ld-fg);
  font-size: 1rem;
}

.field:disabled {
  opacity: 0.6;
}

/* =========================================================
   Header / Mobile Menu
   ========================================================= */

.ld-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--ld-bg);
  z-index: 1400;
}

.ld-hamburger {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-left: auto;
}

.ld-hamburger span {
  height: 3px;
  background: var(--ld-fg);
  border-radius: 2px;
}

#ld-menu-top-bun {
  background: var(--ld-red);
}

#ld-menu-burger {
  background: var(--ld-green);
}

#ld-menu-bottom-bun {
  background: var(--ld-blue);
}

.ld-mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ld-bg);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1500;
  padding: 24px;
}

.ld-mobile-nav.open {
  transform: translateX(0);
}

.ld-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  position: relative;
  margin-bottom: 24px;
  cursor: pointer;
}

.ld-close::before,
.ld-close::after {
  content: "";
  position: absolute;
  inset: 13px 0;
  height: 2px;
  background: var(--ld-fg);
}

.ld-close::before {
  transform: rotate(45deg);
  background: var(--ld-red);
}

.ld-close::after {
  transform: rotate(-45deg);
  background: var(--ld-yellow);
}

.ld-mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ld-mobile-nav li {
  margin-bottom: 14px;
}

.ld-mobile-nav a {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: var(--ld-fg);
  font-size: 18px;
}

body.ld-menu-open {
  overflow: hidden;
}
