/* =========================
   VARIABLES
========================= */

:root {
  --bg: #f7f7f2;
  --card: #ffffff;
  --text: #151515;
  --muted: #6f6f6a;
  --border: rgba(21, 21, 21, 0.10);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --radius: 24px;
}

[data-theme="dark"] {
  --bg: #0f0f10;
  --card: #171719;
  --text: #f4f4ef;
  --muted: #a1a19b;
  --border: rgba(244, 244, 239, 0.12);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}


/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* =========================
   BODY
========================= */

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  font-family: 'General Sans', system-ui, sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}


/* =========================
   LAYOUT
========================= */

.wrap {
  width: min(100%, 680px);
  transform: translateY(-24px);
}

.toggle-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}


/* =========================
   BUTTON
========================= */

.toggle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 18px;
  transition: all 0.25s ease;
}

.toggle:hover {
  transform: translateY(-1px);
}


/* =========================
   CARD
========================= */

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(42px, 6vw, 56px) clamp(32px, 6vw, 52px);
  text-align: center;
}

.label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin-bottom: 14px;
}

p {
  color: var(--muted);
  line-height: 1.7;
  letter-spacing: -0.01em;
}


/* =========================
   CURSOR
========================= */

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--text);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }

  51%, 100% {
    opacity: 0;
  }
}


/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--text);
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dot {
  color: var(--muted);
  opacity: 0.6;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {
  body {
    padding: 20px;
  }

  .wrap {
    transform: translateY(0);
  }

  .panel {
    border-radius: 20px;
    padding: 34px 24px;
  }

  h1 {
    margin-bottom: 12px;
  }

  p {
    font-size: 0.95rem;
  }

  .footer {
    margin-top: 24px;
    gap: 10px;
    font-size: 0.88rem;
  }

  .icon {
    width: 15px;
    height: 15px;
  }
}