/* devilspen — kolaj + bohem + botanik plaka teması */

:root {
  --paper: #f3e8d2;
  --paper-light: #fbf5e8;
  --card: #fffdf6;
  --ink: #3a2a1f;
  --ink-soft: #6b5545;
  --terracotta: #b5573a;
  --mustard: #d9a441;
  --sage: #7f8f5a;
  --plum: #5e2f45;
  --rose: #d7a0a0;
  --teal: #3d6b67;
  --shadow: 0 14px 26px -12px rgba(58, 42, 31, 0.45);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Jost", "Segoe UI", Arial, sans-serif;

  /* Kağıt dokusu: SVG gürültüsü */
  --paper-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .25  0 0 0 0 .17  0 0 0 0 .1  0 0 0 .13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  /* Kesik kenar (kolaj parçası) */
  --torn: polygon(0% 4%, 6% 0%, 14% 3%, 22% 0.5%, 31% 2%, 40% 0%, 52% 3%, 61% 0.5%, 73% 2.5%, 84% 0%, 92% 3%, 100% 1%, 99% 14%, 100% 27%, 98.5% 41%, 100% 55%, 99% 70%, 100% 86%, 98% 100%, 86% 97%, 74% 100%, 62% 97.5%, 50% 100%, 38% 98%, 26% 100%, 14% 97%, 2% 100%, 0% 88%, 1.5% 74%, 0% 60%, 1% 45%, 0% 30%, 1.5% 16%);
  --torn-soft: polygon(2% 2%, 12% 0%, 26% 2.5%, 38% 0%, 55% 2%, 70% 0%, 86% 2%, 100% 0%, 98% 18%, 100% 36%, 97% 52%, 100% 70%, 98% 88%, 100% 100%, 80% 98%, 64% 100%, 46% 97%, 30% 100%, 12% 98%, 0% 100%, 2% 82%, 0% 66%, 2% 48%, 0% 30%, 2% 12%);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

main {
  position: relative;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--paper);
  background-image:
    var(--paper-noise),
    radial-gradient(circle at 15% 10%, rgba(217, 164, 65, 0.22), transparent 38%),
    radial-gradient(circle at 90% 30%, rgba(215, 160, 160, 0.25), transparent 40%),
    radial-gradient(circle at 40% 100%, rgba(127, 143, 90, 0.2), transparent 45%);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper-light);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
}

/* ---------- Başlık ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 5vw;
  position: relative;
  z-index: 10;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 0;
  border-bottom: 2px dashed rgba(58, 42, 31, 0.35);
}

.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  color: var(--plum);
}

.logo span {
  color: var(--terracotta);
}

.site-nav {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 2rem);
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  text-transform: lowercase;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  padding: 0.3rem 0;
  background: linear-gradient(var(--mustard), var(--mustard)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.3s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-size: 100% 2px;
}

/* ---------- Butonlar ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  background: var(--plum);
  color: var(--paper-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  border: 0;
  cursor: pointer;
  clip-path: var(--torn-soft);
  box-shadow: 4px 5px 0 var(--mustard);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
}

.btn:hover,
.btn:focus-visible {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 7px 8px 0 var(--mustard);
}

.btn--ghost {
  background: transparent;
  color: var(--plum);
  box-shadow: none;
  outline: 1.5px solid var(--plum);
  outline-offset: -1.5px;
  clip-path: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  box-shadow: none;
  background: rgba(94, 47, 69, 0.08);
}

/* ---------- Kahraman (hero) ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem) 5vw clamp(3rem, 6vw, 5rem);
  min-height: 82vh;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.8rem, 10vw, 8.5rem);
  line-height: 0.9;
  color: var(--plum);
  letter-spacing: -0.01em;
}

.hero h1 em {
  display: block;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.8rem;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 34rem;
  margin: 1.6rem 0 2.2rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Kolaj kompozisyonu */

.collage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-width: 580px;
  justify-self: center;
}

.c-piece {
  position: absolute;
  overflow: hidden;
}

.c-mustard {
  top: 0;
  left: 4%;
  width: 60%;
  height: 52%;
  background: var(--mustard);
  clip-path: var(--torn);
  transform: rotate(-4deg);
}

.c-terracotta {
  left: 0;
  bottom: 2%;
  width: 42%;
  height: 46%;
  background: var(--terracotta);
  border-radius: 999px 999px 6px 6px;
  transform: rotate(3deg);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.c-rose {
  right: 0;
  top: 46%;
  width: 40%;
  height: 34%;
  background: var(--rose);
  clip-path: var(--torn-soft);
  transform: rotate(-7deg);
}

.c-sage {
  right: 14%;
  top: 0;
  width: 26%;
  height: 22%;
  background: var(--sage);
  clip-path: var(--torn);
  transform: rotate(9deg);
  opacity: 0.92;
}

.c-photo {
  left: 26%;
  top: 22%;
  width: 52%;
  height: 56%;
  background: var(--card);
  padding: 10px 10px 34px;
  transform: rotate(2.5deg);
  box-shadow: var(--shadow);
  z-index: 2;
}

.c-photo__inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, #e8d7b4, #d9c39a);
  display: grid;
  place-items: center;
}

.c-photo__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-photo__inner .plate-mini {
  width: 78%;
  height: auto;
}

.c-photo__caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}

.tape {
  position: absolute;
  width: 88px;
  height: 26px;
  background: rgba(251, 245, 232, 0.7);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

.tape--a {
  top: 15%;
  left: 22%;
  transform: rotate(-18deg);
}

.tape--b {
  bottom: 22%;
  right: 22%;
  transform: rotate(14deg);
  background: rgba(217, 164, 65, 0.55);
}

.stamp {
  position: absolute;
  right: -2%;
  bottom: 6%;
  width: 124px;
  height: 124px;
  z-index: 4;
  animation: spin 26s linear infinite;
}

.collage .plate {
  z-index: 3;
}

.collage .plate--hero {
  position: absolute;
  width: 34%;
  top: 4%;
  right: 6%;
  transform: rotate(6deg);
}

/* ---------- Bölüm başlıkları ---------- */

.section-head {
  text-align: center;
  padding: clamp(2rem, 4vw, 3.5rem) 5vw 1rem;
  position: relative;
  z-index: 1;
}

.section-head h2 {
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--plum);
  position: relative;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.12em;
  height: 0.28em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M2 12 C 40 2, 70 18, 110 9 S 180 4, 198 11' fill='none' stroke='%23d9a441' stroke-width='5' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  z-index: -1;
}

.section-head p {
  max-width: 36rem;
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
}

/* ---------- Koleksiyon ızgarası ---------- */

.shop {
  position: relative;
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.6rem, 3vw, 3rem);
  padding: 1.5rem 5vw 2rem;
  position: relative;
  z-index: 1;
}

.card {
  --tilt: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  padding: 12px 12px 18px;
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
}

.card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(217, 164, 65, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.card:hover,
.card:focus-visible {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: 0 26px 40px -18px rgba(58, 42, 31, 0.5);
}

.card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, #efe2c6, #dcc8a0);
  display: grid;
  place-items: center;
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card__photo img {
  transform: scale(1.05);
}

.card__photo .plate-mini {
  width: 58%;
  opacity: 0.85;
}

.card__body {
  padding: 1rem 0.3rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--ink);
}

.price {
  align-self: flex-start;
  display: inline-block;
  padding: 0.2rem 0.85rem;
  background: var(--mustard);
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  clip-path: var(--torn-soft);
  font-weight: 500;
}

.grid .empty,
.status {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  padding: 3rem 0;
}

.card--skeleton {
  min-height: 360px;
  background: linear-gradient(90deg, var(--card), #f3e9d4, var(--card));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

/* ---------- Hakkında ---------- */

.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 5vw;
}

.about__paper {
  position: relative;
  background: var(--paper-light);
  clip-path: var(--torn);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.about__paper h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--plum);
}

.about__paper p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.about .plate {
  justify-self: center;
  width: min(340px, 90%);
}

/* ---------- Alt bilgi ---------- */

.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 7vw, 5rem) 5vw 2rem;
  margin-top: 3rem;
  clip-path: polygon(0 4%, 5% 0, 11% 3.5%, 18% 0.5%, 27% 3%, 36% 0, 44% 3%, 55% 0.5%, 64% 3%, 74% 0, 83% 3%, 91% 0.5%, 100% 3%, 100% 100%, 0 100%);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  font-weight: 600;
  color: var(--mustard);
  margin: 0;
}

.footer__text {
  margin: 0.3rem 0 0;
  color: rgba(243, 232, 210, 0.75);
  max-width: 28rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer__copy {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(243, 232, 210, 0.25);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(243, 232, 210, 0.6);
  text-align: center;
}

.footer__plate {
  position: absolute;
  right: 4vw;
  top: -90px;
  width: 150px;
  transform: rotate(4deg);
}

/* ---------- Ürün sayfası ---------- */

.product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(1.5rem, 4vw, 3rem) 5vw clamp(3rem, 6vw, 5rem);
  z-index: 1;
}

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--plum);
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  grid-column: 1 / -1;
}

.back:hover {
  text-decoration: underline;
}

.gallery__main {
  position: relative;
  background: var(--card);
  padding: 14px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.gallery__main::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 42%;
  width: 110px;
  height: 28px;
  transform: rotate(4deg);
  background: rgba(217, 164, 65, 0.6);
  z-index: 2;
}

.gallery__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, #efe2c6, #dcc8a0);
  display: grid;
  place-items: center;
}

.gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fbf7ee;
}

.gallery__thumbs {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.thumb {
  width: 72px;
  height: 90px;
  padding: 3px;
  border: 0;
  background: var(--card);
  box-shadow: 0 6px 12px -6px rgba(58, 42, 31, 0.5);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.thumb:nth-child(odd) {
  transform: rotate(-3deg);
}

.thumb:nth-child(even) {
  transform: rotate(2.5deg);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb[aria-current="true"],
.thumb:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
  transform: rotate(0) scale(1.05);
}

.product__info {
  position: sticky;
  top: 2rem;
}

.product__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.02;
  color: var(--plum);
}

.product__price {
  display: inline-grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 4px 6px 0 var(--terracotta);
  padding: 0.5rem;
  margin-bottom: 1.5rem;
}

.product__price small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.product__desc {
  white-space: pre-line;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  padding-left: 1.2rem;
  border-left: 3px dotted var(--terracotta);
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product--missing {
  display: block;
  text-align: center;
}

/* ---------- Hareket / yardımcılar ---------- */

.plate {
  position: absolute;
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: sway 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 12px rgba(58, 42, 31, 0.18));
}

.plate svg {
  display: block;
  width: 100%;
  height: auto;
}

.plate--sprig-left {
  left: -1vw;
  top: 40vh;
  width: clamp(130px, 14vw, 210px);
  transform: rotate(-6deg);
}

.plate--bloom-right {
  right: -1vw;
  top: 110vh;
  width: clamp(130px, 14vw, 220px);
  transform: rotate(5deg);
  animation-delay: -4s;
}

.plate--fern-mid {
  left: 6vw;
  top: 2vh;
  width: clamp(120px, 12vw, 180px);
  transform: rotate(4deg);
  animation-delay: -2s;
}

.spring-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -5%;
  width: 12px;
  height: 10px;
  border-radius: 0 80% 0 80%;
  background: var(--rose);
  opacity: 0.75;
  animation: petal-fall linear infinite;
  will-change: transform;
}

.petal--light {
  background: #f8e6ea;
}

.petal--peach {
  background: #efc2a6;
}

.critter {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  will-change: transform;
  filter: drop-shadow(0 4px 4px rgba(58, 42, 31, 0.25));
}

.critter svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.critter--bee {
  width: 46px;
  height: 46px;
}

.critter--ladybug {
  width: 34px;
  height: 34px;
}

.wing-l,
.wing-r {
  transform-box: view-box;
  transform-origin: 50px 50px;
  animation: flap 0.55s ease-in-out infinite alternate;
}

.wing-r {
  animation-delay: -0.05s;
}

.bee-wing {
  transform-box: view-box;
  transform-origin: 50px 50px;
  animation: buzz 0.09s linear infinite alternate;
}

.plate--hero,
.plate--sprig-left,
.plate--bloom-right,
.plate--fern-mid {
  will-change: transform;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sway {
  from {
    transform: rotate(-2deg);
  }
  to {
    transform: rotate(2deg);
  }
}

@keyframes flap {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0.28);
  }
}

@keyframes buzz {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0.6);
  }
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translate3d(calc(var(--drift) * 0.6), 55vh, 0) rotate(260deg);
  }
  100% {
    transform: translate3d(var(--drift), 110vh, 0) rotate(560deg);
    opacity: 0.4;
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* ---------- Duyarlı tasarım ---------- */

@media (max-width: 900px) {
  .hero,
  .about,
  .product {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .collage {
    max-width: 480px;
  }

  .product__info {
    position: static;
  }

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

@media (max-width: 560px) {
  .site-nav a {
    font-size: 0.75rem;
  }

  .plate--sprig-left,
  .plate--bloom-right,
  .plate--fern-mid {
    opacity: 0.55;
  }

  .product__price {
    width: 120px;
    height: 120px;
    font-size: 1.3rem;
  }
}

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

  .spring-layer .petal,
  .spring-layer .critter {
    display: none;
  }
}
