/* MnL Studio — shared styles */

@font-face {
  font-family: "Minnie";
  src: url("../assets/fonts/Minnie.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root,
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #161616;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --tint: #4ade60;
  --tint-strong: #22c548;
  --tint-contrast: #04240c;
  --border: #262626;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #f4fafd;
  --text: #000000;
  --text-muted: #52616b;
  --tint: #0ea5e9;
  --tint-strong: #0284c7;
  --tint-contrast: #ffffff;
  --border: #dbeaf2;
  --shadow: 0 4px 24px rgba(2, 132, 199, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease, color 0.25s ease;
}

a {
  color: var(--tint);
}

a:hover {
  color: var(--tint-strong);
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand span {
  font-family: "Minnie", -apple-system, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--tint);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--tint);
}

/* Main */
main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: "Minnie", -apple-system, sans-serif;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  margin-top: 1.25rem;
  letter-spacing: 0.04em;
}

.hero .slogan {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  margin-top: 0.5rem;
}

.hero .slogan strong {
  color: var(--tint);
  font-weight: 600;
}

/* App list */
.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.app-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  border-color: var(--tint);
  transform: translateY(-2px);
}

.app-card h3 {
  font-size: 1.2rem;
}

.app-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.store-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.store-badge:hover {
  border-color: var(--tint);
  color: var(--text);
}

.store-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-badge .badge-text small {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.store-badge .badge-text span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Legal / content pages */
.page-content {
  max-width: 760px;
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.page-content .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.page-content h2 {
  font-size: 1.3rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--tint);
}

.page-content p,
.page-content li {
  margin-bottom: 0.6rem;
  color: var(--text);
}

.page-content ul {
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

/* Contact */
.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
}

.contact-card .email-btn {
  display: inline-block;
  background: var(--tint);
  color: var(--tint-contrast);
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  margin-top: 0.75rem;
  transition: background 0.2s ease;
}

.contact-card .email-btn:hover {
  background: var(--tint-strong);
  color: var(--tint-contrast);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--tint);
}

/* Responsive */
@media (max-width: 700px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .site-nav {
    gap: 0.85rem;
    font-size: 0.9rem;
  }
}
