:root {
  color-scheme: dark;
  --bg: #10100f;
  --bg-rail: #181716;
  --paper: #f7f2e8;
  --paper-soft: #ede4d6;
  --ink: #151312;
  --text: #f8f1e8;
  --muted: #b8aea4;
  --red: #ff3f57;
  --green: #4dff86;
  --yellow: #ffd54f;
  --blue: #70c7ff;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: #000;
  --radius: 8px;
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--bg);
  color: var(--text);
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
}

.page-shell {
  width: min(100% - 32px, 470px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 34px;
  display: grid;
  align-content: center;
  gap: 20px;
}

.profile {
  position: relative;
  display: grid;
  grid-template-columns: 185px 1fr;
  align-items: end;
  gap: 14px;
  min-height: 305px;
}

.profile::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 44px;
  height: 184px;
  background: var(--bg-rail);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--shadow);
  transform: rotate(-1deg);
  z-index: -1;
}

.profile__media {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile__character {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  filter: drop-shadow(8px 12px 0 rgba(0, 0, 0, 0.55));
}

.profile__copy {
  padding: 0 0 30px;
}

.profile__name {
  width: max-content;
  margin: 0 0 10px;
  padding: 4px 10px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--red);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

h1 {
  max-width: 12ch;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 2.15rem;
  line-height: 0.96;
  font-weight: 950;
}

.status-card {
  display: grid;
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--red);
  text-align: left;
  cursor: pointer;
  transform: rotate(1deg);
  transition: transform var(--ease), box-shadow var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.status-card:hover,
.status-card:focus-visible {
  box-shadow: 5px 5px 0 var(--green);
  transform: rotate(0deg) translateY(-1px);
}

.status-card__label {
  color: #5a514b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-card__text {
  font-size: 1rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.status-loading {
  color: #6a625b;
}

.status-free {
  color: #087d2c;
}

.status-busy {
  color: #ce1530;
}

.links {
  display: grid;
  gap: 12px;
}

.link-card,
.more-toggle,
.mini-link {
  min-height: 64px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 16px;
  background: var(--paper);
  color: var(--ink);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.link-card:nth-child(2n) {
  transform: rotate(0.7deg);
}

.link-card:nth-child(3n) {
  transform: rotate(-0.6deg);
}

.link-card--primary {
  background: #ffeff2;
}

.link-card--whatsapp {
  background: #effff2;
}

.link-card strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 950;
}

.link-card small {
  display: block;
  margin-top: 4px;
  color: #5c554e;
  font-size: 0.83rem;
  font-weight: 750;
}

.link-card__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 950;
}

.link-card:hover,
.link-card:focus-visible {
  background: #fffaf1;
  box-shadow: 7px 7px 0 var(--green);
  transform: rotate(0deg) translateY(-2px);
}

.more-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
  transition: transform var(--ease), box-shadow var(--ease);
}

.more-toggle:hover,
.more-toggle:focus-visible {
  box-shadow: 7px 7px 0 var(--blue);
  transform: translateY(-2px);
}

.more-toggle__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
}

.more-toggle[aria-expanded="true"] .more-toggle__icon {
  background: var(--red);
  color: #fff;
}

.more-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 2px;
}

.mini-link {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 10px;
  background: #1e1d1b;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  transition: transform var(--ease), border-color var(--ease), color var(--ease);
}

.mini-link:hover,
.mini-link:focus-visible {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.status-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
}

.status-modal {
  width: min(100%, 390px);
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--red);
}

.status-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.status-modal h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 950;
}

.close-btn {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 950;
}

.status-days-list {
  display: grid;
  gap: 9px;
}

.status-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 10px 12px;
  background: #fffaf1;
  border: 1px solid rgba(21, 19, 18, 0.14);
  border-radius: 7px;
}

.status-day-label,
.status-day-text {
  font-weight: 950;
}

.status-day-text {
  text-align: right;
}

.status-day-text.free {
  color: #087d2c;
}

.status-day-text.busy {
  color: #ce1530;
}

.status-wa-wrap {
  margin-top: 14px;
}

.status-wa-btn {
  display: block;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--green);
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 430px);
    padding-top: 20px;
    align-content: start;
  }

  .profile {
    grid-template-columns: 148px 1fr;
    min-height: 255px;
    gap: 8px;
  }

  .profile::before {
    left: 28px;
    bottom: 12px;
    height: 158px;
  }

  .profile__copy {
    padding-bottom: 24px;
  }

  h1 {
    font-size: 1.78rem;
  }

  .status-card {
    min-height: 64px;
  }
}

@media (max-width: 380px) {
  .profile {
    grid-template-columns: 132px 1fr;
  }

  h1 {
    font-size: 1.56rem;
  }

  .link-card {
    padding-inline: 12px;
  }

  .link-card strong {
    font-size: 1rem;
  }

  .link-card small {
    font-size: 0.78rem;
  }

  .more-links {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 780px) {
  .page-shell {
    width: min(100% - 48px, 720px);
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 30px;
  }

  .profile {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .profile::before {
    inset: auto 0 0 0;
    height: 280px;
  }

  .profile__copy {
    padding: 0 22px 28px;
  }

  .profile__character {
    max-width: 260px;
  }
}

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