/* Ailecek ve AllFam web siteleri.
   Renkler Tosba'dan (kabuk yeşilleri, yanak pembesi) ve uygulamanın açılış ekranından gelir.
   Kabuğun altıgen pulları sitenin tek süsü: bölüm haritası, adım numaraları ve Tosba'nın arka planı. */

@font-face {
  font-family: "Bitter Web";
  src: url("/assets/fonts/bitter.woff") format("woff");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans Web";
  src: url("/assets/fonts/dm-sans.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c2b22;
  --ink-soft: #3d5446;
  --shell: #2e6b47;
  --shell-mid: #357650;
  --shell-light: #3e7f52;
  --leaf: #8dcb8b;
  --leaf-soft: #e3f1e8;
  --mint: #f3f8f1;
  --cheek: #f2a0a0;
  --line: #cfe3d3;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --display: "Bitter Web", Georgia, "Times New Roman", serif;
  --text: "DM Sans Web", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mint);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--text);
}

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

a {
  color: var(--shell);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw + 0.6rem, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 2.4vw + 0.7rem, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.skip:focus {
  top: 1rem;
}

/* Üst bar */

.top {
  padding-block: 1.1rem;
}

.top__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}

.brand svg {
  width: 2.75rem;
  height: 2.75rem;
}

.top nav ul {
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top nav a {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}

.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

/* Giriş: başlık ve Tosba */

.hero {
  display: grid;
  align-items: center;
  gap: 1.5rem 3rem;
  padding-block: clamp(1rem, 4vw, 3.5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero h1 {
  max-width: 11em;
}

.lead {
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.25rem;
}

.soon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.75rem 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.soon::before {
  content: "";
  flex: none;
  width: 1.05rem;
  aspect-ratio: 1 / 1.1547;
  background: var(--shell);
  clip-path: var(--hex);
}

.hero__art {
  position: relative;
  justify-self: center;
  width: min(78%, 19rem);
  aspect-ratio: 1;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: 3% 9%;
  background: var(--leaf-soft);
  clip-path: var(--hex);
}

.hero__art svg {
  position: relative;
  width: 100%;
  height: auto;
  animation: tosba-arrives 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Tosba sayfaya yavaşça yürüyerek gelir. Kaplumbağa ne de olsa. */
@keyframes tosba-arrives {
  from {
    opacity: 0;
    transform: translateX(-10%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art svg {
    animation: none;
  }
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero__art {
    width: min(100%, 25rem);
  }
}

/* Bantlar */

.band {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.band--leaf {
  background: var(--leaf-soft);
}

.band__lead {
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* Bölüm haritası: dar ekranda liste, genişte kabuk gibi dizilmiş altıgen pullar */

.comb {
  display: grid;
  gap: 1.1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.scute {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: start;
  column-gap: 1rem;
}

.scute::before {
  content: "";
  grid-row: 1 / span 2;
  width: 2.4rem;
  aspect-ratio: 1 / 1.1547;
  margin-top: 0.15rem;
  background: var(--shell);
  clip-path: var(--hex);
}

.scute h3 {
  margin: 0;
  font-size: 1.2rem;
}

.scute p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .comb {
    --w: 12.5rem;
    --g: 0.75rem;
    --h: calc(var(--w) * 1.1547);
    grid-template-columns: repeat(6, calc((var(--w) + var(--g)) / 2));
    grid-auto-rows: calc(var(--h) * 0.75 + var(--g) * 0.866);
    justify-content: center;
    gap: 0;
    margin-top: 3rem;
    padding-bottom: calc(var(--h) * 0.25);
  }

  .scute {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: span 2;
    width: var(--w);
    height: var(--h);
    padding: 0 1.4rem;
    background: var(--shell);
    text-align: center;
    clip-path: var(--hex);
  }

  .scute::before {
    content: none;
  }

  .scute h3 {
    margin-bottom: 0.3rem;
    color: #fff;
    font-size: 1.18rem;
  }

  .scute p {
    color: #eef7f0;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .scute:nth-child(2),
  .scute:nth-child(7) {
    background: var(--shell-mid);
  }

  .scute:nth-child(4),
  .scute:nth-child(5) {
    background: var(--shell-light);
  }

  .scute:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .scute:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .scute:nth-child(6) {
    grid-column: 1 / span 2;
  }
}

.gazette {
  max-width: 38rem;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.gazette h3 {
  margin-bottom: 0.25rem;
}

.gazette p {
  margin: 0;
  color: var(--ink-soft);
}

/* Tosba'nın hikâyesi */

.split {
  display: grid;
  gap: 1rem 3rem;
}

.split p {
  max-width: 34em;
  font-size: 1.2rem;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 2fr;
  }
}

/* Nasıl başlanır: gerçekten sıralı adımlar */

.steps {
  display: grid;
  gap: 1.75rem 2.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 3.6rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 3.1rem;
  background: var(--leaf);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  clip-path: var(--hex);
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 880px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sibling {
  max-width: 40em;
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

/* Metin sayfaları: gizlilik, hesap silme, destek, koşullar */

.doc {
  padding-block: clamp(1.5rem, 4vw, 3rem) 4.5rem;
}

.doc__body {
  max-width: 42rem;
}

.doc h1 {
  font-size: clamp(2.1rem, 3.6vw + 0.8rem, 3.2rem);
}

.doc h2 {
  margin-top: 2.2em;
  font-size: 1.55rem;
}

.doc h3 {
  margin-top: 1.7em;
  font-size: 1.2rem;
}

.doc ul,
.doc ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.5em;
}

.doc li::marker {
  color: var(--shell);
  font-weight: 700;
}

.updated {
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--shell);
  border-radius: 0 0.6rem 0.6rem 0;
  background: #fff;
}

.note p:last-child {
  margin-bottom: 0;
}

.path {
  font-weight: 600;
}

.lost {
  padding-block: 4rem 6rem;
}

/* Alt bilgi */

.foot {
  padding-block: 2.5rem 3rem;
  background: var(--ink);
  color: #dbe9df;
}

.foot a {
  color: #fff;
}

.foot__in {
  display: grid;
  gap: 1.25rem;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot p {
  margin: 0;
  font-size: 1rem;
}

@media (min-width: 760px) {
  .foot__in {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .foot__meta {
    text-align: right;
  }
}
