/* Алиф-йо — audio to'plam */
:root {
  --bg-deep: #1a1423;
  --bg-card: #241c32;
  --accent: #e8b86d;
  --accent-soft: rgba(232, 184, 109, 0.15);
  --text: #f4efe8;
  --text-muted: #a89bb8;
  --border: rgba(255, 255, 255, 0.08);
  --sidebar-w: min(100vw - 2rem, 380px);
  --header-h: 64px;
  --radius: 14px;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-ui: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  min-height: 100svh;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 184, 109, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(120, 80, 180, 0.08), transparent),
    radial-gradient(ellipse 50% 50% at 0% 80%, rgba(80, 140, 160, 0.06), transparent);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: calc(var(--header-h) + env(safe-area-inset-top, 0));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: env(safe-area-inset-top, 0) max(1rem, env(safe-area-inset-right, 0)) 0.5rem max(1rem, env(safe-area-inset-left, 0));
  box-sizing: border-box;
  background: rgba(26, 20, 35, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-logo {
  justify-self: start;
  width: 40px;
  height: 40px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo svg {
  width: 36px;
  height: 36px;
}

.header-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  letter-spacing: 0.02em;
  text-align: center;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-hamburger {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  transition: background 0.2s;
}

.header-hamburger:hover {
  background: var(--accent-soft);
}

.header-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.2s;
}

.header-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Overlay */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 6, 18, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: var(--sidebar-w);
  height: 100dvh;
  background: linear-gradient(165deg, #2a2238 0%, #1e1828 50%, #1a1423 100%);
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 1.25rem 1rem 1rem;
}

.sidebar-brand {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand .logo-round {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid rgba(232, 184, 109, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.sidebar-brand .logo-round svg {
  width: 44px;
  height: 44px;
}

.sidebar-brand h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.sidebar-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-nav {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

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

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.sidebar-nav-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.9;
}

.sidebar-nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.sidebar-nav-text {
  flex: 1;
  min-width: 0;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
}

.sidebar-nav a:hover .sidebar-nav-icon,
.sidebar-nav a:focus-visible .sidebar-nav-icon {
  color: var(--accent);
  opacity: 1;
}

.sidebar-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.sidebar-nav a.is-active .sidebar-nav-icon {
  color: var(--accent);
  opacity: 1;
}

/* Player block */
.player-block {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.player-panel .player-block {
  padding: 0;
  border-bottom: none;
}

.player-now {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.player-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  min-height: 2.4em;
}

.player-progress-wrap {
  margin-bottom: 0.45rem;
}

.player-progress {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
}

.player-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 184, 109, 0.25);
}

.player-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.player-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s, transform 0.15s;
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.player-btn:active {
  transform: scale(0.96);
}

.player-btn-main {
  width: 46px;
  height: 46px;
  background: linear-gradient(145deg, var(--accent) 0%, #c9984a 100%);
  color: #1a1423;
  box-shadow: 0 3px 16px rgba(232, 184, 109, 0.3);
}

.player-btn-main:hover {
  background: linear-gradient(145deg, #f0c47e 0%, var(--accent) 100%);
  color: #1a1423;
}

.player-btn svg {
  width: 20px;
  height: 20px;
}

.player-btn-main svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Ixcham ovoz + takrorlash */
.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

.player-toolbar-vol {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.player-icon-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.player-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.player-icon-btn:active {
  transform: scale(0.95);
}

.player-icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.player-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.player-toolbar-slider {
  flex: 1;
  min-width: 0;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
}

.player-toolbar-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 184, 109, 0.2);
}

.player-toolbar-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
}

.player-repeat-btn.player-icon-btn {
  border-radius: 10px;
  color: var(--text-muted);
}

.player-repeat-btn.is-mode-all,
.player-repeat-btn.is-mode-one {
  background: var(--accent-soft);
  color: var(--accent);
}

.player-repeat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: inherit;
}

.player-repeat-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Track list */
.track-list-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  flex-shrink: 0;
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}

.track-list::-webkit-scrollbar {
  width: 6px;
}

.track-list::-webkit-scrollbar-thumb {
  background: rgba(232, 184, 109, 0.35);
  border-radius: 3px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  margin-bottom: 4px;
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.track-item.is-active {
  background: var(--accent-soft);
  border-color: rgba(232, 184, 109, 0.25);
}

.track-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-num-icon {
  width: 17px;
  height: 17px;
  display: block;
  opacity: 0.88;
}

.track-item.is-active .track-num {
  background: rgba(232, 184, 109, 0.22);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(232, 184, 109, 0.2);
}

.track-item.is-active .track-num-icon {
  opacity: 1;
}

.track-name {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--text);
}

.track-item .state-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  display: block;
  opacity: 0;
}

.track-item.is-active .state-icon {
  opacity: 1;
}

/* Main + audio section (bosh sahifa) */
main:not(.page-main) {
  padding: 2rem 1.25rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.audio-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0;
}

.player-panel,
.playlist-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.85rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.playlist-panel .track-list {
  max-height: min(52vh, 520px);
  padding-right: 2px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ichki sahifalar (kitob, aloqa, admin/muallif) */
.page-main {
  padding: clamp(1rem, 4vw, 1.75rem) clamp(0.85rem, 4vw, 1.5rem) clamp(2rem, 8vw, 3.5rem);
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}

.page-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 4vw, 1.75rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.page-hero {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.page-lead {
  margin: 0;
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.page-body.prose {
  font-size: clamp(0.9375rem, 2.5vw, 1rem);
  line-height: 1.65;
}

.page-body.prose p {
  margin: 0 0 1em;
  color: var(--text);
}

.page-body.prose p:last-child {
  margin-bottom: 0;
}

.page-body.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  font-weight: 600;
  margin: 1.35em 0 0.5em;
  color: var(--text);
}

.page-body.prose h2:first-child {
  margin-top: 0;
}

.page-body.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.page-body.prose li {
  margin-bottom: 0.35em;
}

.page-body.prose li strong {
  color: var(--text);
}

.page-body.prose a {
  color: var(--accent);
  text-decoration: none;
}

.page-body.prose a:hover {
  text-decoration: underline;
}

.info-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}

.info-card:last-child {
  margin-bottom: 0;
}

.info-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.info-card p,
.info-card a {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
  word-break: break-word;
}

.info-card p + p {
  margin-top: 0.5rem;
}

code,
kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

.info-card a {
  color: var(--accent);
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

.contact-form {
  margin-top: 1.25rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(232, 184, 109, 0.45);
  box-shadow: 0 0 0 2px rgba(232, 184, 109, 0.15);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  margin-top: 1.25rem;
}

.btn-submit-telegram {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.55rem 1.15rem 0.45rem;
}

.btn-submit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.btn-submit-telegram-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-submit-telegram-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.btn-submit-progress {
  width: 100%;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
  margin-top: 0;
}

.btn-submit-telegram.is-loading .btn-submit-progress {
  height: 4px;
  opacity: 1;
  margin-top: 0.45rem;
}

.btn-submit-progress-track {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(26, 20, 35, 0.22);
  border-radius: 2px;
  overflow: hidden;
}

.btn-submit-progress-fill {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 2px;
  background: #1a1423;
  animation: btn-submit-progress-move 0.9s ease-in-out infinite;
}

@keyframes btn-submit-progress-move {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(280%);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(145deg, var(--accent) 0%, #c9984a 100%);
  color: #1a1423;
  box-shadow: 0 3px 16px rgba(232, 184, 109, 0.28);
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  box-shadow: 0 4px 22px rgba(232, 184, 109, 0.38);
}

.btn-primary:active {
  transform: scale(0.98);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.page-hero-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.page-hero-icon-lg {
  width: clamp(64px, 18vw, 80px);
  height: clamp(64px, 18vw, 80px);
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 184, 109, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.page-hero-icon-lg svg {
  width: clamp(32px, 9vw, 40px);
  height: clamp(32px, 9vw, 40px);
}

.contact-form-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
}

.contact-form-title .form-title-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(232, 184, 109, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-form-title .form-title-icon svg {
  width: 22px;
  height: 22px;
}

.page-body .prose-block-icon {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
}

.page-body .prose-block-icon svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-top: 0.15rem;
}

.page-body .prose-block-icon p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Modal */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
}

.app-modal[hidden] {
  display: none !important;
}

.app-modal.is-open {
  display: flex !important;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 16, 0.72);
  backdrop-filter: blur(6px);
}

.app-modal-box {
  position: relative;
  width: 100%;
  max-width: 22rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #2e2640 0%, #1e1828 100%);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: app-modal-in 0.28s ease;
}

@keyframes app-modal-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.app-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-modal.is-success .app-modal-icon {
  background: rgba(80, 180, 120, 0.2);
  color: #7dcea0;
}

.app-modal.is-error .app-modal-icon {
  background: rgba(220, 100, 100, 0.18);
  color: #f1948a;
}

.app-modal-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.app-modal-text {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.app-modal .app-modal-btn {
  width: 100%;
  max-width: 100%;
}

.dev-avatar--hero {
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.dev-avatar {
  width: clamp(72px, 20vw, 96px);
  height: clamp(72px, 20vw, 96px);
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--accent-soft);
  border: 2px solid rgba(232, 184, 109, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.dev-avatar svg {
  width: 48%;
  height: 48%;
}

.dev-card .page-hero {
  text-align: center;
}

.dev-card .page-hero h1 {
  margin-bottom: 0.25rem;
}

.dev-tag {
  display: inline-block;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Responsive */
@media (min-width: 480px) {
  .site-header {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0));
  }

  main:not(.page-main) {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
}

@media (min-width: 768px) {
  .page-main {
    max-width: 44rem;
  }

  .contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .contact-split .form-row {
    margin-bottom: 0;
  }

  .contact-split + .form-row {
    margin-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .page-main {
    max-width: 46rem;
  }
}

@media (max-width: 380px) {
  :root {
    --header-h: 58px;
  }

  .header-hamburger {
    width: 42px;
    height: 42px;
  }
}
