/* Mahya Studios homepage. Palette from logo A: Gece #0F1A33, Fener #FFB13B / #E58A00, Kemik #F3EBDD, Kağıt #F6F4EF. */
@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #0F1A33;
  --bone: #F3EBDD;
  --paper: #F6F4EF;
  --bg: var(--paper);
  --surface: #FFFFFF;
  --ink: var(--night);
  --muted: #4A5468;
  --lamp: #E58A00;
  --link: #8A5200;
  --line: rgba(15, 26, 51, .12);
  --btn-bg: #FFB13B;
  --btn-ink: var(--night);
  --focus: var(--night);
  --radius: 16px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px;
  --t-small: .875rem; --t-body: 1.0625rem; --t-h3: 1.1875rem; --t-h2: 1.75rem;
  --t-h1: clamp(2.25rem, 9vw, 4.25rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --surface: #172443;
    --ink: var(--bone);
    --muted: #B8BECB;
    --lamp: #FFB13B;
    --link: #FFC266;
    --line: rgba(243, 235, 221, .14);
    --focus: #FFC266;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 "Outfit", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { margin: 0 0 var(--s2); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--t-h1); letter-spacing: -.02em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); margin-bottom: var(--s1); }
p { margin: 0 0 var(--s2); }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(var(--s3), env(safe-area-inset-left));
  padding-right: max(var(--s3), env(safe-area-inset-right));
}
.skip { position: absolute; left: -999px; top: var(--s1); }
.skip:focus { left: var(--s2); z-index: 10; background: var(--btn-bg); color: var(--btn-ink); padding: var(--s1) var(--s2); }

/* Header */
.top { padding-top: env(safe-area-inset-top); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--s2); }
.brand { display: inline-flex; color: var(--ink); padding: var(--s1) 0; }
.logo { width: 152px; height: auto; display: block; }
.logo text { font-family: "Outfit", -apple-system, sans-serif; }
.lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2);
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--t-small);
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-bottom: var(--s6); }
.garland { display: block; width: 100%; height: clamp(72px, 11vw, 130px); }
.garland .bulb, .garland .halo { fill: var(--lamp); }
.garland .halo { opacity: .22; animation: halo-up 1.2s ease-out both; }
.garland .w1 { animation-delay: .25s; }
.garland .w2 { animation-delay: .5s; }
.garland .w3 { animation-delay: .75s; }
@keyframes halo-up { from { opacity: 0; } to { opacity: .22; } }
.hero-row { padding-top: var(--s2); text-align: center; }
.hero-text { max-width: 40rem; margin: 0 auto; }
.lead { text-wrap: balance; font-size: 1.1875rem; color: var(--muted); max-width: 32rem; margin: 0 auto var(--s4); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s3);
  border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Sections */
.section { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 36rem; margin-bottom: var(--s4); text-wrap: balance; }
.app-list, .make-list, .doc-links { list-style: none; margin: 0; padding: 0; }
.app-list { display: grid; gap: var(--s2); }
.app {
  display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.app-icon { width: 64px; height: 64px; border-radius: 14px; flex: 0 0 auto; }
.app-body { min-width: 0; }
.app-body p { color: var(--muted); margin-bottom: var(--s1); }
.app-actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--t-small); font-weight: 500;
}
.chip-store { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-soon { color: var(--muted); border-style: dashed; }
.make-list { display: grid; gap: var(--s4); }
.make-item p { color: var(--muted); margin: 0; }
.make-icon { width: 48px; height: 48px; padding: 10px; margin-bottom: var(--s2); border-radius: 12px; color: var(--lamp); background: var(--surface); border: 1px solid var(--line); }
.mail { font-weight: 600; word-break: break-word; display: inline-block; padding: var(--s1) 0; }
.doc h1 { font-size: var(--t-h2); }
.doc p, .doc li { max-width: 40rem; }
.doc-links { margin-bottom: var(--s4); }
.doc-links a { display: inline-block; padding: var(--s1) 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: var(--s4) 0 calc(var(--s4) + env(safe-area-inset-bottom)); font-size: var(--t-small); color: var(--muted); }
.foot a { color: var(--ink); display: inline-block; padding: var(--s1) 0; }
.fine { margin: 0; opacity: .85; }

@media (min-width: 720px) {
  .app-list { grid-template-columns: 1fr 1fr; }
  .make-list { grid-template-columns: repeat(3, 1fr); }
  .section { padding: var(--s8) 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .garland .halo { animation: none; }
}
